1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub mod selection;
pub mod crossover;
pub mod mutation;
pub mod survivor;

#[derive(Copy, Clone)]
pub enum Selection {
    Random,
    RouletteWheel,
    StochasticUniversalSampling,
    Tournament
}
#[derive(Copy, Clone, PartialEq)]
pub enum Crossover {
    Cycle,
    MultiPoint,
    Uniform,
}
#[derive(Copy, Clone)]
pub enum Mutation {
    Swap,
    Inversion,
    Scramble,
}
#[derive(Copy, Clone)]
pub enum Survivor {
    Fitness,
    Age,
}