From 8484c85784b84cc3a9257f8d8065b3a8a7800628 Mon Sep 17 00:00:00 2001 From: harpreet Date: Wed, 6 Apr 2016 10:46:05 +0530 Subject: qpiopt updated --- macros/fminunc.sci | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/fminunc.sci') diff --git a/macros/fminunc.sci b/macros/fminunc.sci index b8ff7b5..a24f1f9 100644 --- a/macros/fminunc.sci +++ b/macros/fminunc.sci @@ -271,14 +271,14 @@ function [xopt,fopt,exitflag,output,gradient,hessian] = fminunc (varargin) errmsg = msprintf(gettext("%s: Value for Maximum Iteration should be a Constant"), "fminunc"); error(errmsg); else - options(2*i) = param(2*i); //Setting the maximum number of iterations as per user entry + options(2) = param(2*i); //Setting the maximum number of iterations as per user entry end case "cputime" then if (type(param(2*i))~=1) then errmsg = msprintf(gettext("%s: Value for Maximum Cpu-time should be a Constant"), "fminunc"); error(errmsg); else - options(2*i) = param(2*i); //Setting the maximum CPU time as per user entry + options(4) = param(2*i); //Setting the maximum CPU time as per user entry end case "gradient" then if (type(param(2*i))==10) then -- cgit