pub fn quadratic_assignment(
a: &Array2<f64>,
b: &Array2<f64>,
method: QapMethod,
maximize: bool,
) -> Result<QapResult, ErrorsJSL>Expand description
Solves (approximately: the problem is NP-hard) min_p Σᵢⱼ A[i][j] B[p(i)][p(j)] over
permutations, or the maximum with maximize (SciPy’s quadratic_assignment). Both methods
are deterministic ports of SciPy’s and give its permutations.