代码搜索:种群进化
找到约 1,664 项符合「种群进化」的源代码
代码结果 1,664
www.eeworm.com/read/484974/6569767
m intinti.m
function [pop]=INTinti(num,bounds)
%[pop]=INTinti(num,bounds)
%inti 编码函数
%num 种群数
%bounds 边界约束
% 作者:机自01-2班曾新海
% zxh21st@163.com
n=size(bounds,1);
L=bounds(:,2)-
www.eeworm.com/read/408618/11379192
m intinti.m
function [pop]=INTinti(num,bounds)
%[pop]=INTinti(num,bounds)
%inti 编码函数
%num 种群数
%bounds 边界约束
% 作者:机自01-2班曾新海
% zxh21st@163.com
n=size(bounds,1);
L=bounds(:,2)-
www.eeworm.com/read/407395/11419908
m intinti.m
function [pop]=INTinti(num,bounds)
%[pop]=INTinti(num,bounds)
%inti 编码函数
%num 种群数
%bounds 边界约束
% 作者:机自01-2班曾新海
% zxh21st@163.com
n=size(bounds,1);
L=bounds(:,2)-
www.eeworm.com/read/405263/11467305
m example5_36.m
function NewChrom = mut(OldChrom,Pm,BaseV)
% OldChrom-当代种群的染色体
% Pm-变异概率
% BaseV-染色体基
[Nind, Lind] = size(OldChrom) ;
if nargin < 2, Pm = 0.7/Lind ; end
if isnan(Pm), Pm = 0.7/Lind; end
if (n
www.eeworm.com/read/405263/11467327
m example5_4.m
function[newPop] = Select(oldPop,options)
q=options(2); % 选择最优的概率
e = size(oldPop,2);
n = size(oldPop,1); % 种群中个体的数目
newPop = zeros(n,e); % 初始化
fit = zeros(n,1); % 初始化
x=z
www.eeworm.com/read/405263/11467331
m example5_38.m
%每个种群中的个体数目
NIND = 20;
%最大代数
MAXGEN = 100;
GGAP = .8;
SEL_F = 'sus'; % 选择函数
XOV_F = 'xovsp'; % 交叉函数
MUT_F = 'mut'; % 变异函数
OBJ_F = 'objfun1'; % 目标
www.eeworm.com/read/157533/11693539
m example5_36.m
function NewChrom = mut(OldChrom,Pm,BaseV)
% OldChrom-当代种群的染色体
% Pm-变异概率
% BaseV-染色体基
[Nind, Lind] = size(OldChrom) ;
if nargin < 2, Pm = 0.7/Lind ; end
if isnan(Pm), Pm = 0.7/Lind; end
if (n
www.eeworm.com/read/157533/11693604
m example5_4.m
function[newPop] = Select(oldPop,options)
q=options(2); % 选择最优的概率
e = size(oldPop,2);
n = size(oldPop,1); % 种群中个体的数目
newPop = zeros(n,e); % 初始化
fit = zeros(n,1); % 初始化
x=z
www.eeworm.com/read/157533/11693618
m example5_38.m
%每个种群中的个体数目
NIND = 20;
%最大代数
MAXGEN = 100;
GGAP = .8;
SEL_F = 'sus'; % 选择函数
XOV_F = 'xovsp'; % 交叉函数
MUT_F = 'mut'; % 变异函数
OBJ_F = 'objfun1'; % 目标
www.eeworm.com/read/156883/11756716
m intinti.m
function [pop]=INTinti(num,bounds)
%[pop]=INTinti(num,bounds)
%inti 编码函数
%num 种群数
%bounds 边界约束
% 作者:机自01-2班曾新海
% zxh21st@163.com
n=size(bounds,1);
L=bounds(:,2)-