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

Undesired printed output when using HiGHS solver #3003

Closed
alessandrozocca opened this issue Sep 25, 2023 · 0 comments · Fixed by #3005
Closed

Undesired printed output when using HiGHS solver #3003

alessandrozocca opened this issue Sep 25, 2023 · 0 comments · Fixed by #3005
Labels

Comments

@alessandrozocca
Copy link

Summary

Whenever I solve any Pyomo model with the HiGHS solver, I always get two lines of

Steps to reproduce the issue

Here is a simple minimum working example

import pyomo.environ as pyo
SOLVER = pyo.SolverFactory('appsi_highs')

model = pyo.ConcreteModel()
model.x = pyo.Var(domain=pyo.NonNegativeReals)
model.y = pyo.Var(domain=pyo.NonNegativeReals)
model.obj = pyo.Objective(expr=model.x + model.y, sense=pyo.maximize)
model.c1 = pyo.Constraint(expr=model.x <= 10)
model.c2 = pyo.Constraint(expr=model.y <= 5)
_ = SOLVER.solve(model)

Error Message

Not really an error message, but the undesired output is the following:

Running HiGHS 1.5.3 [date: ..., git hash: ...]
Copyright (c) 2023 HiGHS under MIT licence terms

Information on your system

Pyomo version: 6.6.2
Python version: 3.11.2
Operating system: macOS
How Pyomo was installed: poetry/pip
Solver (if applicable): Highs 1.5.3

Additional information

Oddly, when the same exact code is run on Google Colab (after having installed the identical version of Pyomo with the command !pip install pyomo), the output mentioned above does not appear. Note that the Python version running on Google Colab is 3.10.12.

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

Successfully merging a pull request may close this issue.

1 participant