Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Set max duration to 2 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlan committed Sep 26, 2023
1 parent 5308233 commit 2208f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/paper.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def configure_environment(
time_windows[0, :] = [0, horizon]

# Normalize the distances so that the furthest customer can be reached
# in one hour. Service times are also scaled accordingly.
scale = instance.duration_matrix.max() / epoch_duration
# in two hour from the depot. Service times are also scaled accordingly.
scale = instance.duration_matrix[0, :].max() / (2 * epoch_duration)
dur_mat = np.ceil(instance.duration_matrix / scale).astype(int)
service_times = np.ceil(instance.service_times / scale).astype(int)

Expand Down

0 comments on commit 2208f16

Please sign in to comment.