ojAlgo thinks infeasible solution is feasible #513
Replies: 2 comments 4 replies
-
If you get a However, |
Beta Was this translation helpful? Give feedback.
-
Great that you were able to reproduce the problem with a small model, but next time give me Java code (including junit assertions). An alternative way to supply a model is with a model file The key problem seems to be that the MIP solver generates a slightly infeasible subproblem for the LP solver, and the LP solver fails to handle this. Some sort of numerical bug in the LP solver. It ends up with a solution that is completely wrong, but it is an integer solution. (The MIP accepts that the LP states the solution to be optimal and only checks if it is an integer solution or not.) The optimal solutions to the MIP and the relaxed LP are the same, and it is also that solution that is given as the initial solution. This is part of what's causing the problem (because of how ojAlgo works). To work around the problem you can either:
|
Beta Was this translation helpful? Give feedback.
-
I have a binary problem (similar to the assignment problem) with a lot of equal 1 constraints which I am trying to maximize using
ExpressionBasedModel
. The solver generates an integer solution in which none of the variables for a certain constraint is chosen, when in fact it should choose exactly one of these. Increasing the precision and scale inmodel.options.feasibility
seems to solve the problem but I have a feeling that this is not a good idea. What confuses me is why ojAlgo thinks the generated solution is feasible when in fact it clearly is not.Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions