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

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

[Octave-bug-tracker] [bug #64859] [octave forge] (optim) lsqnonlin optio


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #64859] [octave forge] (optim) lsqnonlin options FinDiffType
Date: Sun, 5 Nov 2023 06:59:57 -0500 (EST)

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

                 Summary: [octave forge] (optim) lsqnonlin options FinDiffType
                   Group: GNU Octave
               Submitter: lt1234
               Submitted: Sun 05 Nov 2023 11:59:55 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 8.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 05 Nov 2023 11:59:55 AM UTC By: Liang Tang <lt1234>
According to documentation, lsqnonlin options.FinDiffType accepts two inputs:
forward or centered.  In the code, it checks for central, not centered. 
Thanks.  

Documentation: 

 'FinDiffType' "centered" or "forward" (Default) type finite
     differences estimation.

Code: 

elseif (strcmpi (FinDiffType, "central"))


Example: 

>> fun=@(x) x^2; x0=1;
>> options=optimset('lsqnonlin'); options.FinDiffType= 'centered';
>> [x, RESNORM, RESIDUAL, exitflag] = lsqnonlin(fun,x0, [], [], options);
error: unknown value of option 'FinDiffType': centered
error: called from
    lsqnonlin at line 219 column 9
>> options=optimset('lsqnonlin'); options.FinDiffType= 'central';
>> [x, RESNORM, RESIDUAL, exitflag] = lsqnonlin(fun,x0, [], [], options);
>>










    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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