#[non_exhaustive]pub struct RetryContext {
pub run_id: usize,
pub run_seed: u64,
pub seed: u64,
pub bounds: RetryBounds,
pub guess: Option<Vec<f64>>,
pub sdev: Vec<f64>,
pub max_evaluations: u64,
pub value_limit: f64,
pub crossover: bool,
}Expand description
Inputs for one independent optimizer run.
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.run_id: usizeZero-based retry identifier.
run_seed: u64Seed derived only from the campaign root seed and run_id.
Unlike seed, this value is independent of worker count,
scheduling, and the number of earlier runs completed by a worker. Use it
when a retry must be reproducible across concurrency configurations.
seed: u64Independent seed assigned from the worker’s persistent stream.
This preserves the original scheduling-dependent retry behavior. New
reproducible campaigns should normally use run_seed.
bounds: RetryBoundsBounds selected for this retry.
guess: Option<Vec<f64>>Optional initial point, including coordinated crossover points.
sdev: Vec<f64>Suggested initial per-coordinate search deviations.
max_evaluations: u64Evaluation budget assigned to this retry.
value_limit: f64A crossover result is retained only when it improves this parent.
crossover: boolWhether this context was produced by coordinated crossover.
Trait Implementations§
Source§impl Clone for RetryContext
impl Clone for RetryContext
Source§fn clone(&self) -> RetryContext
fn clone(&self) -> RetryContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for RetryContext
impl RefUnwindSafe for RetryContext
impl Send for RetryContext
impl Sync for RetryContext
impl Unpin for RetryContext
impl UnsafeUnpin for RetryContext
impl UnwindSafe for RetryContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.