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

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

[Octave-bug-tracker] [bug #60018] [octave forge] (optim) residmin_stat g


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60018] [octave forge] (optim) residmin_stat gives error when some variables are flagged as fixed.
Date: Mon, 8 Feb 2021 06:14:40 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63

Follow-up Comment #2, bug #60018 (project octave):

This seems to be a regression from optim 1.5.3 to optim 1.6.0 (not a
regression in core Octave).

The respective lines in `__resid_min__` are:
https://sourceforge.net/p/octave/optim/ci/default/tree/inst/private/__residmin_stat__.m#l369

    ## model function
    f = @ (p, varargin) f (assign (pfin, o.nonfixed, p), varargin{:});

    ## jacobian of model function
    if (have_dfdp)
      f.dfdp = @ (p, hook) ...
          f.dfdp (assign (orig_p, o.nonfixed, p), hook)(:, o.nonfixed);
    endif


The function handle `f` cannot be indexed with `.`.

Possibly introduced with this changeset:
https://sourceforge.net/p/octave/optim/ci/f35fa39838a1#diff-4

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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