Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
[SelCh, SUBPOPSel, SelIx] = selection(SEL_F, Chrom, FitnV, GGAP, SUBPOP, SelOpt);
high level SELECTion function This function is the high level universal selection function. The function handles multiple populations and calls the low level selection function for the actual selection process. Different size of every subpopulation is supported. Syntax: [SelCh, SUBPOPSel, SelIx] = selection(SEL_F, Chrom, FitnV, GGAP, SUBPOP, SelOpt) Input parameters: SEL_F - Name of the selection function Chrom - Matrix containing the individuals (parents) of the current population. Each row corresponds to one individual. FitnV - Column vector containing the fitness values of the individuals in the population. GGAP - (optional) Rate of individuals to be selected if omitted 1.0 is assumed SUBPOP - (optional) Vector/scalar containing number of individuals per subpopulation/number of subpopulations if omitted or NaN, 1 subpopulation is assumed SelOpt - (optional) Vector containing selection paremeters SelOpt(1, ...): used in 'sellocal' Output parameters: SelCh - Matrix containing the selected individuals. SUBPOPSel - Vector containing number of individuals selected per subpopulation SelIx - (optional) Column vector containing the indices of the selected individuals. See also: selrws, selsus, sellocal, seltrunc, reins, reinsloc, migrate, mutate, recombin
This function calls | This function is called by |
---|---|