Question: how fmincon works in matlab?
Answer: By default, fmincon will print messages saying what stopping tolerance was met. Calling fmincon with additional output arguments is also a way to obtain further information, [x,fval,exitflag,output] = fmincon(...) It will include the searching path with respect to a particular start point.