pub struct StochasticResult<S: Scalar> {
pub x: Vec<S>,
pub f_mean: S,
pub f_std_error: S,
pub scenario_objectives: Vec<S>,
pub chance_satisfaction: Vec<S>,
pub converged: bool,
pub message: String,
pub iterations: usize,
pub wall_time_secs: f64,
}Expand description
Result of stochastic optimization.
Fields§
§x: Vec<S>Optimal decision variables.
f_mean: SSample-average objective value.
f_std_error: SStandard error of the objective estimate.
scenario_objectives: Vec<S>Objective values at each scenario.
chance_satisfaction: Vec<S>Fraction of scenarios where each chance constraint is satisfied (one per chance constraint).
converged: boolWhether the optimizer converged.
message: StringStatus message.
iterations: usizeIterations.
wall_time_secs: f64Wall time.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for StochasticResult<S>where
S: Freeze,
impl<S> RefUnwindSafe for StochasticResult<S>where
S: RefUnwindSafe,
impl<S> Send for StochasticResult<S>
impl<S> Sync for StochasticResult<S>
impl<S> Unpin for StochasticResult<S>where
S: Unpin,
impl<S> UnsafeUnpin for StochasticResult<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StochasticResult<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more