How to set number of threads (workers in VRP)

1,478 views
Skip to first unread message

Michal Stankowski

unread,
Sep 12, 2019, 10:44:56 AM9/12/19
to or-tools-discuss
Hello!

Is there any way to increase a number of threads in VRP calculations? I can see that it's possible for the CP Solver, therefore it sounds logical to me to be able to do that on VRP. I was trying to find that in Python definitions, and in documentation, but didn't found anything.

Thanks in advance for help!
Best regards,

Michal

Laurent Perron

unread,
Sep 12, 2019, 10:47:11 AM9/12/19
to or-tools-discuss
You can't. 

Routing is based on the original cp solver. 
Multi threading is implement on the new CP-SAT solver. 

--
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/fc11ea5e-1790-4a1d-afc3-292e2eb8cb61%40googlegroups.com.

Michal Stankowski

unread,
Sep 12, 2019, 10:52:48 AM9/12/19
to or-tools-discuss
Thanks Laurent!

This is a very sad information, since my computer nearly burns when I ask for solution ;)

Have a nice day!

Michal


W dniu czwartek, 12 września 2019 16:47:11 UTC+2 użytkownik Laurent Perron napisał:
You can't. 

Routing is based on the original cp solver. 
Multi threading is implement on the new CP-SAT solver. 

Le jeu. 12 sept. 2019 à 16:45, Michal Stankowski <michal.s...@portacapena.com> a écrit :
Hello!

Is there any way to increase a number of threads in VRP calculations? I can see that it's possible for the CP Solver, therefore it sounds logical to me to be able to do that on VRP. I was trying to find that in Python definitions, and in documentation, but didn't found anything.

Thanks in advance for help!
Best regards,

Michal

--
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...@googlegroups.com.

Vincent Furnon

unread,
Sep 12, 2019, 12:12:58 PM9/12/19
to or-tools...@googlegroups.com
Note you can "kind of" mimic what is done in cp-sat. Just solve the problem n times in parallel with different first solution heuristics (you need to build the routing model n times but all models can share distance/time/cost matrices which should be immutable). At least parallelism will improve robustness of solutions.

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/d124bce8-14d8-48f3-b590-fbfed8668d71%40googlegroups.com.
Message has been deleted

Siddharth Jain

unread,
Aug 13, 2025, 1:13:37 AMAug 13
to or-tools-discuss
checking to see if there is any update on this
Reply all
Reply to author
Forward
0 new messages