Trait BaseProblem

Source
pub trait BaseProblem:
    Clone
    + Debug
    + Send
    + VerifiableProblem {
    // Required methods
    fn d(&self) -> i32;
    fn t_end(&self) -> i32;
    fn set_t_end(&mut self, t_end: i32);

    // Provided method
    fn inc_t_end(&mut self) { ... }
}
Expand description

Trait implemented by all finite-time-horizon problems.

Required Methods§

Source

fn d(&self) -> i32

Number of dimensions.

Source

fn t_end(&self) -> i32

Finite, positive time horizon.

Source

fn set_t_end(&mut self, t_end: i32)

Updates the time horizon.

Provided Methods§

Source

fn inc_t_end(&mut self)

Increases the time horizon by one time step.

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§

Source§

impl<'a, T> BaseProblem for SmoothedBalancedLoadOptimization<'a, T>
where T: Value<'a>,

Source§

impl<'a, T> BaseProblem for SmoothedLoadOptimization<T>
where T: Value<'a>,

Source§

impl<'a, T, C, D> BaseProblem for SimplifiedSmoothedConvexOptimization<'a, T, C, D>
where T: Value<'a>, C: Clone, D: Clone,

Source§

impl<'a, T, C, D> BaseProblem for SmoothedConvexOptimization<'a, T, C, D>
where T: Value<'a>, C: Clone, D: Clone,