diff options
author | harpreet | 2016-04-06 10:46:05 +0530 |
---|---|---|
committer | harpreet | 2016-04-06 10:46:05 +0530 |
commit | 8484c85784b84cc3a9257f8d8065b3a8a7800628 (patch) | |
tree | c508e843855e75529056e06992b7ef43939f52b9 /macros/fminunc.sci | |
parent | 7cf9300c2eb4773afa9823cf4a179d43f70001aa (diff) | |
download | FOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.gz FOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.bz2 FOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.zip |
qpiopt updated
Diffstat (limited to 'macros/fminunc.sci')
-rw-r--r-- | macros/fminunc.sci | 4 |
1 files changed, 2 insertions, 2 deletions
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 |