Enum rsgenetic::sim::seq::SelectionType [] [src]

pub enum SelectionType {
    Maximize {
        count: u32,
    },
    Tournament {
        num: u32,
        count: u32,
    },
    Stochastic {
        count: u32,
    },
}

The type of parent selection.

Variants

Maximize

Select only the count * 2 best performing parents in terms of fitness.

Fields

count

Should be larger than 0.

Tournament

Perform tournament selection with tournament size count, running num tournaments. This yields num * 2 parents.

Fields

num

Indicates the number of tournaments. Should be larger than 0.

count

Should be larger than 0.

Stochastic

Perform Stochastic Universal Sampling to do the selection. Selects count * 2 parents.

Fields

count

Should be larger than 0.