Hello Bruno
"Bruno Luong" <b.l...@fogale.findmycountry> wrote in message <ns3sqb$gsg$
1...@newscl01ah.mathworks.com>...
> If FMINCON can't decrease the cost function, then it is hopeless. Don't count on minor change of bookeeping smallest value to make it works reliable.
why shouldn't I do this?
>
> Look at your side, such as make the cost function smoother, more quadratic,
It's a smooth least squares problem
> less nasty constraints,
With the constraints I've to ensure that a certain matrix (derived from the fit parameters) is positive semidefinite. I checked different criteria. 'Principal minors'-criterion is the most reliable. The nonlinear constraints are the heart of the problem. There's no way to get around.
> estimate accurately the first guess
As mentioned before: I actually have a very good first guess, which in any case fulfils the constraints. The problem is that the algorithm walks to a worse value.
> feed fmincon with analytic gradient and hessian.
I offered analytic gradients now for the objective function as well as for the constraints: impact=0
I still claim that leaving a good point and giving a worse point as final result is a bug!
Matthias