octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53991] Octave crashes using fsolve when x0 is


From: Marco Caliari
Subject: [Octave-bug-tracker] [bug #53991] Octave crashes using fsolve when x0 is a stationary point
Date: Wed, 20 Jun 2018 04:46:08 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #6, bug #53991 (project octave):

@Rik: my first thought was that info = -2 should be set when fjac is small AND
fvec is still large. So I tried


[~, ~, flag] = fsolve (detB, pi)


(pi is the right solution), but I get flag = -3. I would conclude that:

1) fsolve should check whether the initial solution is already fine before the
## Outer loop

2) when it computes a new fjac, it means that the previous fvec was not fine.
Therefore it is correct just to check whether the new fjac is not too small,
as you did

3) I would use norm (fjac, 1). The 1-norm is easier to compute.

4) For unconverged cases, Matlab gives a message (not a warning).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53991>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]