![]() |
vrpRouting
0.3
|
The Move class defines moves that are evaluated and set as tabu. More...
#include "move.h"
Public Member Functions | |
Move ()=delete | |
empty move is not allowed More... | |
Move (const problem::Vehicle_pickDeliver &, const problem::Vehicle_pickDeliver &, const problem::Order &, const problem::Order &, double, double) | |
The Move constructor for a "swap" move. More... | |
Move (const problem::Vehicle_pickDeliver &, const problem::Vehicle_pickDeliver &, const problem::Order &, double, double) | |
The Move constructor for a "move" move. More... | |
double | from_objective () const |
Objective value of the "from" vehicle. More... | |
bool | is_swap () const |
is the move a swap move? More... | |
int64_t | oid1 () const |
The identifier of the order to move or swap. More... | |
int64_t | oid2 () const |
The identifier of the order to swap. More... | |
double | to_objective () const |
Objective value of the "to" vehicle. More... | |
int64_t | vid1 () const |
The identifier of the vehicle to move the order to. More... | |
int64_t | vid2 () const |
The identifier of the vehicle to move the order to. More... | |
Private Attributes | |
bool | m_is_swap |
flag == true when belongs to swap More... | |
double | m_obj1 |
The objective value of the vehicle to move the order to. More... | |
double | m_obj2 |
The objective value of the vehicle to move the order from. More... | |
int64_t | m_oid1 |
The identifier of the first moved order. More... | |
int64_t | m_oid2 |
The identifier of the second moved order (valid only for swap moves) More... | |
int64_t | m_vid1 |
The identifier of the vehicle to move the order from. More... | |
int64_t | m_vid2 |
The identifier of the vehicle to move the order to. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &, const Move &) |
printing function More... | |
bool | operator== (const Move &, const Move &) |
equality operator More... | |
The Move class defines moves that are evaluated and set as tabu.
|
delete |
empty move is not allowed
vrprouting::optimizers::tabu::Move::Move | ( | const problem::Vehicle_pickDeliver & | from_v, |
const problem::Vehicle_pickDeliver & | to_v, | ||
const problem::Order & | order, | ||
double | to_obj, | ||
double | from_obj | ||
) |
vrprouting::optimizers::tabu::Move::Move | ( | const problem::Vehicle_pickDeliver & | from_v, |
const problem::Vehicle_pickDeliver & | to_v, | ||
const problem::Order & | from_order, | ||
const problem::Order & | to_order, | ||
double | to_obj, | ||
double | from_obj | ||
) |
|
inline |
Objective value of the "from" vehicle.
Currently unused.
Definition at line 78 of file move.h.
References m_obj2.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
is the move a swap move?
Definition at line 72 of file move.h.
References m_is_swap.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
The identifier of the order to move or swap.
Definition at line 60 of file move.h.
References m_oid1.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
The identifier of the order to swap.
Definition at line 63 of file move.h.
References m_oid2.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
Objective value of the "to" vehicle.
Currently unused.
Definition at line 75 of file move.h.
References m_obj1.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
The identifier of the vehicle to move the order to.
Definition at line 66 of file move.h.
References m_vid1.
Referenced by vrprouting::optimizers::tabu::operator==().
|
inline |
The identifier of the vehicle to move the order to.
Definition at line 69 of file move.h.
References m_vid2.
Referenced by vrprouting::optimizers::tabu::operator==().
|
friend |
|
private |
flag == true when belongs to swap
Definition at line 100 of file move.h.
Referenced by is_swap(), and vrprouting::optimizers::tabu::operator<<().
|
private |
The objective value of the vehicle to move the order to.
Definition at line 103 of file move.h.
Referenced by to_objective().
|
private |
The objective value of the vehicle to move the order from.
Definition at line 106 of file move.h.
Referenced by from_objective().
|
private |
The identifier of the first moved order.
Definition at line 94 of file move.h.
Referenced by oid1(), and vrprouting::optimizers::tabu::operator<<().
|
private |
The identifier of the second moved order (valid only for swap moves)
Definition at line 97 of file move.h.
Referenced by oid2(), and vrprouting::optimizers::tabu::operator<<().
|
private |
The identifier of the vehicle to move the order from.
Definition at line 88 of file move.h.
Referenced by vrprouting::optimizers::tabu::operator<<(), and vid1().
|
private |
The identifier of the vehicle to move the order to.
Definition at line 91 of file move.h.
Referenced by vrprouting::optimizers::tabu::operator<<(), and vid2().