Skip to content

Commit

Permalink
Convert demand to list
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterkool committed Jun 22, 2018
1 parent 1935bea commit 5117e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def generate_vrp_data(dataset_size, vrp_size):
return list(zip(
np.random.uniform(size=(dataset_size, 2)).tolist(), # Depot location
np.random.uniform(size=(dataset_size, vrp_size, 2)).tolist(), # Node locations
np.random.randint(1, 10, size=(dataset_size, vrp_size)), # Demand, uniform integer 1 ... 9
np.random.randint(1, 10, size=(dataset_size, vrp_size)).tolist(), # Demand, uniform integer 1 ... 9
np.ones(dataset_size) * CAPACITIES[vrp_size] # Capacity, same for whole dataset
))

Expand Down

0 comments on commit 5117e74

Please sign in to comment.