pub struct Config {
pub population_size: usize,
pub f: f64,
pub cr: f64,
pub stagnation: u64,
pub beta: f64,
}Expand description
Parameters of a Rades run; the defaults are the paper’s.
Fields§
§population_size: usizeThe population size NP, at least 3. Paper: 10.
f: f64The scaling factor F. Paper: 0.7.
cr: f64The crossover probability CR. Paper: 0.5.
stagnation: u64The stagnation threshold Q. Paper: 128.
beta: f64The rank bias β > 1 of (9); larger values bias less. Paper: 2.
Trait Implementations§
impl Copy for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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