On Google Or-Tools, how can we set time window on Vehicles? - or-tools

I'm touching Google Or-tools to solve VRPtw problem and struggling with setting the time window on the vehicles.
It is clear to add time window on the locations but I didn't find the way of setting those on the vehicles side. On the practical situation, it is that each vehicle's driver has fixed break time and on that term, they don't move or visit somewhere. They are deactivated.
Thank you for reading the questions and your help.

There is no "time windows" associated to vehicle.
You can set a TW on the cumulVar of the vehicle's end node
For break, you should take a look on the examples we provided
e.g. https://github.com/google/or-tools/blob/stable/examples/cpp/cvrptw_with_breaks.cc

Related

What is the possible mistake that leads to this AStar node-base pathfinding result?

I'm using a AStar pathfinding plugin in Unity, and it works prety well previously until I got this result.
Please see the screen shot of Unity Editor view, the blue nodes are walkable area, the yellow point is the starting position, and the target node is where the Star icon is. So the desired way should be the green line, but the actual result is the red line.
I know it's very possible that it's not the problem of the plugin, but I checked my code many times and can't find any problem and it works well in other cases.
what is even more strange is that if I remove the walkable nodes in the purple area, the plugin finds the right way.
I'd like to know what is the possible mistake that could lead to this result, any clue would be appreicated. Thanks.
I sadly can't debug your graph remotely, but I would check many paths from your current start position gradually towards the goal, where it switches to a correct path and diagnose which nodes are disconnected.
Maybe some nodes are elevated or obstructed.
In a nutshell, try to debug your game grid to a minimal reproducible buggy behaviour and a working one and try to understand where they differ from each other.
Some basic hints on the inner workings of A*:
As mentioned in the comment, A* is not guaranteed to produce the optimal path (e.g. when nodes have negative weight)
It considers many paths and might amidst the calculation walk on strange routes (depending on the heuristic)

Where is pixel per unit(sprite)

I am new to unity , so plz forgive me asking this question. However, I can't find any solution online. My question is: How to find the texture button and thus able to change the value in pixel per unit.
That is no such thing (pixel per unity) on the right-hand side(the inspector). neither in debug mode nor in normal mode . Plz tell me the solution with clear explaination. Thank in advance!
Afterwards, I thought I should have installed some package from package manager so that I can change the value of pixel per unit.Sadly, it seems that it is unrelated.
----let me clarify that , i am not looking for the reference pixel per unit of canvas scaler
I finally find the solution by myself!In fact , I should click on the item in asset area(bottom place) , instead of that in hierarchy , it will show different inspectors and then you can find pixel per unit !!(solution)

Adjust Flutter RangeSlider by moving the whole range at once?

I've been using the new RangeSlider now included in Flutter. Works great. I'm looking for a subtle UI adaptation, though I haven't figured out how to do it, or if it's even possible. I'd like to have the user be able to drag and move the range (start and end) by dragging on the active handle between the start and end thumbs.
I'm not finding too many in depth examples online about the full range of features of the RangeSlider though, so I'm wondering if anybody's had to do this before.
Or perhaps there's another range slider type plugin that might have that functionality...? Thanks for any leads or ideas.

OpenStreetMap static overlay over an area of GPS points

I am writing an Android programm where you can fill out parking tickets automatically.
Moreover, this programm has an OSM built in, where your current location is marked.
Now, I want to show all zones where a parking ticket is being needed!
I have all the coordinates for it, however, marking everything on the fly would be very time consuming. That`s why I would like to do it in a static way, but I do not know whether that is possible or not?
Maybe, someone could give me a hint how to solve this problem?
Thank you very much in advance!
BR,
Bernd

What Icon is Appropriate For Sorted by Time?

I have a duplicate bridge scoring application with two different sorting modes.
Let me fill you in on how duplicate bridge works so you have an idea what I'm looking for. You sit and play a few hands of bridge against one set of opponents. Then you and the boards move and you play a few more hands of bridge against a new set of opponents. Repeat until the end of the night (usually around 24 boards). You don't necessarily play the boards in order. For instance you may play 1-3, 7-9, 13-15, ..., and eventually 4-6. Other people play them in a different order.
So now for the two sorting modes. There's sort by board order (fairly easy to come up with an icon like the "1-24" I settled on) and there's sort by order played.
Which of these choices is appropriate?
A. A clock
B. A calendar
C. Something else
P.S. I remember reading an article a while back about how using a clock for this would be cause for rejection, but haven't been able to find it.
Thanks in advance for any help/suggestions!
I think a down arrow with a clock.
An hourglass(saves you from the clock metaphor) with a horizontal arrow, as time is more likely perceived as a horizontal flow.