Variable with Type=Integer ends with non-integral Value #9
-
I'm experiencing a situation where SONNET is returning from a solve and setting the Value to a non-integral value. The variable was configured to be a binary integer (ie Type = VariableType.Integer; x.Lower = 0; x.Upper = 1;) In the the debugger, the variable looks like this: This seems a little counterintuitive to me but I am very far from an expert in linear programming let alone SONNET or the COIN-OR suice. I was just trying to understand what combination of this being a bug, edge case behaviour or a misconfiguration on my part this might be. Some information about the model:
(The reason for this was in order to get a timeout as it would not seem to terminate otherwise. This I achieved from mainly guesswork. When I used PULP I used to use timeLimit=X and gapRel=Y arguments in PULP_CBC_CMD to control for this but I'm
If anybody has any input it would be appreciated! Thank you for your consideration. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
About non-integer solution: About timeout: |
Beta Was this translation helpful? Give feedback.
About non-integer solution:
Most likely, the solver hasn't found any integer solution yet--or the solution returned by Cbc to Sonnet is like the latest relaxation, not the last integer solution.
Can you check the output for message about solutions? (or even post the output here?)
About timeout:
Sonnet relies on OsiSolverInterface. Therefore, any parameter/setting that doesn't come via OSI (like timeout) has only limited support (see Osi Discussion 150). In the case of Cbc you found the way to pass tailored settings: via the args.