1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: Further Octave 7 fix
Avoid 'too many arguments' in fmincon with user-supplied gradient
Origin: upstream, https://sourceforge.net/p/octave/optim/ci/197b5a882a41bc9945b6df95f0ef1fb2c7bfc82f/
Bug: https://savannah.gnu.org/bugs/?61801
Reviewed-by: Sébastien Villemot <sebastien@debian.org>
Last-Update: 2022-04-15
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
@@ -217,7 +217,7 @@ function [p, objf, cvg, outp] = fmincon
o.df_equc_idx = false;
if (strcmp (o.GradObj, "on"))
- f.dfdp = @ (p) out_2_wrapper (f.objf, p);
+ f.dfdp = @ (p, varargin) out_2_wrapper (f.objf, p);
dfdp_specified = true;
else
f.dfdp = @ __dfdp__;
|