Foggalong / RobustOCS

Robust optimal contirbution selection problems for genetics with Python
https://pypi.org/project/robustocs
MIT License
1 stars 0 forks source link

Utilise `kHighsStatus` returns #14

Closed Foggalong closed 2 months ago

Foggalong commented 2 months ago

h.passModel(...) returns a kHighsStatus variable, which indicates whether an issue occurred (see docs). Similarly h.run() returns a kHighsModelStatus (see docs) which indicates whether the model was feasible, unbounded, solved to optimality, etc.

It would be ideal to use these to incorporate readable error handling into the module, rather than relying on a user enabling debug=True and then trawling through pages on pages of logs. This could be leveraged to include slightly more granular output as well.

To do:

jajhall commented 2 months ago

'run()' returns a HighsStatus. The model status that it sets is available as 'getModelStatus()'.

Foggalong commented 2 months ago

Thanks Julian, updated the list accordingly!