pulp
pulp copied to clipboard
report Not Solved/No Solution Exists when scip solver found a feasible solution already
For SCIP only, it report Not Solved/No Solution Exists when the solver found a feasible solution already. CBC and Cplex works fine.
i can see from scip output that a feasible solution is found:
SCIP Status : solving was interrupted [time limit reached] Solving Time (sec) : 60.00 Solving Nodes : 458 Primal Bound : -1.69680949699402e+06 (4 solutions) Dual Bound : -3.19371571353679e+06 Gap : 88.22 %
What did you do?
code:
solver = pulp.SCIP(msg=True, keepFiles=False, timeLimit=60)
self.model.solve(solver)
log.info(f'Status: {pulp.LpStatus[self.model.status]}')
status = pulp.LpSolution[self.model.sol_status]
log.info(f'Solution status: {status}')
What did you expect to see?
The best solution at the timelimit.
What did you see instead?
Not Solved/No Solution Exists
Useful extra information
The info below often helps, please fill it out if you're able to. :)
What operating system are you using?
- [ ] Windows: ( version: ___ )
- [ ] Linux: ( distro: ___ )
- [x] Mac OS: ( version: ___ )
- [ ] Other: ___
I'm using python version:
- [ ] 2.7
- [ ] 3.4
- [ ] 3.5
- [ ] 3.6
- [x] Other: 3.9
I installed PuLP via:
- [x] pypi (python -m pip install pulp)
- [ ] github (python -m pip install -U git+https://github.com/coin-or/pulp)
- [ ] Other: ___ (conda?)
Did you also
- [ ] Tried out the latest github version: https://github.com/coin-or/pulp
- [x] Searched for an existing similar issue: https://github.com/coin-or/pulp/issues?utf8=%E2%9C%93&q=is%3Aissue%20