Skip to content

SCIPAMPL fails to get primal bound from log file #3107

Open
@lpierezan

Description

@lpierezan

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions