Struct Node¶
- Defined in File utils.hpp
Struct Documentation¶
-
struct
Node
¶ struct node
Contains the x, y coordinates of the locationof the node, its id, its demand, and whether it has been added to the routes of any of the vehicles
Public Functions
-
Node
(const int x = 0, const int y = 0, const int id = 0, const int demand = 0, const bool is_routed = true)¶ Consructor.
Constructor for a node
- Return
- no return parameter
- Parameters
x
: x coordinatey
: y coordinateid
: node iddemand
: node demandis_routed
: has the node been included in a route
-