MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / cost

Method cost

pyvrp/cpp/CostEvaluator.h:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261template <CostEvaluatable T> Cost CostEvaluator::cost(T const &arg) const
262{
263 // Penalties are zero when the solution is feasible, so we can fall back to
264 // penalised cost in that case.
265 return arg.isFeasible() ? penalisedCost(arg)
266 : std::numeric_limits<Cost>::max();
267}
268
269template <bool exact,
270 bool skipLoad,

Callers 6

test_costFunction · 0.95
test_cost_with_prizesFunction · 0.95
test_read_hfvrp_solutionFunction · 0.95
plot_objectivesFunction · 0.45

Calls 1

isFeasibleMethod · 0.45

Tested by 5

test_costFunction · 0.76
test_cost_with_prizesFunction · 0.76
test_read_hfvrp_solutionFunction · 0.76