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

Method coords

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

Source from the content-addressed store, hash-verified

204 )
205
206 def coords(self) -> np.ndarray:
207 if "node_coord" not in self.instance:
208 return np.zeros((self.num_locations, 2), dtype=np.int64)
209
210 return self.round_func(self.instance["node_coord"])
211
212 def service_times(self) -> np.ndarray:
213 service_times = self.instance.get("service_time", 0)

Callers 2

_depotsMethod · 0.80
_clientsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected