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§
Sourcefn value_function(&self, t: f64, state: &[f64; N]) -> f64
fn value_function(&self, t: f64, state: &[f64; N]) -> f64
Returns the theoretical value function V(t, state)
Sourcefn optimal_controls(&self, t: f64, state: &[f64; N]) -> ControlOutput<N>
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".