xoverKids =
crossoverscattered (parents, options, nvars, FitnessFcn, unused, popuplation)
¶Default crossover function for problems without linear constraints
crossoverscattered creates a random binary vector and selects genes where the vector is a 1 from the first parent and a 0 from the next parent.
Inputs
Row vector of parents chosen from selection function
options
Number of variables
Fitness function to use
Placeholder variable not used
Matrix representing the current population
Outputs
Crossover offspring matrix where roes correspond to children. The number of columns is the number of variables.
See also: ga.
Package: ga