Open dreinon opened 3 years ago
ok, got it. This will require some refactoring in the solver code but it can be done, most of the material is already there.
I have achieved this for now by:
Because of 2, I modified the returns of add_objective methods to return indicators, so I could apply constraints to them.
It might be better if the objective of (1) is removed before (3) since the constraint of (2) does the work.
It might be useful for some cases of use to have this kind of solver.