R/solution.R
solution_cost.Rd
Cost of a solution
solution_cost(solution, cost_evaluator = NULL)
A vrp_solution().
vrp_solution()
A vrp_cost_evaluator(). If NULL, uses an evaluator with unit penalties.
vrp_cost_evaluator()
NULL
The penalised cost (a numeric scalar). For feasible solutions this is the objective cost; the feasible attribute reports feasibility.
numeric
feasible