summaryrefslogtreecommitdiff
path: root/macros/matrix_linprog.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/matrix_linprog.sci')
-rwxr-xr-xmacros/matrix_linprog.sci2
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/matrix_linprog.sci b/macros/matrix_linprog.sci
index daf4168..667fd3d 100755
--- a/macros/matrix_linprog.sci
+++ b/macros/matrix_linprog.sci
@@ -109,7 +109,7 @@ function [xopt,fopt,exitflag,output,lambda] = matrix_linprog (varargin)
select convstr(param(2*i-1),'l')
case "maxiter" then
- options(2*i) = param(2*i);
+ options(2) = param(2*i);
else
errmsg = msprintf(gettext("%s: Unrecognized parameter name ''%s''."), "linprog", param(2*i-1));
error(errmsg)