pyomo icon indicating copy to clipboard operation
pyomo copied to clipboard

SCIPAMPL fails to get primal bound from log file

Open lpierezan opened this issue 2 years ago • 0 comments

Summary

I´m solving a pyomo model using scip solver. The scip log indicates primal bounds and dual bounds but with some numerical error message after the lp solver.

image

The read_scip_log method cannot extract the bounds because it assumes a fixed format in the last 7 lines of the log.

https://github.com/Pyomo/pyomo/blob/6b36613d67417f81ec8be5f4a93747e8ac8ded47/pyomo/solvers/plugins/solvers/SCIPAMPL.py#L429

So, in pyomo result objects, despite a status indicating that the solver has finished with a solution, the bounds are not filled (i.e result.solver.primal_bound is None).

image

Steps to reproduce the issue

Use SCIPAMPL to solve the model (nl format created by pyomo)

model_33.nl.txt

Information on your system

Pyomo version: 6.7.0 Python version: 3.9.16 Operating system: Win 11 How Pyomo was installed (PyPI, conda, source): pip Solver (if applicable): scip 8.1.0

lpierezan avatar Jan 25 '24 18:01 lpierezan