Thread Subject: Suppressing messages from fsolve

Subject: Suppressing messages from fsolve

From: n o s p a m p l e a s e

Date: 28 Apr, 2008 08:49:11

Message: 1 of 5

I get the message below on every run.

Optimization terminated: relative function value changing by less
 than max(options.TolFun^2,eps) and sum-of-squares of function
 values is less than sqrt(options.TolFun).

How can I supress this message?

Subject: Suppressing messages from fsolve

From: John D'Errico

Date: 28 Apr, 2008 10:34:02

Message: 2 of 5

n o s p a m p l e a s e <nospam.please@alum.com> wrote in message
<046a9c28-e15e-492d-a9ec-
8c9c216563d2@26g2000hsk.googlegroups.com>...
> I get the message below on every run.
>
> Optimization terminated: relative function value changing by less
> than max(options.TolFun^2,eps) and sum-of-squares of function
> values is less than sqrt(options.TolFun).
>
> How can I supress this message?

Did you look at the 'display' option?

John

Subject: Suppressing messages from fsolve

From: n o s p a m p l e a s e

Date: 28 Apr, 2008 13:55:59

Message: 3 of 5

On Apr 28, 12:34=A0pm, "John D'Errico" <woodch...@rochester.rr.com>
wrote:
> n o s p a m p l e a s e <nospam.ple...@alum.com> wrote in message
> <046a9c28-e15e-492d-a9ec-
> 8c9c21656...@26g2000hsk.googlegroups.com>...
>
> > I get the message below on every run.
>
> > Optimization terminated: relative function value changing by less
> > =A0than max(options.TolFun^2,eps) and sum-of-squares of function
> > =A0values is less than sqrt(options.TolFun).
>
> > How can I supress this message?
>
> Did you look at the 'display' option?
>

Yes. Putting display on or off doesn't make any difference.

NSP

Subject: Suppressing messages from fsolve

From: John D'Errico

Date: 28 Apr, 2008 21:50:04

Message: 4 of 5

n o s p a m p l e a s e <nospam.please@alum.com> wrote in message
<79d85eb3-37be-4466-b2a5-
8c9dbad25342@b64g2000hsa.googlegroups.com>...
> On Apr 28, 12:34=A0pm, "John D'Errico" <woodch...@rochester.rr.com>
> wrote:
> > n o s p a m p l e a s e <nospam.ple...@alum.com> wrote in message
> > <046a9c28-e15e-492d-a9ec-
> > 8c9c21656...@26g2000hsk.googlegroups.com>...
> >
> > > I get the message below on every run.
> >
> > > Optimization terminated: relative function value changing by less
> > > =A0than max(options.TolFun^2,eps) and sum-of-squares of function
> > > =A0values is less than sqrt(options.TolFun).
> >
> > > How can I supress this message?
> >
> > Did you look at the 'display' option?
> >
>
> Yes. Putting display on or off doesn't make any difference.
>
> NSP

I don't believe that. I DO believe that you used
optimset, but that you then failed to pass in
the options structure to fsolve. In effect, you
never changed that option.

Just calling optimset is not relevant. This does
not globally set that option. You still need to
pass it in to the optimizer.

Read the help for fsolve. The 'display' option
will indeed turn it off as you wish.

John

Subject: Suppressing messages from fsolve

From: Titus

Date: 30 Apr, 2008 14:40:43

Message: 5 of 5


"n o s p a m p l e a s e" <nospam.please@alum.com> schrieb im Newsbeitrag
news:046a9c28-e15e-492d-a9ec-8c9c216563d2@26g2000hsk.googlegroups.com...
>I get the message below on every run.
>
> Optimization terminated: relative function value changing by less
> than max(options.TolFun^2,eps) and sum-of-squares of function
> values is less than sqrt(options.TolFun).
>
> How can I supress this message?

See example in doc fsolve:

Use optimset to suppress any messages
options = optimset('Display', 'off')
x = fsolve(F, x0, options)

Titus


Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com