问题描述:
matlab遗传算法程序出错
function result=sga(n,a,b,pc,pm,e)
for i=1:50
if (b-a)/e>2^(i)
m=i+1;
else
i=i+1;
end
end
popusize=n;chromlength=m;j=1;
popu=round(rand(popusize,chromlength));
while j
function result=sga(n,a,b,pc,pm,e)
for i=1:50
if (b-a)/e>2^(i)
m=i+1;
else
i=i+1;
end
end
popusize=n;chromlength=m;j=1;
popu=round(rand(popusize,chromlength));
while j
问题解答:
我来补答展开全文阅读