 |
vrpRouting
0.3
|
Go to the documentation of this file.
28 #ifndef INCLUDE_OPTIMIZERS_MOVE_H_
29 #define INCLUDE_OPTIMIZERS_MOVE_H_
38 class Vehicle_pickDeliver;
41 namespace optimizers {
113 #endif // INCLUDE_OPTIMIZERS_MOVE_H_
friend bool operator==(const Move &, const Move &)
equality operator
int64_t vid1() const
The identifier of the vehicle to move the order to.
int64_t vid2() const
The identifier of the vehicle to move the order to.
int64_t m_vid2
The identifier of the vehicle to move the order to.
double m_obj1
The objective value of the vehicle to move the order to.
double m_obj2
The objective value of the vehicle to move the order from.
int64_t oid1() const
The identifier of the order to move or swap.
int64_t oid2() const
The identifier of the order to swap.
Move()=delete
empty move is not allowed
The Move class defines moves that are evaluated and set as tabu.
int64_t m_vid1
The identifier of the vehicle to move the order from.
bool is_swap() const
is the move a swap move?
int64_t m_oid1
The identifier of the first moved order.
int64_t m_oid2
The identifier of the second moved order (valid only for swap moves)
double to_objective() const
Objective value of the "to" vehicle.
friend std::ostream & operator<<(std::ostream &, const Move &)
printing function
bool m_is_swap
flag == true when belongs to swap
double from_objective() const
Objective value of the "from" vehicle.