VehicleRouting.create_random_instance¶
- static VehicleRouting.create_random_instance(n, low=0, high=100, seed=None, num_vehicle=2, depot=0)[ソース]¶
Create a random instance of the vehicle routing problem.
- パラメータ:
n (int) – the number of nodes.
low (int) – The minimum value for the coordinate of a node.
high (int) – The maximum value for the coordinate of a node.
seed (int | None) – the seed for the random coordinates.
num_vehicle (int) – The number of the vehicles
depot (int) – The index of the depot node where all the vehicle depart
- 戻り値:
A VehicleRouting instance created from the input information
- 戻り値の型: