JuMP with Ipopt - Error "The equality constraints contain an invalid number"

In fact, IPOPT assumes everything is differentiable everywhere, not just on the feasible set. It’s an infeasible method.