2
$\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.

$\endgroup$
4
  • 1
    $\begingroup$ What solver are you using ? And what modeler ? $\endgroup$
    – Kuifje
    Jul 7, 2020 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, 2020 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$ Jul 8, 2020 at 13:09
  • $\begingroup$ @PyPyVk, have you tried another solver to check if the error would exist? $\endgroup$
    – A.Omidi
    Aug 9, 2022 at 8:40

1 Answer 1

2
$\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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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