How to plot the convergence figure of the trustregions solver ?

14 views
Skip to first unread message

Prokins Wang

unread,
Jul 11, 2020, 5:24:21 AM7/11/20
to Manopt
Hi,
    I'm trying to show the great convergence of the objective value versus the iteration number, but I only find these code 
semilogy([info.iter], [info.gradnorm], '.-');
xlabel
('Iteration number');
ylabel
('Norm of the gradient of f');

which can only plot the figure of norm of the gradient versus the iteration number. Is there a way to plot the objective value against the iteration number ? Any comments would be appreciated!

Best
Prokins

Nicolas Boumal

unread,
Jul 11, 2020, 5:31:18 AM7/11/20
to Manopt
Hello Prokins,
Yes: use info.cost instead of info.gradnorm, if I remember correctly. On the manopt website, in the tutorial, do a text search for the word "gradnorm" and you will find a list of statistics available in info. You can also see this if you type "help trustregions" at the Matlab prompt.
Best,
Nicolas

Muntadher Q Alsabah

unread,
Jul 11, 2020, 5:31:20 AM7/11/20
to Prokins Wang, Manopt
Dear Prokins,

Convergence speed should be examined - if not analytically, at least it should be plotted in figures.  

So I am also interested to present the convergence behaviour in figures.

I hope that Nicolas Broumal has an idea to help us to do so. 

Best wishes



--
http://www.manopt.org
---
You received this message because you are subscribed to the Google Groups "Manopt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manopttoolbo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/manopttoolbox/72e17fd8-dcbb-443e-b18a-e021e2fc6324o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages