#[non_exhaustive]pub struct Optimum {
pub point: Vec<f64>,
pub value: f64,
pub violation: f64,
pub evaluation: usize,
pub evaluations: usize,
pub generations: usize,
pub mean: Vec<f64>,
pub spread: f64,
pub stop: Stop,
}Expand description
What a run found.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.point: Vec<f64>The best point evaluated, one value per variable, in the variables’ order, as the model was given it (an integer variable’s value encoded).
value: f64The model’s value there: +∞ if no candidate gave a finite value (serialized as none, a
JSON null).
violation: f64Its constraint violation (Evaluation::violation): zero if it keeps every constraint,
and always zero for a run told plain values; +∞ if every candidate failed (serialized as
none).
evaluation: usizeWhich evaluation found it, counted from 1.
evaluations: usizeHow many evaluations the run made.
generations: usizeHow many generations it ran.
mean: Vec<f64>The distribution’s final mean, not encoded: an integer variable’s may lie between whole
numbers or outside its bounds (Variable::encode gives the value it stands for).
spread: f64The distribution’s largest standard deviation in any one variable, in that variable’s
units: the largest σ √Cᵢᵢ times the variable’s step and its margin scale Aᵢ; +∞
once the step size has overflowed (serialized as none, a JSON null). An integer variable
at an inner value keeps it large enough for the margin (its Aᵢ grows), so then it
doesn’t shrink to zero; at an end value only the mean moves, and it may.
stop: StopWhy it stopped.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Optimum
impl<'de> Deserialize<'de> for Optimum
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Optimum
Auto Trait Implementations§
impl Freeze for Optimum
impl RefUnwindSafe for Optimum
impl Send for Optimum
impl Sync for Optimum
impl Unpin for Optimum
impl UnsafeUnpin for Optimum
impl UnwindSafe for Optimum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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>
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>
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