pub struct MoRetryConfig {
pub retry: RetryConfig,
pub weight_lower: Vec<f64>,
pub weight_upper: Vec<f64>,
pub ncon: usize,
pub value_exp: f64,
pub value_limits: Option<Vec<f64>>,
}Expand description
Multi-objective retry configuration.
Fields§
§retry: RetryConfigShared retry scheduling, budget, and retention settings.
weight_lower: Vec<f64>Inclusive lower bounds for sampled scalarization weights.
weight_upper: Vec<f64>Inclusive upper bounds for sampled scalarization weights.
ncon: usizeNumber of trailing values interpreted as non-positive constraints.
value_exp: f64Positive exponent of the p-norm scalarization.
value_limits: Option<Vec<f64>>Optional strict upper bounds for every objective and constraint value.
Implementations§
Source§impl MoRetryConfig
impl MoRetryConfig
Sourcepub fn new(weight_lower: Vec<f64>, weight_upper: Vec<f64>) -> Self
pub fn new(weight_lower: Vec<f64>, weight_upper: Vec<f64>) -> Self
Create a configuration with default retry settings and supplied weight bounds.
Sourcepub fn validate(&self) -> Result<(), &'static str>
pub fn validate(&self) -> Result<(), &'static str>
Validate weight bounds, dimensions, exponent, and optional value limits.
§Errors
Returns an error if the weight bounds are empty, of unequal length,
non-finite or reversed; if ncon leaves no objective; if value_exp
is not finite and positive; or if value_limits does not match the
objective width or contains NaN.
Trait Implementations§
Source§impl Clone for MoRetryConfig
impl Clone for MoRetryConfig
Source§fn clone(&self) -> MoRetryConfig
fn clone(&self) -> MoRetryConfig
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 MoRetryConfig
impl RefUnwindSafe for MoRetryConfig
impl Send for MoRetryConfig
impl Sync for MoRetryConfig
impl Unpin for MoRetryConfig
impl UnsafeUnpin for MoRetryConfig
impl UnwindSafe for MoRetryConfig
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.