 |
vrpRouting
0.3
|
Go to the documentation of this file.
120 log << static_cast<const Tw_node&>(v)
122 <<
", twvTot = " << v.
twvTot()
123 <<
", cvTot = " << v.
cvTot()
124 <<
", cargo = " << v.
cargo()
152 m_tot_travel_time(0),
153 m_tot_service_time(0) {
204 static_cast<int64_t
>(
cargo()),
TTimestamp arrival_time() const
Vehicle's arrival_time to this node.
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.
int64_t id() const
get the original id
Amount demand() const
Returns the demand associated with this 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
std::ostream & operator<<(std::ostream &log, const Order &order)
Prints:
#define pgassert(expr)
Uses the standard assert syntax.
TInterval service_time() const
Returns the service time for this node.
bool is_dump() const
Is the node a valid vehicle's dumping node.
auto type() const
Returns the type of this node.
TInterval delta_time() const
delta_time = departure_time(this) - departure_time(previous)
bool is_late_arrival(TTimestamp arrival_time) const
True when arrivalTime is after it closes.
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.
An assert functionality that uses C++ throw().
TInterval total_travel_time() const
_time spent moving between nodes by the truck
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.
int64_t order() const
Returns the order to which it belongs.
bool is_end() const
Is the node a valid vehicle's ending 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.
bool is_early_arrival(TTimestamp arrival_time) const
True when arrivalTime is before it opens.
TTimestamp m_arrival_time
Arrival time at this node.
TTimestamp m_departure_time
Departure time from this node.
TInterval travel_time_to(const Tw_node &, TTimestamp, Speed=1.0) const
travel time to other node.
TTimestamp opens() const
Returns the opening time.
bool deltaGeneratesTWV(TInterval delta_time) const
True when arrival_time + delta_time generates TWV.
bool is_start() const
Is the node a valid vehicle's starting node.
void evaluate(PAmount cargoLimit)
evaluate this node
int m_cvTot
Total count of CV.