代码搜索:pmutation
找到约 122 项符合「pmutation」的源代码
代码结果 122
www.eeworm.com/read/163252/10168436
m gas.m
%function [ok]=gas(popsize,lchrom,pcross,pmutation,maxgen)
% solve the max value of f(x)=x^2 by using GAs,
% if you want to find the maximum of other functions,
% what you should do is only modify
www.eeworm.com/read/420490/10793297
m gas.m
function [ok]=gas(popsize,lchrom,pcross,pmutation,maxgen)
% solve the max value of f(x)=x^2 in [0 31] by using GAs,
ok=0;
%%%%%%%%%%%% define variables
popsize=4; % popular size
lchrom=
www.eeworm.com/read/468945/6982505
m test.m
% this file is test cases
%%%%%%%%%%%%%% test function [y]=flip(x)
% x=zeros(1,10);
% for m=1:10
% x(m)=flip(0.5);
% end
% x
%%%%%%%%%%%%%% test function [y]=randint(low,high)
% x=zeros(1,
www.eeworm.com/read/467873/7003105
m cruzar_y_mutar.m
function [hijo1, hijo2] = cruzar_y_mutar(Pop,padre1,padre2,pcross,pmutation)
%Aplica crossover y mutacion a las columnas PADRE1 y PADRE2 de POP y
%calcula dos vectores columna con ambos hijos
www.eeworm.com/read/246836/12701461
m mutation.m
function Ret=Mutation(PMutation,LenChrom,Individuals,SizePop,Opts,Bound,Pop)
% In this function,it fulfils a mutation among chromosomes
% PMutation input : probability of mutation
% LenChrom inpu
www.eeworm.com/read/246836/12701487
m testga.m
GAPara.MaxGen =100;
GAPara.SizePop =600;
GAPara.StrAimFcn='AimFcn';
GAPara.CodeFcn ='float';
GAPara.SelectFcn='roulette';
GAPara.CrossFcn ='float';
GAPara.PCross =[0.7];
GAPara.MutationFc
www.eeworm.com/read/144518/12786638
m fmaxga.m
function [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation,options)
% [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation)
% Finds a maximum of a function of several va
www.eeworm.com/read/143004/12905211
dom operator.dom
{ operator.dom }
{ operators: Reproduction (select), Crossover (crossover),
Mutation (mutation), Dominance (mapdominance,
dominance
www.eeworm.com/read/143004/12905311
scs ga.scs
{ ga.scs: genetic algorithm code for SCS }
{ data declarations }
const maxmating = 10;
type mrecord = record
mate1, mate2, mort1, mort2, sitecross:integer
end;
www.eeworm.com/read/140766/13062560
cpp main.cpp
/*
用遗传算法(GA)解决TSP(旅行商)问题
完成时间:2005.8.2
编译环境:VC7.1 (用VC6的话需要修改几处,要把hash_map改为map)
作者:西南科技大学 唐坤(sf.tk)
QQ: 226152161
Blog: blog.gameres.com/show.asp?BlogID=1450&column=0
E-mail: starsftk@yaho