#[non_exhaustive]pub enum Event {
Progress {
backups: u64,
states: u64,
initial_value: f64,
residual: f64,
},
DeadEndsProven {
count: u64,
},
SuspectedDivergence {
value: f64,
growth: f64,
backups: u64,
},
FrontProgress {
backups: u64,
states: u64,
front: usize,
residual: f64,
},
TreeProgress {
stats: TreeStats,
value: f64,
gap: Option<f64>,
},
}Expand description
Something worth reporting while an algorithm runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Progress
Periodic progress, every Config::progress_interval backups.
Fields
DeadEndsProven
A dead-end analysis finished; count states were newly proven to have no proper
policy and became dead ends. Emitted after every analysis, also when count is 0.
SuspectedDivergence
The initial state’s value keeps rising without its growth slowing down, which is what a value climbing a trap cycle looks like.
Heuristic and not authoritative (see
Config::divergence_window): LRTDP and RTDP check the initial
state’s value after every trial, iLAO* after every pass, LAO* after every expansion step. If it rose in each of the
last divergence_window checks and the rise in the last is at least half the rise in
the first of that window,
the event fires and the window starts over. A solvable problem whose values climb
slowly towards a large optimum, at a steady rate, triggers it too.
Fields
FrontProgress
Periodic progress of a multi-objective algorithm (molrtdp,
molao_star, imolao_star,
mo_value_iteration), every
Config::progress_interval backups.