bugGNU Octave - Bugs: bug #64859, [octave forge] (optim) lsqnonlin...

 
 

bug #64859: [octave forge] (optim) lsqnonlin options FinDiffType

Submitter:  Liang Tang <lt1234>
Submitted:  Sun 05 Nov 2023 11:59:55 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Open
Release:  * 8.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 Nov 2023 11:59:55 AM UTC, original submission:  

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);
>>




Liang Tang <lt1234>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lt1234 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code