msg=true and timeLimit are not working #456
Replies: 3 comments 1 reply
-
Welcome to the CBC MILP Solver command line - /home/uwv999/.conda/envs/zone_env/lib/python3.7/site-packages/pulp/apis/../solverdir/cbc/linux/64/cbc /tmp/756c37bb89 it took 30 minutes to output the above rows and was stuck here for a long time... |
Beta Was this translation helpful? Give feedback.
-
Well it does say that your problem is actually 2,049,633 rows by 3,910,383
cols so it is quite big.
I would suggest checking that you are modelling the problem correctly with
a smaller instance,
And if you are perhaps try solving it with another solver like gurobi.
Stu
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru
www.stuartmitchell.com
…On Fri, Jun 18, 2021 at 9:39 AM Katherine Li ***@***.***> wrote:
Welcome to the CBC MILP Solver
Version: 2.10.3
Build Date: Dec 15 2019
command line -
/home/uwv999/.conda/envs/zone_env/lib/python3.7/site-packages/pulp/apis/../solverdir/cbc/linux/64/cbc
/tmp/756c37bb89
4e468b802496e874104a9d-pulp.mps max ratio 0.01 threads 64 branch
printingOptions all solution /tmp/756c37bb894e468b802496e874104a9d-
pulp.sol (default strategy 1)
At line 2 NAME MODEL
At line 3 ROWS
At line 2049638 COLUMNS
At line 6379789 RHS
At line 8429423 BOUNDS
At line 9119828 ENDATA
Problem MODEL has 2049633 rows, 690404 columns and 3910383 elements
Coin0008I MODEL read with 0 errors
ratioGap was changed from 0 to 0.01
threads was changed from 0 to 64
Continuous objective value is 28350.3 - 915.98 seconds
it took 30 minutes to output the above rows and was stuck here for a long
time...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#456 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFUIWIRO7BZONG636QAWWDTTJTSVANCNFSM464NRG7Q>
.
|
Beta Was this translation helpful? Give feedback.
-
The For our cases, we added a hard timeout to the pulp handling of CBC. If you have an academic usecase, maybe SCIP is an option. It behaves nicer with resept to the time limit. |
Beta Was this translation helpful? Give feedback.
-
Hi team,
I am trying to solve a MIP program with PULP_CBC_CMD solver. Here is my code:
model.solve(pulp.PULP_CBC_CMD(gapRel=0.01, threads=threads, msg=True, timeLimit=60))
However, when i execute the optimizer, for a relative small input matrix (142 by 142 dimension), I am able to see the logs and results quickly. But for a large input matrix (655 by 655 dimension), the optimizer seems stuck without showing any logs and definitely didn't get finished within 60 seconds (I assume that timeLimit constraints apply to when the optimizer is actually running/outputting logs).
I wonder why pulp is taking so long to prepare data before running optimization, or is there any error?
Thanks,
Katherine
Beta Was this translation helpful? Give feedback.
All reactions