- Your function is improperly coded, so it does not do what you think it does. Yeah, like nobody ever does that.
- Your function is not smooth, and is possibly locally constant. Too often we see cases where something was done to make the objective function discrete in some way. Perhaps internal rounding is done somehow.
- Your starting values are such that the start point is in a region where the function is numically constant, to within the tolerances provided.
fminsearch does not minimize my function
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear all,
I am using fminsearch to minimize a function with 7 parameters..the function is very long. Fminsearch doesnt converge, each time it iterates the value of the function doesnt change (it doesnt minimize). Any ideas where the problem is?
Thanks a lot
Saad
0 Commenti
Risposta accettata
John D'Errico
il 9 Feb 2023
Probable user error. Various possibilities exist, the most common are:
0 Commenti
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!