#[non_exhaustive]pub struct FaqOptions {
pub maxiter: usize,
pub tol: f64,
pub partial_match: Vec<(usize, usize)>,
pub shuffle_input: bool,
}Expand description
Options of quadratic_assignment_seeded.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.maxiter: usizeThe largest number of Frank-Wolfe iterations (SciPy’s maxiter).
tol: f64The convergence tolerance on the change of the doubly stochastic matrix.
partial_match: Vec<(usize, usize)>Seeds: node a of A is matched to node b of B for each (a, b) (SciPy’s
partial_match). The other nodes are matched by the algorithm.
shuffle_input: boolShuffle the order of the unmatched nodes of B before solving, to break ties between equally
good assignments at random instead of by index (SciPy’s shuffle_input). It has no effect
when the gradients are not degenerate. It needs the uniform source passed as
randomized_start.
Implementations§
Source§impl FaqOptions
impl FaqOptions
Sourcepub fn with_partial_match(partial_match: Vec<(usize, usize)>) -> Self
pub fn with_partial_match(partial_match: Vec<(usize, usize)>) -> Self
The defaults with the given seeds (node of A, node of B).
Sourcepub fn with_shuffle_input(self) -> Self
pub fn with_shuffle_input(self) -> Self
Turns on shuffle_input.
Sourcepub fn with_limits(self, maxiter: usize, tol: f64) -> Self
pub fn with_limits(self, maxiter: usize, tol: f64) -> Self
Sets the iteration limit and the tolerance.
Trait Implementations§
Source§impl Clone for FaqOptions
impl Clone for FaqOptions
Source§impl Debug for FaqOptions
impl Debug for FaqOptions
Source§impl Default for FaqOptions
impl Default for FaqOptions
Source§impl PartialEq for FaqOptions
impl PartialEq for FaqOptions
impl StructuralPartialEq for FaqOptions
Auto Trait Implementations§
impl Freeze for FaqOptions
impl RefUnwindSafe for FaqOptions
impl Send for FaqOptions
impl Sync for FaqOptions
impl Unpin for FaqOptions
impl UnsafeUnpin for FaqOptions
impl UnwindSafe for FaqOptions
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