Deactivating and reactivating JuMP constraints

Is there a way to deactivate and reactivate JuMP constraints that are tied to a model?

I found delete(model, constraint), but once deleted, constraints can’t be added back again.

You can change the rhs to be so big or so small that it is not binding anymore, I think.

1 Like