Closed hdavid16 closed 2 years ago
This may not be the best option since expressions don't have operators (<=
, >=
, ==
). Thus you would need to have the expressions in canonical form (<= 0
) to properly do the reformulation.
A pro of using expressions, is that for the nonlinear case, you can name them, which you can't do with nonlinear-constraints
https://jump.dev/JuMP.jl/stable/manual/expressions/
This is probably a better approach for the internals of this package. This way, constraints are not modified, but the expressions are reformulated and then added as constraints.