Skip to main content

AnalyticalSolution

Trait AnalyticalSolution 

Source
pub trait AnalyticalSolution<const N: usize> {
    // Required methods
    fn value_function(&self, t: f64, state: &[f64; N]) -> f64;
    fn optimal_controls(&self, t: f64, state: &[f64; N]) -> ControlOutput<N>;
}

Required Methods§

Source

fn value_function(&self, t: f64, state: &[f64; N]) -> f64

Returns the theoretical value function V(t, state)

Source

fn optimal_controls(&self, t: f64, state: &[f64; N]) -> ControlOutput<N>

Returns the optimal controls (intensities/spreads) at (t, state)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§