summaryrefslogtreecommitdiff
path: root/macros/fminbnd.sci
diff options
context:
space:
mode:
authorharpreet2016-04-06 10:46:05 +0530
committerharpreet2016-04-06 10:46:05 +0530
commit8484c85784b84cc3a9257f8d8065b3a8a7800628 (patch)
treec508e843855e75529056e06992b7ef43939f52b9 /macros/fminbnd.sci
parent7cf9300c2eb4773afa9823cf4a179d43f70001aa (diff)
downloadFOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.gz
FOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.tar.bz2
FOSSEE-Optimization-toolbox-8484c85784b84cc3a9257f8d8065b3a8a7800628.zip
qpiopt updated
Diffstat (limited to 'macros/fminbnd.sci')
-rw-r--r--macros/fminbnd.sci6
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/fminbnd.sci b/macros/fminbnd.sci
index b8772ae..baebe30 100644
--- a/macros/fminbnd.sci
+++ b/macros/fminbnd.sci
@@ -272,21 +272,21 @@ function [xopt,fopt,exitflag,output,lambda] = fminbnd (varargin)
errmsg = msprintf(gettext("%s: Value for Maximum Iteration should be a Constant"), "fminbnd");
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"), "fminbnd");
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 "tolx" then
if (type(param(2*i))~=1) then
errmsg = msprintf(gettext("%s: Value for Tolerance should be a Constant"), "fminbnd");
error(errmsg);
else
- options(2*i) = param(2*i); //Setting the tolerance as per user entry
+ options(6) = param(2*i); //Setting the tolerance as per user entry
end
else
errmsg = msprintf(gettext("%s: Unrecognized parameter name %s."), "fminbnd", param(2*i-1));