⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xovsh.m

📁 matlab遗传算法工具箱
💻 M
字号:
% XOVSH.M        (CROSSOVer SHuffle)%% This function performs shuffle crossover between pairs of% individuals and returns the current generation after mating.%% Syntax:  NewChrom = xovsh(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 = xovsh(OldChrom, XOVR);if nargin < 2, XOVR = NaN; end% call low level function with appropriate parameters   NewChrom = xovmp(OldChrom, XOVR, 0, 0);% End of function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -