fminsearch finds local minimum when fminunc does not?
Mostra commenti meno recenti
Hi everyone,
I know the difference between fminsearch and fminunc has been discussed many times, but I am facing the following problem (minimization of an error function through 1 or 2 variables) : for my problem, fminsearch finds a local minimum while fminunc does not at all (stopping with initial guess...). Of course, I compared the two behaviors by just replacing the optim function names, with exactly the same starting guess and no additional options... I would be happy with fminsearch, but then I need to be able to define constraints and then use fmincon, so if at first fminunc does not work...
I tried it on Matlab 2008 and Matlab 2013... Same behavior!
Any idea?
Thanks,
Pascal
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Choose a Solver in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!