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

Method time_windows

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

Source from the content-addressed store, hash-verified

221 return self.round_func(service_times)
222
223 def time_windows(self) -> np.ndarray:
224 if "time_window" not in self.instance:
225 time_windows = np.empty((self.num_locations, 2), dtype=np.int64)
226 time_windows[:, 0] = 0
227 time_windows[:, 1] = _INT_MAX
228 return time_windows
229
230 return self.round_func(self.instance["time_window"])
231
232 def release_times(self) -> np.ndarray:
233 release_times = self.instance.get("release_time", 0)

Callers 2

_clientsMethod · 0.80
_vehicle_typesMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected