coin-or / pulp

A python Linear Programming API

Home Page:http://coin-or.github.io/pulp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

report Not Solved/No Solution Exists when scip solver found a feasible solution already

ben-xj opened this issue · comments

commented

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: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using python version:

  • 2.7
  • 3.4
  • 3.5
  • 3.6
  • Other: 3.9

I installed PuLP via:

Did you also