FMINCON is appropriate, but you need to express your objective and constraints in terms of differentiable functions, e.g.,
Similarly, minimizing the non-differentiable function 8000-1000*norm(x) is the same as minimizing the differentiable function -norm(x)^2.
Best Answer