91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-03
  • 語言: Matlab
  • 標簽:

資源簡介

(matlab源程序代碼)遺傳算法工具箱\genetic\crtbp.m遺傳算法工具箱\genetic\crtbp.m

資源截圖

代碼片段和文件信息

%?CRTBP.m?-?Create?an?initial?population
%
%?This?function?creates?a?binary?population?of?given?size?and?structure.
%
%?Syntax:?[Chrom?Lind?baseV]?=?crtbp(Nind?Lind?base)
%
%?Input?Parameters:
%
% Nind -?Either?a?scalar?containing?the?number?of?individuals
% ???? ??in?the?new?population?or?a?row?vector?of?length?two
% ??????containing?the?number?of?individuals?and?their?length.
%
% Lind -?A?scalar?containing?the?length?of?the?individual
%??? ??chromosomes.
%
% base -?A?scalar?containing?the?base?of?the?chromosome?
% ??????elements?or?a?row?vector?containing?the?base(s)?
%??? ??of?the?loci?of?the?chromosomes.
%
%?Output?Parameters:
%
% Chrom -?A?matrix?containing?the?random?valued?chromosomes?
% ??????row?wise.
%
% Lind -?A?scalar?containing?the?length?of?the?chromosome.
%
% baseV -?A?row?vector?containing?the?base?of?the?
%??? ??chromosome?loci.
%
%?Author:?Andrew?Chipperfield
%?Date: 19-Jan-94
%
%?Tested?under?MATLAB?v6?by?Alex?Shenfield?(20-Jan-03)

function?[Chrom?Lind?baseV]?=?crtbp(Nind?Lind?base)
nargs?=?nargin?;

%?Check?parameter?consistency

if?n

評論

共有 條評論

相關資源