Pyomo / pyomo

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

Handle empty models in Pyomo-HiGHS interface #3106

Open michaelbynum opened 6 months ago

michaelbynum commented 6 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 6 months ago

We could add empty_model to TerminationCondition?

blnicho commented 6 months ago

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