diff options
Diffstat (limited to 'macros/fmincon.sci')
-rw-r--r-- | macros/fmincon.sci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/fmincon.sci b/macros/fmincon.sci index 2630683..6e2d064 100644 --- a/macros/fmincon.sci +++ b/macros/fmincon.sci @@ -303,8 +303,8 @@ function [xopt,fopt,exitflag,output,lambda,gradient,hessian] = fmincon (varargin nlc = varargin(9); end - //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 (1st Parameter)"), "fmincon"); error(errmsg); end |