Measures the saving that was achieved by the heuristic optimization algorithm clarke_wright() compared to the naive vehicle run assignment, i.e. one run per site.
milkr_saving(solution, relative =FALSE)
Arguments
solution: A "heumilkr_solution" object, typically obtained by clarke_wright().
relative: Should the saving be given as dimensionful value (in units of distance as provided to clarke_wright()), or as percentage relative to the naive costs. Defaults to FALSE, i.e. a dimensionful value.
Returns
The savings either as dimensionful value or as percentage relative to the naive costs, depending on relative.