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

 
 

bug #54577: [octave forge] (optim) lsqnonlin error when requestion Jacobian output

Submitted by:  Ceral Paquet <octavebugs>
Submitted on:  Sun 26 Aug 2018 08:08:54 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error
Status:  Fixed Assigned to:  Olaf Till <i7tiol>
Originator Name:  Open/Closed:  Closed
Release:  4.4.1 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 04 Mar 2019 10:25:57 AM UTC, comment #5: 

Sorry, seemingly I didn't attend to this.

The original bug and the issue with honouring the parameter class mentioned in passing are now fixed in the repository. A new release will follow soon.

Olaf Till <i7tiol>
Project MemberIn charge of this item.
Mon 27 Aug 2018 05:40:21 PM UTC, comment #4: 

The function lsqnonlin is in the optim package.  Changing the category to Octave Forge Package.

Rik <rik5>
Project Administrator
Sun 26 Aug 2018 08:21:13 PM UTC, comment #3: 

lsqnonlin (@(x)sin(x),single([5]),-Inf,Inf);

Ceral Paquet <octavebugs>
Sun 26 Aug 2018 08:20:32 PM UTC, comment #2: 

OK the interface here doesn't like my empty square brackets.

Try again with Infs.

[X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),single([5]),-Inf,Inf);

Ceral Paquet <octavebugs>
Sun 26 Aug 2018 08:18:27 PM UTC, comment #1: 

The error goes away if I specify dummy arguments for UB and LB. i.e. I need to trigger nargs>=4 in order to get the settings variable initialized.

X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),5);

Another issue I noticed is the Jacobian does not respect the precision of my input variable. This is important because the Jacobian is often gigantic and it helps to use single precision. We don't need to care too much about high precision since the Jacobian is based on a local linearization approximation anyway.

>> [X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),5);
error: 'settings' undefined near line 263 column 63
error: called from
    lsqnonlin at line 263 column 10

>> [X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),5,[],[]);

>> [X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),single(5),[],[]);

>> whos
Variables in the current scope:

   Attr Name          Size                     Bytes  Class
   ==== ====          ====                     =====  =====
        EXITFLAG      1x1                          8  double
        JACOBIAN      1x1                          8  double
        LAMBDA        1x1                         16  struct
        OUTPUT        1x1                          8  struct
        RESIDUAL      1x1                          4  single
        RESNORM       1x1                          4  single
        X             1x1                          4  single

Total is 7 elements using 52 bytes

Ceral Paquet <octavebugs>
Sun 26 Aug 2018 08:08:54 PM UTC, original submission:  

>> [X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA] = lsqnonlin (@(x)sin(x),5);
>> [X, RESNORM, RESIDUAL, EXITFLAG, OUTPUT, LAMBDA, JACOBIAN] = lsqnonlin (@(x)sin(x),5);
error: 'settings' undefined near line 263 column 63
error: called from
    lsqnonlin at line 263 column 10

>> ver
----------------------------------------------------------------------
GNU Octave Version: 4.4.1 (hg id: 1f46d371968c)
GNU Octave License: GNU General Public License
Operating System: Linux 4.15.0-32-generic #35-Ubuntu SMP Fri Aug 10 17:58:07 UTC 2018 x86_64
----------------------------------------------------------------------
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io *|  2.4.11 | /home/ceral/octave/io-2.4.11
       optim *|   1.5.3 | /home/ceral/octave/optim-1.5.3
  statistics *|   1.4.0 | /home/ceral/octave/statistics-1.4.0
      struct *|  1.0.15 | /home/ceral/octave/struct-1.0.15
>>

Ceral Paquet <octavebugs>

 

(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 i7tiol (Posted a comment)
  • -email is unavailable- added by octavebugs (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-04 i7tiol StatusNone => Fixed
        Assigned toNone => i7tiol
        Open/ClosedOpen => Closed
    2018-08-27 mtmiller Carbon-CopyRemoved 80942 => -
    2018-08-27 mtmiller Summaryoptim package: lsqnonlin error when requestion Jacobian output => [octave forge] (optim) lsqnonlin error when requestion Jacobian output
    2018-08-27 rik5 Carbon-CopyRemoved 72865 => -
    2018-08-27 rik5 CategoryNone => Octave Forge Package
        Item GroupNone => Unexpected Error
        Summaryoptim: error when requestion Jacobian output => optim package: lsqnonlin error when requestion Jacobian output

    Back to the top


    Powered by Savane 3.5