pub struct Polynomial {
pub bounds: Bounds,
pub eta: f64,
pub rate: Option<f64>,
}Expand description
Deb’s bounded polynomial mutation with distribution index eta (Deb and Goyal 1996, in
the form of the NSGA-II reference code); each coordinate mutates with probability rate
(default 1/n), at least one does.
Fields§
§bounds: BoundsThe box the children stay in.
eta: f64The distribution index; larger values give smaller steps. 20 is customary.
rate: Option<f64>The per-coordinate probability; None means 1/n.
Trait Implementations§
Source§impl Clone for Polynomial
impl Clone for Polynomial
Source§impl Debug for Polynomial
impl Debug for Polynomial
Source§impl PartialEq for Polynomial
impl PartialEq for Polynomial
impl StructuralPartialEq for Polynomial
Auto Trait Implementations§
impl Forget for Polynomial
impl Freeze for Polynomial
impl Move for Polynomial
impl RefUnwindSafe for Polynomial
impl Send for Polynomial
impl Sync for Polynomial
impl Unpin for Polynomial
impl UnsafeUnpin for Polynomial
impl UnwindSafe for Polynomial
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