pub struct Maximize<P>(pub P);Expand description
Wraps a problem so the engine maximizes its objective instead of minimizing it, by negating finite values (non-finite stay rejected).
Lets a maximization client (e.g. rainflow maximizing NSE) reuse the
minimizing core unchanged. The reported objective in a Solution is the
negated, internal value; recover the original sense by negating it back, or
read crate::Report::best_value_maximized.
Tuple Fields§
§0: PTrait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Maximize<P>where
P: Freeze,
impl<P> RefUnwindSafe for Maximize<P>where
P: RefUnwindSafe,
impl<P> Send for Maximize<P>where
P: Send,
impl<P> Sync for Maximize<P>where
P: Sync,
impl<P> Unpin for Maximize<P>where
P: Unpin,
impl<P> UnsafeUnpin for Maximize<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Maximize<P>where
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