Closed victorgarcia98 closed 1 year ago
opt.config.load_solution = False
only works with opt_highs = Highs()
. If you use the solver factory, you have to use results = opt_highs_factory.solve(model, load_solutions=False)
.
Thanks @michaelbynum! :smile:
Summary
I run HiGHS in an infeasible problem but the solve step raises the
RuntimeError
exception, instead of returning a results object with the termination status beinginfeasible
. Tried using both using the solver classHighs
and theSolverFactory("appsi_highs")
, but both produce the same behavior. Moreover, I followed the indicationopt.config.load_solution=False
, but the exception still raised.Steps to reproduce the issue
Error Message
Information on your system
Pyomo version: Pyomo 6.6.1 (CPython 3.10.6 on Linux 6.2.6-76060206-generic) Python version: Python 3.10.6 Operating system: Pop Os How Pyomo was installed (PyPI, conda, source): pip Solver: HiGHs (v.1.5.3), installed through the pip package
highspy
(v.1.5.3).