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

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

[Octave-bug-tracker] [bug #57446] fminsearch fails to exit


From: anonymous
Subject: [Octave-bug-tracker] [bug #57446] fminsearch fails to exit
Date: Thu, 19 Dec 2019 04:52:27 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?57446>

                 Summary: fminsearch fails to exit 
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 19 Dec 2019 09:52:26 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,

It appears fminsearch fails to exit properly, and instead calls the function
that is trying to be minimized again but without the arguments. 

Call fminsearch with:

[pm,ssr] = fminsearch(@fssr,pm0,optimset('Display', 'final'),y,x,ymax,xmax);

It iterates through alright, and produces output:

Simplex size 8.2135e-05 <= 1.0000e-04 and step in function value 0.0000e+00 <=
1.0000e-07...quitting

But then immediately after it gives:

error: 'y' undefined near line 6 column 6
error: called from
    fssr at line 6 column 1
    fminsearch at line 105 column 10
    estm_sym_20180507 at line 41 column 13

It appears to me that Stopping Test 3 is met so fminsearch breaks, however it
then calls the function fssr again. I am sure there is no second call to fssr
within the script that is being run.

Thanks




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57446>

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




reply via email to

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