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

Method fixed_costs

pyvrp/read.py:313–315  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311 return np.broadcast_to(max_reloads, self.num_vehicles)
312
313 def fixed_costs(self) -> np.ndarray:
314 fixed_costs = self.instance.get("vehicles_fixed_cost", 0)
315 return self.round_func(np.broadcast_to(fixed_costs, self.num_vehicles))
316
317 def unit_distance_costs(self) -> np.ndarray:
318 # Unit distance costs are unrounded to prevent double scaling in the

Callers 1

_vehicle_typesMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected