How do I disable informational messages displayed by some optimization functions, such as LSQNONLIN?

77 views (last 30 days)
The LSQNONLIN function displays the following message when the function terminates normally:
Optimization terminated: norm of the current step is less
than OPTIONS.TolX.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This message is not a warning message per se, and for that reason doesn't have a message ID which would allow it to be disabled.
Warnings can be suppressed using
''warning off all'
By default LSQNONLIN displays a message upon termination which gives information about the conditions under which the optimization finished. If you want to disable this functionality, you may use the options structure as follows:
opts1= optimset('display','off');
This options structure can then be passed into the optimization function to disable the messages at the termination of the optimization.

More Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

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

Start Hunting!