pub struct MultiFunc<F> { /* private fields */ }Expand description
Closure-backed multi-objective problem produced by multi_func.
Trait Implementations§
Source§impl<F> MultiProblem for MultiFunc<F>
impl<F> MultiProblem for MultiFunc<F>
Source§fn n_objectives(&self) -> usize
fn n_objectives(&self) -> usize
Number of objectives (≥ 2 for a genuine multi-objective problem).
Source§fn objectives(&self, x: &[f64]) -> Vec<f64>
fn objectives(&self, x: &[f64]) -> Vec<f64>
The objective vector to minimize, length
MultiProblem::n_objectives.Auto Trait Implementations§
impl<F> Freeze for MultiFunc<F>where
F: Freeze,
impl<F> RefUnwindSafe for MultiFunc<F>where
F: RefUnwindSafe,
impl<F> Send for MultiFunc<F>where
F: Send,
impl<F> Sync for MultiFunc<F>where
F: Sync,
impl<F> Unpin for MultiFunc<F>where
F: Unpin,
impl<F> UnsafeUnpin for MultiFunc<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for MultiFunc<F>where
F: 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