here is my codes.
k1=0.6;k2=0.25;k3=0.15; [x,fval] = ga(@(f)myfcn(f(1),f(2),f(3)),3) function t=myfcn(f)t=(k1*f(1)+k2*f(2)+k3*f(3));end%%all f values have been attained in another code
can anyone help me with this?
failuregenetic algorithm
k1=0.6;k2=0.25;k3=0.15; [x,fval] = ga(@(f)myfcn(f(1),f(2),f(3)),3) function t=myfcn(f)t=(k1*f(1)+k2*f(2)+k3*f(3));end%%all f values have been attained in another code
Best Answer