Skip to main content

Event

Enum Event 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Progress

Periodic progress, every Config::progress_interval backups.

Fields

§backups: u64

Bellman backups so far.

§states: u64

States stored so far.

§initial_value: f64

The current value of the initial state.

§residual: f64

LRTDP, RTDP, LAO* and iLAO*: the change of the initial state’s value at its most recent backup. Value iteration: the largest residual so far in the sweep in progress. BRTDP, FRTDP and VPI-RTDP: the gap between the initial state’s bounds.

§

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.

Fields

§count: u64

States newly turned into dead ends by this analysis.

§

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

§value: f64

The current value of the initial state.

§growth: f64

How much the value rose over the window.

§backups: u64

Bellman backups so far.

§

FrontProgress

Periodic progress of a multi-objective algorithm (molrtdp, molao_star, imolao_star, mo_value_iteration), every Config::progress_interval backups.

Fields

§backups: u64

Bellman backups so far.

§states: u64

States stored so far.

§front: usize

The number of cost vectors in the initial state’s current value.

§residual: f64

The Hausdorff distance moved by the most recent backup.

§

TreeProgress

Periodic progress of a tree planner (pomcp, despot), every progress_interval simulations or explorations of its configuration.

Fields

§stats: TreeStats

The counters so far.

§value: f64

The current value estimate of the recommended action: POMCP’s best root action value, DESPOT’s root lower bound ell(b0).

§gap: Option<f64>

DESPOT: the root gap mu(b0) - ell(b0). POMCP keeps no bounds: None.

Trait Implementations§

Source§

impl Clone for Event

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Event

Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Event

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Forget for Event

§

impl Freeze for Event

§

impl Move for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnsafeUnpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.