I was about to give the same answer. Please use a constrained optimisation solver if this is what your problem is!
1 Like
I was about to give the same answer. Please use a constrained optimisation solver if this is what your problem is!