xovdp.m
来自「matlab的遗传算法的一个工具箱」· M 代码 · 共 32 行
M
32 行
% XOVDP.M (CROSSOVer Double Point)%% This function performs double point crossover between pairs of% individuals and returns the current generation after mating.%% Syntax: NewChrom = xovdp(OldChrom, XOVR)%% Input parameters:% OldChrom - Matrix containing the chromosomes of the old% population. Each line corresponds to one individual% (in any form, not necessarily real values).% XOVR - Probability of recombination occurring between pairs% of individuals.%% Output parameter:% NewChrom - Matrix containing the chromosomes of the population% after mating, ready to be mutated and/or evaluated,% in the same format as OldChrom.% Author: Hartmut Pohlheim% History: 28.03.94 file createdfunction NewChrom = xovdp(OldChrom, XOVR);if nargin < 2, XOVR = NaN; end% call low level function with appropriate parameters NewChrom = xovmp(OldChrom, XOVR, 2, 0);% End of function
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?