pub struct Config {
pub dimensions: Vec<usize>,
pub population_size: usize,
pub neighborhood_type: NeighborhoodType,
pub rho: usize,
pub alpha: f64,
pub c1: f64,
pub c2: f64,
pub lr: f64,
pub bounds: Vec<(f64, f64)>,
pub t_max: usize,
pub progress_bar: bool,
pub parallelize: bool,
}Expand description
Configuration struct
Used to define model parameters
Fields§
§dimensions: Vec<usize>§population_size: usize§neighborhood_type: NeighborhoodType§rho: usize§alpha: f64§c1: f64§c2: f64§lr: f64§bounds: Vec<(f64, f64)>§t_max: usize§progress_bar: bool§parallelize: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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