pub struct Moead<I, X, M, P> {
pub config: Config,
pub weights: Vec<Vec<f64>>,
pub variation: Variation<I, X, M, P>,
}Expand description
MOEA/D with caller-supplied weight vectors (see das_dennis).
Fields§
§config: ConfigThe run parameters.
weights: Vec<Vec<f64>>One weight vector per subproblem; the population size is their number.
variation: Variation<I, X, M, P>The variation operators.
Implementations§
Source§impl<I, X, M, P> Moead<I, X, M, P>
impl<I, X, M, P> Moead<I, X, M, P>
Sourcepub fn new(
config: Config,
weights: Vec<Vec<f64>>,
variation: Variation<I, X, M, P>,
) -> Self
pub fn new( config: Config, weights: Vec<Vec<f64>>, variation: Variation<I, X, M, P>, ) -> Self
Creates a MOEA/D run.
Sourcepub fn run<G, Pr, B, Obs, R>(
&mut self,
problem: &mut Pr,
budget: &mut B,
observer: &mut Obs,
rng: &mut R,
) -> MultiOutcome<G>
pub fn run<G, Pr, B, Obs, R>( &mut self, problem: &mut Pr, budget: &mut B, observer: &mut Obs, rng: &mut R, ) -> MultiOutcome<G>
Runs until the budget stops it; one generation is one pass over all subproblems.
§Panics
Panics if there are fewer than two weight vectors, or their dimension differs from the problem’s objective count.
Trait Implementations§
impl<I: PartialEq, X: PartialEq, M: PartialEq, P: PartialEq> StructuralPartialEq for Moead<I, X, M, P>
Auto Trait Implementations§
impl<I, X, M, P> Forget for Moead<I, X, M, P>
impl<I, X, M, P> Freeze for Moead<I, X, M, P>
impl<I, X, M, P> Move for Moead<I, X, M, P>
impl<I, X, M, P> RefUnwindSafe for Moead<I, X, M, P>where
Variation<I, X, M, P>: RefUnwindSafe,
impl<I, X, M, P> Send for Moead<I, X, M, P>
impl<I, X, M, P> Sync for Moead<I, X, M, P>
impl<I, X, M, P> Unpin for Moead<I, X, M, P>
impl<I, X, M, P> UnsafeUnpin for Moead<I, X, M, P>where
Variation<I, X, M, P>: UnsafeUnpin,
impl<I, X, M, P> UnwindSafe for Moead<I, X, M, P>where
Variation<I, X, M, P>: 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