[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and f
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures |
Date: |
Fri, 8 Apr 2022 18:17:47 -0400 (EDT) |
Update of bug #61801 (project octave):
Release: 7.0.90 => 7.1.0
Summary: [octave forge] (optim) lsqnonlin doesn't work under
Octave 7.0.90 => [octave forge] (optim) lsqnonlin and fmincon test failures
_______________________________________________________
Follow-up Comment #4:
Retitling this bug and setting it to 7.1.0.
Also, for Octave 8 and optim 1.6.1 the tests still fail but the error is
different, referring to "fields2cell".
octave:2> test fmincon
***** test
## equality constraint
objective_function = @ (p) p(1)^2 + p(2)^2;
pin = [-2; 5];
constraint_function = @ (p) - (p(1)^2 + 1 - p(2));
[p, objf, cvg, outp] = fmincon (objective_function, pin, [], [], [], [], [],
[], @ (p) {[], constraint_function(p)}{:}, optimset ("Algorithm",
"lm_feasible"));
assert (p, [0; 1], 1e-6)
!!!!! test failed
'fields2cell' undefined near line 75, column 14
octave:4> test lsqnonlin
***** test
t = [0 .3 .8 1.1 1.6 2.3];
y = [.82 .72 .63 .60 .55 .50];
yhat = @(c,t) c(1) + c(2)*exp(-t);
opt = optimset('TolFun',1e-10);
[c,resnorm,residual] = lsqnonlin(@(c)yhat(c,t)-y,[1 1],[0 0],[],opt);
assert (c, [ 0.47595; 0.34132], 1e-5)
assert (resnorm, 3.2419e-004, 1e-8)
assert(residual, [-2.7283e-003, 8.8079e-003, -6.8307e-004, -1.0432e-002,
-5.1366e-003, 1.0172e-002], 1e-5)
!!!!! test failed
'fields2cell' undefined near line 75, column 14
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61801>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures,
Arun Giridhar <=
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, A.R. Burgers, 2022/04/09
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Arun Giridhar, 2022/04/09
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, A.R. Burgers, 2022/04/09
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Sébastien Villemot, 2022/04/09
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Arun Giridhar, 2022/04/09
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, A.R. Burgers, 2022/04/11
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Sébastien Villemot, 2022/04/13
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Olaf Till, 2022/04/15
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Sébastien Villemot, 2022/04/15
- [Octave-bug-tracker] [bug #61801] [octave forge] (optim) lsqnonlin and fmincon test failures, Markus Mützel, 2022/04/22