代码搜索:种群进化
找到约 1,664 项符合「种群进化」的源代码
代码结果 1,664
www.eeworm.com/read/375831/9348783
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/177121/9469242
txt contents.txt
遗传算法程序
主要程序
ga.m 遗传算法核心程序
BinaryExample.m 二进制编码应用程序
FloatExample.m 浮点编码的应用程序
相关算子及函数
initializega.m 种群初始化函数
simpleXover.m
www.eeworm.com/read/365500/9860839
m outputdata.m
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/365500/9860841
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/364689/9898302
m outputdata.m
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/425713/10335250
m outputdata.m
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/425713/10335256
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/354002/10397534
m outputdata.m
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/354002/10397543
asv outputdata.asv
%实时输出结果
%输出当前种群中粒子位置
subplot(1,2,1);
for i=1:popsize
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x,gbest_y,'r.','markersize',20);axis([-2,2,-2,2]);
hold off;
subplot(1
www.eeworm.com/read/353044/10476325
m ccd.m
flag=0; %停止程序标志
oldbestval=0; %记录旧的适应度值
samecounter=0; %记录得到相同适应度值的迭代次数
iteration = 0; %迭代次数
MaxIter =2000; %最大迭代次数
PopSize=200; %种群大小
alpha=0.8; %概率
beta=0.4;
w=0.4;
%NDim = 14;
N