fx-durable-ga 0.7.0

Durable GA event driven optimization loop on PostgreSQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use uuid::Uuid;

/// Represents the current state of a genetic algorithm population.
/// Tracks progress and statistics for an optimization request.
#[derive(Debug)]
#[cfg_attr(test, derive(PartialEq))]
pub(crate) struct Population {
    #[allow(dead_code)]
    pub(crate) request_id: Uuid,
    pub(crate) evaluated_genotypes: i64,
    pub(crate) live_genotypes: i64,
    pub(crate) current_generation: i32,
    pub(crate) min_fitness: Option<f64>,
    pub(crate) max_fitness: Option<f64>,
}