Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
NewChrom = recpm(Chrom, RecRate);
RECombination Partial Matching This function takes a matrix Chrom containing a permutation representation of the individuals in the current population, applies the partial matching crossover to consecutive pairs of individuals with probability RecRate and returns the resulting population. Syntax: NewChrom = recpm(Chrom, RecRate Input parameters: Chrom - Matrix containing the chromosomes of the old population. Each row corresponds to one individual. RecRate - Probability of crossover ocurring 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 Chrom. See also: recombin, recint, recgp