 |
vrpRouting
0.3
|
Go to the documentation of this file.
28 #ifndef INCLUDE_PROBLEM_VEHICLE_NODE_H_
29 #define INCLUDE_PROBLEM_VEHICLE_NODE_H_
187 #endif // INCLUDE_PROBLEM_VEHICLE_NODE_H_
TTimestamp arrival_time() const
Vehicle's arrival_time to this node.
bool feasible() const
True when the total count for violations are 0.
Solution_rt get_postgres_result(int vid, int64_t v_id, int stop_seq) const
int twvTot() const
Vehicle's total times it has violated time windows.
TInterval m_delta_time
Departure time - last nodes departure time.
TInterval m_travel_time
Travel time from last node.
Vehicle_node()=delete
Construction without information is not allowed.
bool has_twv() const
does the node violates the time windows constraints?
TInterval total_service_time() const
_time spent by the truck servicing the nodes
bool feasible(PAmount cargoLimit) const
True doesn't have twc nor cv (including total counts)
friend std::ostream & operator<<(std::ostream &log, const Vehicle_node &v)
Print the contents of a Vehicle_node object.
TInterval delta_time() const
delta_time = departure_time(this) - departure_time(previous)
TInterval total_wait_time() const
_time spent by the truck waiting for nodes to open
Extend Tw_node to evaluate the vehicle at node level.
int cvTot() const
Vehicle's total times it has violated cargo limits.
bool has_cv(PAmount cargoLimit) const
does the node violates the capacity constraints?
TInterval m_tot_wait_time
Accumulated wait time.
TTimestamp departure_time() const
Vehicle's departure_time from this node.
Amount m_cargo
Accumulated cargo.
Solution schedule when twv & cw are hard restrictions.
TInterval total_travel_time() const
_time spent moving between nodes by the truck
TInterval total_time() const
TInterval travel_time() const
Vehicle's travel_time from previous node to this node.
int m_twvTot
Total count of TWV.
TInterval m_tot_travel_time
Accumulated travel time.
TInterval m_tot_service_time
Accumulated service time.
Time window attributes of a node.
double objective() const
the basic objective function for this node
TInterval m_wait_time
Wait time at this node.
Amount cargo() const
Vehicle's total cargo after the node was served.
TInterval wait_time() const
Vehicle's wait_time at this node.
TTimestamp m_arrival_time
Arrival time at this node.
TTimestamp m_departure_time
Departure time from this node.
bool deltaGeneratesTWV(TInterval delta_time) const
True when arrival_time + delta_time generates TWV.
void evaluate(PAmount cargoLimit)
evaluate this node
int m_cvTot
Total count of CV.