routing set max travel time for vehicle

74 views
Skip to first unread message

周卫东

unread,
Oct 18, 2022, 5:17:44 AM10/18/22
to or-tools-discuss
My problem is the start time for vehicle is not fixed,. how to calcute the travel time and set max constraint?

Laurent Perron

unread,
Oct 18, 2022, 5:31:43 AM10/18/22
to or-tools...@googlegroups.com
have a second dimension for travel time. With a start of 0 and a max slack of 0.
Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00



Le mar. 18 oct. 2022 à 11:17, 周卫东 <sirzh...@gmail.com> a écrit :
My problem is the start time for vehicle is not fixed,. how to calcute the travel time and set max constraint?

--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/1f05b011-5be2-4eb3-a84f-ffd55ee9652cn%40googlegroups.com.

周卫东

unread,
Oct 19, 2022, 11:59:37 PM10/19/22
to or-tools-discuss
how the second dimension connect the previous time dimension?

Laurent Perron

unread,
Oct 20, 2022, 12:23:45 AM10/20/22
to or-tools-discuss
Use the same time transit matrix.

周卫东

unread,
Oct 20, 2022, 2:35:59 AM10/20/22
to or-tools-discuss
ok, i got it.

周卫东

unread,
Oct 20, 2022, 5:31:45 AM10/20/22
to or-tools-discuss
This time dimension just contains the transport time. If I want to contain the wait time(slack var), how can I solve it ?

blind.line

unread,
Oct 20, 2022, 8:54:37 PM10/20/22
to or-tools...@googlegroups.com
Use a different function, with the same matrix. There are examples in the code that do this, as I recall. 

James

On Oct 20, 2022, at 02:31, 周卫东 <sirzh...@gmail.com> wrote:

This time dimension just contains the transport time. If I want to contain the wait time(slack var), how can I solve it ?

周卫东

unread,
Oct 20, 2022, 11:27:27 PM10/20/22
to or-tools-discuss
So where is the code example, I don't find it in github, can you give me a link?

blind.line

unread,
Oct 21, 2022, 2:23:19 PM10/21/22
to or-tools...@googlegroups.com
Look for cvrptw_plot.py

James

On Oct 20, 2022, at 20:27, 周卫东 <sirzh...@gmail.com> wrote:

So where is the code example, I don't find it in github, can you give me a link?

周卫东

unread,
Oct 21, 2022, 9:53:47 PM10/21/22
to or-tools-discuss
I know your idea. However, I not only need the transport time but also need the slack time.
Reply all
Reply to author
Forward
0 new messages