Skip to content

Commit

Permalink
Merge pull request #105 from ai4co/101_capacity_bug
Browse files Browse the repository at this point in the history
Fix capacity bug in CVRP #101
  • Loading branch information
fedebotu authored Dec 5, 2023
2 parents 253cce6 + 1a4e745 commit ad38abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rl4co/envs/routing/cvrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def generate_data(self, batch_size) -> TensorDict:
{
"locs": locs_with_depot[..., 1:, :],
"depot": locs_with_depot[..., 0, :],
"demand": demand / CAPACITIES[self.num_loc],
"demand": demand / self.capacity,
"capacity": capacity,
},
batch_size=batch_size,
Expand Down

0 comments on commit ad38abd

Please sign in to comment.