Struct Problem¶
- Defined in File utils.hpp
Struct Documentation¶
-
struct
Problem
¶ Public Functions
-
Problem
(const int noc = 1000, const int demand_range = 40, const int nov = 50, const int capacity = 800, const int grid_range = 1000, std::string distribution = "uniform", const int n_clusters = 5, const int cluster_range = 10)¶ Constructor.
Constructor for problem struct
- Return
- no return value
- Parameters
noc
: number of nodes (centres/dropoff points)demand_range
: max demand of each node (random value between 0 and this value)nov
: number of vehiclescapacity
: maximum capacityof each vehiclegrid_range
: maximum x and y coordinates of any nodedistribution
: distribution of nodes. Can be either clustered or uniform.n_clusters
: If clustered, number of clusters the nodes are divided intocluster_range
: If clustered, maximum distance from center of cluster.
-