PyPSA / linopy

Linear optimization with N-D labeled arrays in Python
https://linopy.readthedocs.io
MIT License
162 stars 44 forks source link

MPS IO changes with highspy >= 1.7 #265

Closed FabianHofmann closed 5 months ago

FabianHofmann commented 6 months ago

As pointed out in #264, the new highspy package does not switch coefficient signs when exporting a MPS file of a maximizing problem. A warning should be added when people use maximization with MPS IO or the code should be checking the highspy version at https://github.com/PyPSA/linopy/blob/ecbc96266e3195b756fa528ff2faa4afe9243743/linopy/solvers.py#L124