Hi guys, I want to create the "nonlincon' part of the "fmincon" function. I want to be able to call other variables in the nonlincon function like this:
function [c,ceq]=nonlincon(x,variable1,variable2,...,variableN)
but it gives this error:
Error in fmincon (line 681) [ctmp,ceqtmp] = feval(confcn{3},X,varargin{:});Caused by: Failure in initial user-supplied nonlinear constraint function evaluation. FMINCON cannot continue.
Please help me out, thanks in advance.
Best Answer