Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
NewChrom = recmp(OldChrom, RecRate, RecXpt, RecRs);
RECombination Multi-Point, low level function
This function takes a matrix OldChrom containing the
individuals in the current population, applies recombination
to consecutive pairs of individuals with probability RecRate
and returns the resulting offspring.
The number of recombination points to use and the forced
production of offspring different from their parents can be
parametrized.
Every representation of the variables can be used.
This function is a low level function used by the corresponding
higher level function, for instance: recsp, recdp, recshrs.
Syntax: NewChrom = recmp(OldChrom, RecRate, RecXpt, RecRs)
Input parameters:
OldChrom - Matrix containing the chromosomes of the old
population. Each row corresponds to one individual
(in binary form).
RecRate - Probability of recombination ocurring between pairs
of individuals.
RecXpt - Scalar indicating the number of crossover points
1: single point recombination
2: double point recombination
0: shuffle point recombination
RecRs - reduced surrogate
0: no reduced surrogate
1: reduced surrogate
Output parameter:
NewChrom - Matrix containing the offspring after mating,
ready to be mutated and/or evaluated, in the same
format as OldChrom.
See also: recombin, recdp, recsh, recsp, recdprs, recsprs, recshrs
| This function is called by | |
|---|---|