Pyomo / pyomo

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

Handle empty models in Pyomo-HiGHS interface #3106

Open michaelbynum opened 10 months ago

michaelbynum commented 10 months ago

Summary

Currently an error gets raised when attempting to solve an empty model via the Pyomo-HiGHS interface. What should happen?

See this HiGHS issues: https://github.com/ERGO-Code/HiGHS/issues/1588

michaelbynum commented 10 months ago

We could add empty_model to TerminationCondition?

blnicho commented 9 months ago

This as discussed at the Pyomo dev call and we decided to add an EmptyModel termination condition to catch this case.