MATLAB程序 源程序 xasdgnhmtukym
clcclearx_bound=[14;39];stringlength=8;dimension=2;popsize=10;pm=0.05;pop=initial_pop(popsize,stringlength,dimension);pop=fitness_calculation(pop,stringlength,dimension,x_bound);[number,k]=max(pop(:,stringlength*dimension+1));choice=pop(k,:);pop=selection_gen(pop,popsize,stringlength,dimension);[number,m]=min(pop(:,str
用户评论