I don't know why this message appear when I try to run this codes to solve the non-linear problem which includes 3 variables and 4 inequality constraints by Genetic Algorithm. Anyone can help me ??
*****************Fitness Function*********************************
y=(x(3)+2)*x(2)*x(1)^2;
*************************** Constraints***************************
c=[1 -((x(2)^3*x(3))/(71785*x(1)^4)),(((4*x(2)^2 - x(1)*x(2))/(12566*(x(2)*x(1)^3 - x(1)^4)))+(1/5108*x(1)^2)-1),1-((140.45*x(1))/(x(2)^2*x(3))), ((x(2)+x(1))/1.5)-1];
******************************GA codes*************************
objectiveFunction =@Tension;
nvars =3;
lb =[2 0.25 0.05];
ub =[15 1.3 2];
ConstraintFunction=@Tension_Const;
%options=optimoptions('ga','MutationFcn',@mutationadaptfeasible);
options=optimoptions('ga','UseVectorized',true);
options=optimoptions(options,'PlotFcn',{@gaplotbestf,@gaplotmaxconst},...
'Display','iter','PopulationSize',50);
[x,y]=ga(objectiveFunction,nvars,[],[],[],[],[],[],lb,ub,...
ConstraintFunction,options)