jump-dev / HiGHS.jl

A Julia interface to the HiGHS solver
https://highs.dev
MIT License
108 stars 15 forks source link

Excessive printout from Highs_run() #150

Closed cjuli1 closed 1 year ago

cjuli1 commented 1 year ago

When using HiGHS.jl either directly (HiGHS_Prob) or through JuMP (JuMP_Prob), I get this extra printout when solving a problem. This happened after updating several packages to the newest version. The printout comes from Highs_run().

image

odow commented 1 year ago

Do you have a reproducible example?

Can you take your JuMP model and call write_to_file(model, "problem.mps") and then upload that file?

cjuli1 commented 1 year ago

Gist with model and jupyter notebook: https://gist.github.com/culi122/9b54d24fe96bf99fa22283a326176ee7

So it is the presolve that is printing results even though the model is set silent?

Isolated the problem down to one concept, could only reproduce it for this. The concept is a pumped hydro storage (PHS) plant with upper and lower reservoir (with no inflow). It can produce and pump water between the two reservoirs, using or delivering power to/from a power market (exogenous or endogenous).

odow commented 1 year ago

So it is the presolve that is printing results even though the model is set silent?

It's likely just a bug in the upstream HiGHS solver that is printing despite log level being set to silent.

odow commented 1 year ago

Closing in favor of https://github.com/ERGO-Code/HiGHS/issues/1120.

Thanks for finding and reporting this!