pub struct IsresConfig {
pub bounds: Vec<(f64, f64)>,
pub x0: Option<Array1<f64>>,
pub mu: usize,
pub lambda: usize,
pub maxeval: usize,
pub pf: f64,
pub gamma: f64,
pub seed: Option<u64>,
pub f_tol: f64,
pub stagnation_window: usize,
}Expand description
Configuration for isres.
Fields§
§bounds: Vec<(f64, f64)>(lower, upper) per dimension.
x0: Option<Array1<f64>>Optional initial guess; placed in the first parent slot if provided.
mu: usizeParent population size μ. Default 30.
lambda: usizeOffspring population size λ. Default 7 * μ.
maxeval: usizeMaximum number of objective evaluations. Counts each candidate (offspring or initial population member) once.
pf: f64Stochastic ranking parameter — probability of comparing by
objective rather than by constraint violation. Runarsson & Yao
recommend 0.4 ≤ pf ≤ 0.5. Default 0.45.
gamma: f64Differential variation probability γ (Eq. 2 of R&Y 2005). Default 0.85.
seed: Option<u64>Optional RNG seed for deterministic runs.
f_tol: f64Stop when best objective improves by less than f_tol for
stagnation_window consecutive generations. Set non-positive to
disable stagnation-based termination. Default 1e-8.
stagnation_window: usizeNumber of generations of < f_tol improvement before declaring
convergence. Default 50.
Trait Implementations§
Source§impl Clone for IsresConfig
impl Clone for IsresConfig
Source§fn clone(&self) -> IsresConfig
fn clone(&self) -> IsresConfig
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 IsresConfig
impl RefUnwindSafe for IsresConfig
impl Send for IsresConfig
impl Sync for IsresConfig
impl Unpin for IsresConfig
impl UnsafeUnpin for IsresConfig
impl UnwindSafe for IsresConfig
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,
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
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.