1
$\begingroup$

I am using MIP (Mixed Integer Programming) module in Python to solve one of my optimization problems. for some of the scenarios, model returns "ERROR" (OptimizationStatus.ERROR) status after optimization ends.

Is there a way to get more details about why am I getting this status? I tried catching an exceptions putting try/catch but there is no exception.

Any advice/solution on this will be really helpful. Thanks.

$\endgroup$
  • 1
    $\begingroup$ What solver are you using ? And what modeler ? $\endgroup$ – Kuifje Jul 7 at 17:35
  • $\begingroup$ I am using CBC Solver and I don't know what do you mean when you say modeler? if this could help, I'm using this - from mip import Model $\endgroup$ – PyPyVk Jul 7 at 21:56
  • 1
    $\begingroup$ the python-mip documentation has a contact form at the top, i would ask this question to the developers. I did not found any way to retrieve this information. $\endgroup$ – user3680510 Jul 8 at 13:09
1
$\begingroup$

I looked at the source code and OptimizationStatus.ERROR is returned if Cbc_isAbandoned evaluates to True. I can't see when this is the case but I would say that only occurs when something goes really wrong on a deeper system level. Your best bet would be to ask the developers though as mentioned in a comment above.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.