pub fn generational<B: Backend>(
_current_pop: Tensor<B, 2>,
_current_fitness: &[f32],
offspring_pop: Tensor<B, 2>,
offspring_fitness: Vec<f32>,
) -> (Tensor<B, 2>, Vec<f32>)Expand description
Replaces the entire current generation with the offspring (no elitism).
Discards _current_pop and _current_fitness entirely; the returned
pair is (offspring_pop, offspring_fitness) unchanged. This is the
standard generational replacement used in classic GAs and CMA-ES: the
offspring generation fully succeeds the parent generation with no
carry-over of parent individuals.