Skip to contents

Cost of a solution

Usage

solution_cost(solution, cost_evaluator = NULL)

Arguments

solution

A vrp_solution().

cost_evaluator

A vrp_cost_evaluator(). If NULL, uses an evaluator with unit penalties.

Value

The penalised cost (a numeric scalar). For feasible solutions this is the objective cost; the feasible attribute reports feasibility.