I'm running the CP-SAT solver on a large bin-packing-like problem with O(7M) variables and O(30M) constraints. By a different method I have found a feasible solution and want to try to improve on it by using it as a starting point, so I've set variables initially using "solution_hint" (see https://github.com/google/or-tools/issues/1152).Now, it takes almost 10 hours to find the first solution, that is the starting point, i.e. to verify that the initial state is indeed a solution. I'm running on a fairly powerful computer with 8 cores and 32 GB memory. My question is if this is reasonable? The solution callback reports 0 conflicts (expected, because it is a solution), 7.4M booleans and 34k branches.
--
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/2b00968f-cc1e-4fb6-b7dc-8233630a90ban%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/CABcmEeZwro-TW1inEoW-AaG17PxWjjHibSZO4yYCbc3y7x7yrg%40mail.gmail.com.
Oh, I thought multi-thread was on by default. I tried your suggestions and the time dropped by some 60% when trying on a smaller subset. What LP is being done inside the CP-SAT solver? I thought there was nothing of that given that there is a MIP solver one can chose.
It's not trivial to quickly take out the model and start-guess, I might come back with that.--måndag 19 april 2021 kl. 10:10:12 UTC+2 skrev Frederic Didier:+1 with Laurent.You can also try some parameters:Are you running in multi-thread? ex: --params num_search_workers:8You can also try --params linearization_level:0 since the LP might be the one taking time.On Mon, Apr 19, 2021 at 10:08 AM 'Laurent Perron' via or-tools-discuss <or-tools...@googlegroups.com> wrote:If you can send us the model with the hint. We could try to check what is happening.--I'm running the CP-SAT solver on a large bin-packing-like problem with O(7M) variables and O(30M) constraints. By a different method I have found a feasible solution and want to try to improve on it by using it as a starting point, so I've set variables initially using "solution_hint" (see https://github.com/google/or-tools/issues/1152).Now, it takes almost 10 hours to find the first solution, that is the starting point, i.e. to verify that the initial state is indeed a solution. I'm running on a fairly powerful computer with 8 cores and 32 GB memory. My question is if this is reasonable? The solution callback reports 0 conflicts (expected, because it is a solution), 7.4M booleans and 34k branches.--
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/2b00968f-cc1e-4fb6-b7dc-8233630a90ban%40googlegroups.com.
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/CABcmEeZwro-TW1inEoW-AaG17PxWjjHibSZO4yYCbc3y7x7yrg%40mail.gmail.com.
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/92941d3d-275b-49e7-a83a-0ae8d4e9bafen%40googlegroups.com.
Thanks. I just ran on the full problem with nworkers=8 and the process was Killed, by the kernel I suppose. I tried with nworkers=6 and got “terminate called after throwing an instance of ’std::bad_alloc’. what(): bad_alloc. Aborted (core dumped)”. Do you recognise this at all? I didn’t get this before when num_search_workers wasn’t set (nworkers=1 then). Maybe it’s best if I supply the model and code…----
Edvin Sidebo
FoU-konsult, fil.dr
Savantic AB
Rosenlundsgatan 52
118 63 Stockholm
+46 (0)702-239333
Växel: +46 (0)8 32 00 32
edvin.sidebo@savantic.se
www.savantic.se
Tillsammans höjer vi Sveriges AI-kompetens!
You received this message because you are subscribed to a topic in the Google Groups "or-tools-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/or-tools-discuss/acul1GgXqf8/unsubscribe.
To unsubscribe from this group and all its topics, 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/CABqCn%3De4UPs%2BpRL3e3w2%3DiE4Wzu-qZOrA2y7UQGbneP7gF%2BXcA%40mail.gmail.com.
--
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/A2CCEFA2-1BC9-4A08-B628-730E7D9BD400%40savantic.se.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/c9bc3d20-f4f9-4347-9594-136c3fafac2an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a6f95ae1-31a9-4092-a7fe-814ffbccac6dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/a5d4e8de-d862-4df6-99e2-4442f3c93734n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/fcef5f85-0306-4322-ac3d-2933780490can%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/7c28d11f-f896-4b27-9925-ac4e44d2bdc5n%40googlegroups.com.
Presolved optimization model '':
#Variables: 3143854 (3180 in objective)
- 582118 in [0,1]
- 276918 in [0,2]
- 456464 in [0,3]
- 364301 in [0,4]
- 68751 in [0,5]
- 80372 in [0,6]
- 61706 in [0,7]
- 92778 in [0,8]
- 69086 in [0,9]
- 80683 in [0,10]
- 105847 in [0,11]
- 904829 in [0,12]
- 1 in [2,5528]
#kAtMostOne: 6864 (#literals: 86837)
#kBoolAnd: 537304 (#enforced: 537304) (#literals: 537304)
#kExactlyOne: 168 (#literals: 534240)
#kLinear1: 2564914 (#enforced: 2564914)
#kLinearN: 10368 (#enforced: 6360) (#terms: 12018915)
Preloading model.
[Symmetry] Graph for symmetry has 9950988 nodes and 23075608 arcs.
[Symmetry] GraphSymmetryFinder error: During the initial refinement.
[Symmetry] Symmetry computation done. time: 6.9293 dtime: 3.54675
#Bound 138.99s best:inf next:[11504448,3.51262943e+10] initial_domain
Starting Search at 143.59s with 8 workers and subsolvers: [ default_lp, reduced_costs, pseudo_costs, no_lp, max_lp, core, feasibility_pump, rnd_var_lns_default, rnd_cst_lns_default, graph_var_lns_default, graph_cst_lns_default, rins_lns_default, rens_lns_default ]
#1 284.67s best:3.51262943e+10 next:[11504448,3.51262942e+10] core [hint] fixed_bools:0/3152739
Presolved optimization model '':
#Variables: 3143854 (3180 in objective)
- 582118 in [0,1]
- 276918 in [0,2]
- 456464 in [0,3]
- 364301 in [0,4]
- 68751 in [0,5]
- 80372 in [0,6]
- 61706 in [0,7]
- 92778 in [0,8]
- 69086 in [0,9]
- 80683 in [0,10]
- 105847 in [0,11]
- 904829 in [0,12]
- 1 in [2,5528]
#kAtMostOne: 6864 (#literals: 86837)
#kBoolAnd: 537304 (#enforced: 537304) (#literals: 537304)
#kExactlyOne: 168 (#literals: 534240)
#kLinear1: 2564914 (#enforced: 2564914)
#kLinearN: 10368 (#enforced: 6360) (#terms: 12018915)
Preloading model.
[Symmetry] Graph for symmetry has 9950988 nodes and 23075608 arcs.
[Symmetry] GraphSymmetryFinder error: During the initial refinement.
[Symmetry] Symmetry computation done. time: 5.57199 dtime: 3.54675
#Bound 112.63s best:inf next:[11504448,3.51262943e+10] initial_domain
Starting Search at 114.22s with 16 workers and subsolvers: [ default_lp, reduced_costs, pseudo_costs, no_lp, max_lp, core, quick_restart, quick_restart_no_lp, probing, feasibility_pump, rnd_var_lns_default, rnd_cst_lns_default, graph_var_lns_default, graph_cst_lns_default, rins_lns_default, rens_lns_default ]
#1 152.28s best:3.51262943e+10 next:[11504448,3.51262942e+10] quick_restart_no_lp [hint] fixed_bools:0/3152739
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/0943392d-e6e5-4db8-9487-6cb90b1f5adfn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/or-tools-discuss/f125028b-b1e8-4c39-9861-5fe194aa86b3n%40googlegroups.com.