pub struct DEOptions<S: Scalar> {
pub pop_size: Option<usize>,
pub max_generations: usize,
pub differential_weight: S,
pub crossover_rate: S,
pub tol: S,
pub seed: u64,
pub verbose: bool,
}Expand description
Options for Differential Evolution.
Fields§
§pop_size: Option<usize>Population size (default: None = 10 * dimension).
max_generations: usizeMaximum generations.
differential_weight: SDifferential weight F in [0, 2], typically 0.5-1.0.
crossover_rate: SCrossover rate CR in [0, 1], typically 0.7-1.0.
tol: SConvergence tolerance on objective spread in population.
seed: u64Random seed for reproducibility.
verbose: boolPrint progress.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for DEOptions<S>where
S: Freeze,
impl<S> RefUnwindSafe for DEOptions<S>where
S: RefUnwindSafe,
impl<S> Send for DEOptions<S>
impl<S> Sync for DEOptions<S>
impl<S> Unpin for DEOptions<S>where
S: Unpin,
impl<S> UnsafeUnpin for DEOptions<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for DEOptions<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