Details for the issue
What did you do?
... HARD PROBLEM THAT TAKES MANY SECONDS TO SOLVE
prob.solve(lp.SCIP_PY(**{
"msg": True,
'options': [
'limits/time', 4
]
}))
print('Status', prob.status)
print("Translated Status:", LpStatus[prob.status])
Reports:
Status 1
Translated Status: Optimal
Meanwhile internally:
status = scip_to_pulp_status[solutionStatus]
print(f'{solutionStatus=} {status=}')
Reports: solutionStatus='timelimit' status=0
num_solutions = lp.solverModel.getNSols()
print(f'=====> {num_solutions=}')
Reports: =====> num_solutions=0
What did you expect to see?
If number of solutions is 0 and the solver returns timelimit reached pulp should not report 'optimal' and allow access to model (that does not meet the constraints)
What did you see instead?
You can access a model that does not obey the constraints
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:
Did you also
Details for the issue
What did you do?
... HARD PROBLEM THAT TAKES MANY SECONDS TO SOLVE
prob.solve(lp.SCIP_PY(**{
"msg": True,
'options': [
'limits/time', 4
]
}))
print('Status', prob.status)
print("Translated Status:", LpStatus[prob.status])
Reports:
Status 1
Translated Status: Optimal
Meanwhile internally:
status = scip_to_pulp_status[solutionStatus]
print(f'{solutionStatus=} {status=}')
Reports: solutionStatus='timelimit' status=0
num_solutions = lp.solverModel.getNSols()
print(f'=====> {num_solutions=}')
Reports: =====> num_solutions=0
What did you expect to see?
If number of solutions is 0 and the solver returns timelimit reached pulp should not report 'optimal' and allow access to model (that does not meet the constraints)
What did you see instead?
You can access a model that does not obey the constraints
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:
Did you also