Pyomo / pyomo

An object-oriented algebraic modeling language in Python for structured optimization problems.
https://www.pyomo.org
Other
2.01k stars 518 forks source link

Unable to run precompiled `Highs` executable with Pyomo 6.4.3.dev0 #2604

Closed alejandro-yousef closed 1 year ago

alejandro-yousef commented 1 year ago

Summary

I know it may be too soon and I should wait for the official release but maybe it is useful to report it...

I tried to run Highs with Pyomo 6.4.3.dev0 (from source) having previously installed the precompiled executable from https://github.com/JuliaBinaryWrappers/HiGHS_jll.jl/releases without success

Anyway thank you for supporting Highs, I'm looking forward for the next release :)

Steps to reproduce the issue

import pyomo.environ as pe

opt_solver = pe.SolverFactory("highs")
opt_solver.solve(model)

Error Message

ERROR:   Error parsing options: Option 'A' does not exist
ERROR: Solver (asl) returned non-zero return code (4294967295)
ERROR: See the solver log above for diagnostic information.

Information on your system

Pyomo version: 6.4.3.dev0 Python version: 3.9 Operating system: Windows 10 How Pyomo was installed (PyPI, conda, source): Source Solver (if applicable): Highs

Additional information

michaelbynum commented 1 year ago

try pip install highspy (https://pypi.org/project/highspy/).

alejandro-yousef commented 1 year ago
ERROR: Could not find a version that satisfies the requirement highspy (from versions: none)
ERROR: No matching distribution found for highspy

There is still no wheel for Windows

l-kotzur commented 1 year ago

The windows wheel was added two days ago: https://github.com/ERGO-Code/HiGHS/issues/925

alejandro-yousef commented 1 year ago

It works with highspy ! 😃

For those who want to try, pass appsi_highs instead of highs to the SolverFactory

opt = pyo.SolverFactory('appsi_highs')