Question: what is fmincon function in matlab?
Answer: nonlcon is a function that accepts a vector or array x and returns two arrays, c(x) and ceq(x) . c(x) is the array of nonlinear inequality constraints at x . fmincon attempts to satisfy. c(x) <= 0 for all entries of c . ceq(x) is the array of nonlinear equality constraints at x .