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

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

[Octave-bug-tracker] [bug #64516] optimset silently replace user defined


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #64516] optimset silently replace user defined "n" with "niter_check_tolfun"
Date: Sat, 5 Aug 2023 15:09:48 -0400 (EDT)

Follow-up Comment #3, bug #64516 (project octave):

OK -- I can reproduce the problem. The optim package does something with
this.

octave:1> options=optimset('n', 100)
warning: optimset: unrecognized option: n
warning: called from
    optimset>setoptionfields at line 187 column 9
    optimset at line 169 column 12

options =

  scalar structure containing the fields:

    n = 100

octave:2> pkg load optim
octave:3> options=optimset('n', 100)
options =

  scalar structure containing the fields:

    niter_check_tolfun = 100

octave:4> which optimset
'optimset' is a function from the file
/usr/local/share/octave/9.0.0/m/optimization/optimset.m



Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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