Hello, I 'm working on the nonlinear programmming with constraints.
>> load('JIRIOT_is3.mat')
>> options = optimoptions(@fmincon, 'Display','iter','Algorithm','interior-point');
>> [x,fval,exitflag,output,lambda] = fmincon(@(x)mindistance_xo(x,x0),x0,A,b,Aeq,beq,lb,[],[],options)
But, matlab replied the error message as follows:
>>Value of NaN or Inf is included in the finite-difference derivatives at the initial point.
I enclosed the data file('JIRIOT_is3.mat') and objective function file(mindistance_xo.m).
Could you please give some advices to me how to solve the above program?
Best Answer