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

pub enum SelectionType {
    Maximize {
        count: u32,
    },
    Tournament {
        count: u32,
        size: 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 size. This yields count * size parents.

Fields

count

Should be larger than 0.

size

Should be larger than 1.