linopy icon indicating copy to clipboard operation
linopy copied to clipboard

Quadratic Constraints and/or objective

Open FBumann opened this issue 8 months ago • 2 comments

Non linear constraints can greatly improve the capabilities of a MILP-Model --> MIQP. The ability to use these kinds of constraints can be found in the linopy docs, but I only see the option to form a QuadraticExpression. But these cannot be used to from proper constraints and therefore constraint a variable. This seems rather useless to me. Or am I overlooking something obvious?

FBumann avatar Apr 17 '25 16:04 FBumann

I want to add that I would be ready to work on this functionality. But you might be able to give me a head start by sharing your past thoughts or attempts

FBumann avatar Apr 18 '25 09:04 FBumann

hey @FBumann, thanks of raising this and your willingness to support, this is always great to see in the open-source world :) there is the possibility to formulate quadratic objectives already, however quadratic constraints are not supported (yet). I would require to scan through the code in constraints.py and io.py and make an estimate what we would need to update. for the moment I cannot say how much effort this would be

FabianHofmann avatar Apr 22 '25 12:04 FabianHofmann