Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


Vsh
Posts:
14
Registered:
12/8/12


Minimization using Fmincon Error
Posted:
Aug 5, 2013 2:02 PM


Hello everyone, I'm working on a minimization problem with the objective of minimizing the difference between the measured properties and my model's input parameters (5 variables). I'm using fmincon: thus I have an objective function (i.e. my mechanistic model), initial guesses for my variables, no linear equality/inequality (i.e. [],[],[],[]), lower bound, upper bound for all variables and a constraint function (i.e. nlconst) to ensure positive, definitness of my variables.
Of course my code is not working but I quiet don't get where it fails, I was hoping you guys could help me understand what these error messages mean:
Error using optimfcnchk/checkfun (line 318) User function 'homogenizationRoutine1t' returned NaN when evaluated; FMINCON cannot continue.
Error in nlconst (line 744) f = feval(funfcn{3},x,varargin{:});
Error in fmincon (line 837) [X,FVAL,LAMBDA,EXITFLAG,OUTPUT,GRAD,HESSIAN]=...
Does this mean that my constraints (defined by me) cannot be met using the defined objective function (also defined by me)?



