Trait Model

Source
pub trait Model<T, P, A, B, C, D>:
    Clone
    + Send
    + Sync{
    // Required methods
    fn to(&self, input: A) -> P;
    fn update(&self, o: &mut Online<P>, input: B);
}
Expand description

Model which is used to generate problem instances and update them online.

Required Methods§

Source

fn to(&self, input: A) -> P

Generates an offline problem instance given some inputinput (with certainty).

Source

fn update(&self, o: &mut Online<P>, input: B)

Performs an online update of the given problem instance oo with some inputinput (which may be uncertain).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§