|
"John Smith" <johnps@gmail.com> wrote in message <j1sclk$8ck$1@newscl01ah.mathworks.com>...
> Why does fmincon return the initial guess if the constraints are not compatible? It is extremely frustrating because if one wants to use fmincon over a loop, I cannot think of a way to distinguish between solutions found that fit the constraints and the "solution" given which is just the initial guess. If I could find a way to distinguish then that would be great!
===============
Use the exitflag output to determine why FMINCON stopped
[x,fval,exitflag]=fmincon(...)
|