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

Method prizes

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

Source from the content-addressed store, hash-verified

248 return [tuple(idx - 1 for idx in depots) for depots in reload_depots]
249
250 def prizes(self) -> np.ndarray:
251 if "prize" not in self.instance:
252 return np.zeros(self.num_locations, dtype=np.int64)
253
254 return self.round_func(self.instance["prize"])
255
256 def capacities(self) -> np.ndarray:
257 if "capacity" not in self.instance:

Callers 1

_clientsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected