How can I extract function evaluations that happen during iterations (fmincon) ?
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Helena Weddell
le 9 Mar 2019
Commenté : Helena Weddell
le 11 Mar 2019
I am using fmincon and I would like to see/store the values of the objective function and my 3 variables during iterations, not just the values at the end of each iteration - is this possible ? I can see that there are multiple function evaluations per iteration and would like to store and then plot these values :
0 commentaires
Réponse acceptée
Alan Weiss
le 11 Mar 2019
The only way I know to do this is to have your objective function either display or write the values as it calculates them. The usual way to extract information from an optimization solver is to use an output function, but output functions only report the result at the end of each iteration, not all internal calculations.
Good luck,
Alan Weiss
MATLAB mathematical toolbox documentation
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!