For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?
Ältere Kommentare anzeigen
For LSQNONLIN is it okay if the number of elements in the vector-valued function varies per iteration?
I have a vector-valued optimisation function producing say the variable Fopt. However for some parameter combinations some of the entries in the vector Fopt may yield NaN. At present I have this in the optimisation function:
Fopt=Fopt(~isnan(Fopt));
However that will result in the number of elements varying with iterations. Alternatively I can keep the same vector length but allow for NaN entries.
Which is the better approach?
Kevin
1 Kommentar
Kevin Moerman
am 1 Mär. 2012
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu ANOVA finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!