#[non_exhaustive]pub enum QapMethod {
Faq {
maxiter: usize,
tol: f64,
},
TwoOpt {
initial: Vec<usize>,
},
FaqWith(FaqOptions),
}Expand description
The method of quadratic_assignment.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Faq
Fast Approximate QAP: Frank-Wolfe on the doubly stochastic relaxation from the
barycentre, then projected to the nearest permutation (SciPy’s default faq, with
maxiter and tol).
TwoOpt
2-opt from the given starting permutation (identity if empty): repeatedly apply the first
improving swap in the order (0,0), (0,1), …, (n−1,n−1) (SciPy’s 2opt).
FaqWith(FaqOptions)
FAQ with the options of FaqOptions: iteration limits and seeds (partial_match). It
is deterministic: shuffle_input and a randomised start need a random source, which only
quadratic_assignment_seeded takes.
Trait Implementations§
impl StructuralPartialEq for QapMethod
Auto Trait Implementations§
impl Freeze for QapMethod
impl RefUnwindSafe for QapMethod
impl Send for QapMethod
impl Sync for QapMethod
impl Unpin for QapMethod
impl UnsafeUnpin for QapMethod
impl UnwindSafe for QapMethod
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