powered by
Apply maximum distance constraint
apply_max_distance(cost_matrix, max_distance = Inf)
Modified cost matrix with forbidden pairs marked.