代码搜索:种群进化
找到约 1,664 项符合「种群进化」的源代码
代码结果 1,664
www.eeworm.com/read/464287/7166534
m c67.m
%每个种群中的个体数目
NIND = 20;
%最大代数
MAXGEN = 100;
GGAP = .8;
SEL_F = 'sus'; % 选择函数
XOV_F = 'xovsp'; % 交叉函数
MUT_F = 'mut'; % 变异函数
OBJ_F = 'objfun1'; % 目标
www.eeworm.com/read/464287/7166571
m c69.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/464287/7166651
m d1.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/460021/7258663
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/460021/7258685
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/460021/7258689
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/457431/7325559
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=boun
www.eeworm.com/read/452207/7445760
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/447922/7543892
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/442827/7644282
m pso_main.m
%标准粒群优化算法程序
%求解函数最小值
clc;
clear all;
global Fun_Select; %目标函数选择
global D; %搜索空间维数(未知数个数)
global popsize; %种群规模
global gen; %迭代次数
global w;