summaryrefslogtreecommitdiff
path: root/macros/qpipopt.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/qpipopt.sci')
-rw-r--r--macros/qpipopt.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/qpipopt.sci b/macros/qpipopt.sci
index 1696967..c900f0c 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) = param(2*i);
+ options(2*i) = param(2*i);
case "cputime" then
- options(4) = param(2*i);
+ options(2*i) = param(2*i);
else
errmsg = msprintf(gettext("%s: Unrecognized parameter name ''%s''."), "lsqlin", param(2*i-1));
error(errmsg)