 |
vrpRouting
0.3
|
Go to the documentation of this file.
28 #ifndef INCLUDE_PROBLEM_VEHICLE_H_
29 #define INCLUDE_PROBLEM_VEHICLE_H_
113 std::string
tau()
const;
128 void erase(
size_t pos);
143 void swap(
size_t i,
size_t j);
166 Speed p_speed = 1.0);
189 #endif // INCLUDE_PROBLEM_VEHICLE_H_
const Vehicle_node & start_site() const
Vehicle with time windows.
void push_front(const Vehicle_node &node)
int m_user_cv
Time window violations on solution.
void push_front_node(const Vehicle_node &node)
size_t getDropPosLowLimit(const Vehicle_node &node) const
void push_back(const Vehicle_node &node)
const Vehicle_node & end_site() const
int m_user_twv
Time window violations on solution.
std::vector< Id > get_stops() const
size_t getPosHighLimit(const Vehicle_node &node) const
Get the highest position on the path where node can be placed.
size_t idx() const
get the internal index
Extend Tw_node to evaluate the vehicle at node level.
void swap(size_t i, size_t j)
std::string path_str() const
An assert functionality that uses C++ throw().
TInterval total_wait_time() const
duration of vehicle while waiting for a node to open
friend bool operator<(const Vehicle &lhs, const Vehicle &rhs)
TInterval duration() const
duration of vehicle while not in a "depot"
std::vector< Solution_rt > get_postgres_result(int vid) const
TInterval total_travel_time() const
total time spent moving from one node to another
void erase_node(size_t pos)
void insert_node(size_t pos, const Vehicle_node &node)
size_t getPosLowLimit(const Vehicle_node &node) const
Get the lowest position on the path where node can be placed.
void push_back_node(const Vehicle_node &node)
PAmount capacity() const
returns the capacity of the vehicle
Class that stores the information about identifiers.
std::pair< size_t, size_t > drop_position_limits(const Vehicle_node &node) const
Speed speed() const
the speed of the vehicle
TInterval total_service_time() const
total time spent moving from one node to another
std::pair< size_t, size_t > position_limits(const Vehicle_node &node) const
Get the limits to insert the node.
void insert(size_t pos, const Vehicle_node &node)