Skip to content

SCIP Solver Results undefined/unknown/inf #1615

Open
@goghino

Description

@goghino

After solving a model (code here) using SCIP (SCIP version 7.0.1 [precision: 8 byte] [memory: block] [mode: optimized] [LP solver: SoPlex 5.0.1] [GitHash: b41d526acf]), the results components (i.e. gap, bounds, sense) remain undefined or inf, as shown below. The solution is correct though, the same as found with Gurobi (version 9.0.1 build v9.0.1rc0 (mac64)). The bounds and gap shown in the solver output (tee=True) is also the same as in case of Gurobi. What can be done about correctly setting the results object?

solver = pyo.SolverFactory('scip')
results = solver.solve(m, keepfiles=True, tee=True, load_solutions=False)

results.write()

if results.solver.termination_condition == pyo.TerminationCondition.optimal:
    m.solutions.load_from(results)

m.pprint()
# ==========================================================
# = Solver Results                                         =
# ==========================================================
# ----------------------------------------------------------
#   Problem Information
# ----------------------------------------------------------
Problem: 
- Lower bound: -inf
  Upper bound: inf
  Number of objectives: 1
  Number of constraints: 0
  Number of variables: 20
  Sense: unknown

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