You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@pchtsp thanks for looking into this - I do believe it's infeasible. My reasons to believe :
There are ** in the solution file which are, from inspecting valid solutions and as per the comment of the below in the code, indications of infeasible solutions
I have ex-post analyses that indicate this. Will try and save my problem as a JSON file to provide the full, reproducible example.
Also to your point : I don't think CBC reports that the solution is feasible. It only reports : ['Stopped', 'on', 'iterations', '-', 'objective', 'value', '79185057.39091943'] + the rest of the solution file with ** in it
What did you do?
Trying to solve a problem using PuLP and CBC (see versions below).
The solution I got is not valid (some constraints are violated)
What did you expect to see?
Some status telling no valid solution was found.
What did you see instead?
Got the following statuses :
From inserting a breakpoint in the code I got those statuses from the following logic :
pulp/pulp/apis/coin_api.py
Lines 337 to 340 in 858304d
Which is applied when solver stops on time limit - which is what happened. Now when the solver stops on time limit the solution could be :
It seems the logic above aims at capturing the "valid but not optimal" case. But it seems to have caught an "invalid solution" case in my case.
Some extra info
statusstrs
is['Stopped', 'on', 'iterations', '-', 'objective', 'value', '79185057.39091943']
The
pulp.sol
file isThe CBC logs
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
I'm using python version:
I installed PuLP via:
Other useful environment info :
CBC : 2.10.3
PuLP : 2.7.0
Did you also
The text was updated successfully, but these errors were encountered: