pub fn achievement<C: Cost + WideMul, const N: usize>(
cost: &[C; N],
reference: &[C; N],
weights: &[u32; N],
) -> Achievement<C>Expand description
The achievement of cost: max_i weights[i] · (cost[i] - reference[i]), the products saturating.