How to mute output with options.verbosity?

22 views
Skip to first unread message

Kostas Ntougias

unread,
Oct 25, 2021, 4:52:50 AM10/25/21
to Manopt
Hi!

I want to mute the output that manopt generates at the command prompt of Matlab. Checking the tutorial, I found out that this can be achieved by setting the numerical value of options.verbosity to 2. But how and where is this done?

Setting: 

[options.verbosity] = 2;

before running:

[x,cost,options] = conjugategradient(problem,Fr(:));

didn't work, neither did of course:

[x,cost,options.verbosity = 2] = conjugategradient(problem,Fr(:));

nor did the approach of simply omitting the options in solver calling:

[x,cost = conjugategradient(problem,Fr(:));

Thank you in advance.

K.

Nicolas Boumal

unread,
Oct 25, 2021, 5:02:37 AM10/25/21
to Manopt
Hello, 

You  can do as follows:

options.verbosity = 0;

Then cal your solver with options as an input, not an output:

conjugategradient(problem, Fr(:), options) ;

Best, 
Nicolas 

Reply all
Reply to author
Forward
Message has been deleted
0 new messages