diff options
Diffstat (limited to 'macros/qpipopt.sci')
-rw-r--r-- | macros/qpipopt.sci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/qpipopt.sci b/macros/qpipopt.sci index c900f0c..1696967 100644 --- a/macros/qpipopt.sci +++ b/macros/qpipopt.sci @@ -218,9 +218,9 @@ function [xopt,fopt,exitflag,output,lambda] = qpipopt (varargin) select convstr(param(2*i-1),'l') case "maxiter" then - options(2*i) = param(2*i); + options(2) = param(2*i); case "cputime" then - options(2*i) = param(2*i); + options(4) = param(2*i); else errmsg = msprintf(gettext("%s: Unrecognized parameter name ''%s''."), "lsqlin", param(2*i-1)); error(errmsg) |