Trait gas::tournaments::Tournament
source · [−]pub trait Tournament<const N: usize, const NSYMS: usize> {
fn run(
&self,
population: &Vec<Candidate<N, NSYMS>>,
rng: &mut Rando,
score_weights: &Vec<f64>
) -> (Candidate<N, NSYMS>, Vec<usize>);
}
Expand description
A tournament ranks candidates. It returns a winner plus an elo ranking with average 1000 for each candidate in the population.