pub struct Duals<A> {
pub row: Vec<A>,
pub col: Vec<A>,
}Expand description
Dual potentials of the last solve, in the original orientation and sign.
For a minimization, c[i][j] - row[i] - col[j] >= 0 for all pairs, with
equality on matched pairs, and potentials of unmatched rows/columns are 0
(on the larger side). For a maximization the inequality is reversed.
Fields§
§row: Vec<A>§col: Vec<A>Trait Implementations§
impl<A: PartialEq> StructuralPartialEq for Duals<A>
Auto Trait Implementations§
impl<A> Forget for Duals<A>
impl<A> Freeze for Duals<A>
impl<A> Move for Duals<A>
impl<A> RefUnwindSafe for Duals<A>where
Vec<A>: RefUnwindSafe,
impl<A> Send for Duals<A>
impl<A> Sync for Duals<A>
impl<A> Unpin for Duals<A>
impl<A> UnsafeUnpin for Duals<A>where
Vec<A>: UnsafeUnpin,
impl<A> UnwindSafe for Duals<A>where
Vec<A>: 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