Defining an if condition in a constraint

I’m not an experienced JuMP user, but I think you are looking for @NLconstraint.

Here is an example:

1 Like