summaryrefslogtreecommitdiff
path: root/macros/fminunc.sci
diff options
context:
space:
mode:
authorHarpreet2016-01-25 14:20:26 +0530
committerHarpreet2016-01-25 14:20:26 +0530
commitb97c2cb250a9af50112302461eb032fc31a02aae (patch)
treef98dbda56443ad85f5e033beade1ed7fa19b854a /macros/fminunc.sci
parenta2d9c2bfd6eb83d1a494821176388eb312d08254 (diff)
downloadFOSSEE-Optimization-toolbox-b97c2cb250a9af50112302461eb032fc31a02aae.tar.gz
FOSSEE-Optimization-toolbox-b97c2cb250a9af50112302461eb032fc31a02aae.tar.bz2
FOSSEE-Optimization-toolbox-b97c2cb250a9af50112302461eb032fc31a02aae.zip
fmincon updated
Diffstat (limited to 'macros/fminunc.sci')
-rw-r--r--macros/fminunc.sci4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/fminunc.sci b/macros/fminunc.sci
index 07fa92a..f39c312 100644
--- a/macros/fminunc.sci
+++ b/macros/fminunc.sci
@@ -152,8 +152,8 @@ function [xopt,fopt,exitflag,output,gradient,hessian] = fminunc (varargin)
fun = varargin(1);
x0 = varargin(2);
- //To check whether the 1st Input argument(f) is a function or not
- if (type(f) ~= 13 & type(f) ~= 11) then
+ //To check whether the 1st Input argument(fun) is a function or not
+ if (type(fun) ~= 13 & type(fun) ~= 11) then
errmsg = msprintf(gettext("%s: Expected function for Objective "), "fminunc");
error(errmsg);
end