normalise

multiobjective.Metric.normalise(values)

Return a version of this metric where lower is always better.

Accepts either a pandas.Series (the batch comparisons: Pareto dominance, cost weighting, the final solution sort) or a single float (solve()’s brute-force streaming heap, which scores one combination at a time and never materialises a batch). np.abs rather than Series.abs() is what makes the scalar case work; both return the same thing for a Series.

Back to top