代码搜索:种群进化
找到约 1,664 项符合「种群进化」的源代码
代码结果 1,664
www.eeworm.com/read/157533/11693572
m example5_34.m
function NewChrIx = sus(FitnV,Nsel);
% FitnV-种群中每个染色体的适值
% Nsel-选择的染色体数目
[Nind,ans] = size(FitnV);
% 进行随机采样
cumfit = cumsum(FitnV);
trials = cumfit(Nind) / Nsel * (rand + (0:Nsel-1)');
Mf = c
www.eeworm.com/read/346423/11748640
txt tsp.txt
Private Sub Command1_Click()
Dim code(200, 8) As Integer '编码,种群数为200
Dim code1(200, 8) As Integer
Dim uncode(200, 8) As Integer '解码
Dim lj(200, 8) As Integer '路径
Dim d(200) As Single '每条路径的距离
Di
www.eeworm.com/read/340084/12182841
m gate.m
% 生成量子门并更新个体
%Gate
%individualP=zeros(2,n,4,k); 量子态个体
%individualR=zeros(k,4); 十进制态个体
%communityP=zeros(2,n,4,k,pop); 种群量子位数据库
%communityR=zeros(k,4,pop);
www.eeworm.com/read/251858/12314376
m communication.m
%种群通信函数
for i=1:city_n
for j=1:city_n
ph_table_A(i,j)=(ph_table_A(i,j)+ph_table_B(i,j))/2;
ph_table_B(i,j)=ph_table_A(i,j);
end
end
www.eeworm.com/read/149368/12384934
m example5_34.m
function NewChrIx = sus(FitnV,Nsel);
% FitnV-种群中每个染色体的适值
% Nsel-选择的染色体数目
[Nind,ans] = size(FitnV);
% 进行随机采样
cumfit = cumsum(FitnV);
trials = cumfit(Nind) / Nsel * (rand + (0:Nsel-1)');
Mf = c
www.eeworm.com/read/222263/14699195
m communication.m
%种群通信函数
for i=1:city_n
for j=1:city_n
ph_table_A(i,j)=(ph_table_A(i,j)+ph_table_B(i,j))/2;
ph_table_B(i,j)=ph_table_A(i,j);
end
end
www.eeworm.com/read/114381/15055933
m example5_34.m
function NewChrIx = sus(FitnV,Nsel);
% FitnV-种群中每个染色体的适值
% Nsel-选择的染色体数目
[Nind,ans] = size(FitnV);
% 进行随机采样
cumfit = cumsum(FitnV);
trials = cumfit(Nind) / Nsel * (rand + (0:Nsel-1)');
Mf = c
www.eeworm.com/read/395890/2432088
m my_sga_selection.m
%遗传算法子程序
%Name: selection.m
%选择复制
function [newpop,dna_best,dna_best_value]=my_sga_selection(popsize,pop,fitvalue)
%函数说明
%入口参数:pop 当前处理的种群,
% fitvalue 适应度值数组
% pops
www.eeworm.com/read/395890/2432094
m complete_o_crossover.m
%交叉
%遗传算法子程序
%Name: crossover.m
%交叉
function [newpop]=complete_o_crossover(popsize,pop,pc,fitvalue,fun_num,up_range,down_range,var_num)
%函数说明
%入口参数:pop 当前处理的种群,
% popsize
www.eeworm.com/read/395890/2432155
m my_sga_selection.m
%遗传算法子程序
%Name: selection.m
%选择复制
function [newpop,dna_best,dna_best_value]=my_sga_selection(popsize,pop,fitvalue)
%函数说明
%入口参数:pop 当前处理的种群,
% fitvalue 适应度值数组
% pops