-
-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pulp print wrong objective value #803
Comments
If you check the log on detail the problem is infeasible. Meaning there is no valid solution. I think. |
You probably have numeric instability. Try using less significant digits in your problem (less decimals in variables, constraints and objective) |
Sorry I didn't get it. I think pulp just reads the output of the solver and return the value to user. Since cbc (and other solvers such as gurobi) say there is an optimal solution of |
Focus on the following lines in the log:
I suspect you have a numeric /tolerance issue in your model. |
I am using pulp calling
PULP_CBC_CMD
to solve this problem seed.mps.txt. It seems the solver gets the correct objective but pulp return the wrong value. This doesn't happen in other cases I have tried.The code I am using:
The output:
The text was updated successfully, but these errors were encountered: