Final report for fminunc

3 vues (au cours des 30 derniers jours)
Mohamed Abdalmoaty
Mohamed Abdalmoaty le 21 Mar 2017
Commenté : Matt J le 21 Mar 2017
I'm using the optimization function fminunc. I'd like to generate a final report that includes: number of function calls, total time of optimization, (maybe time of each call?) and the path of the optimization variables (the values that they take: starting from the initial point, then for each iteration, until the value that Matlab returns.
How can we do this? The Display option of the optimization toolbox does not show these. I would like to have then stored as a result that I can read and manipulate.
  1 commentaire
Matt J
Matt J le 21 Mar 2017
Some of this information is returned in the 4th output argument of fminunc.

Connectez-vous pour commenter.

Réponse acceptée

Alan Weiss
Alan Weiss le 21 Mar 2017
Create an Output Function to record whatever information you like.
Alan Weiss
MATLAB mathematical toolbox documentation

Plus de réponses (0)

Catégories

En savoir plus sur Problem-Based Optimization Setup dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by