pub fn quadratic_assignment_seeded(
a: &Array2<f64>,
b: &Array2<f64>,
options: &FaqOptions,
maximize: bool,
randomized_start: Option<&mut dyn FnMut() -> f64>,
) -> Result<QapResult, ErrorsJSL>Expand description
Fast Approximate QAP with seeds (SciPy’s quadratic_assignment with partial_match, after
Fishkind et al.’s seeded graph matching): the matched nodes are moved to the front of both
matrices, which are split into seed and non-seed blocks, and Frank-Wolfe runs on the
non-seed block with the seeds contributing a constant term to the gradient and linear terms to
the step size. randomized_start replaces the barycentre by the mean of the barycentre and a
random doubly stochastic matrix, drawn from uniform (values in [0, 1)), so that restarts
from different random streams explore different local optima.