Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCIPAMPL fails to get primal bound from log file #3107

Open
lpierezan opened this issue Jan 25, 2024 · 0 comments
Open

SCIPAMPL fails to get primal bound from log file #3107

lpierezan opened this issue Jan 25, 2024 · 0 comments

Comments

@lpierezan
Copy link

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.

def read_scip_log(filename: str):

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants