 |
vrpRouting
0.3
|
Go to the documentation of this file.
80 <<
"\tPickup: " << order.
pickup() <<
"\n"
81 <<
"\tDropoff: " << order.
delivery() <<
"\n";
82 log <<
"\nThere are | {I}| = "
84 <<
" -> order(" << order.
idx()
90 log <<
"} -> " << order.
idx() <<
" -> {";
131 if (J.
idx() ==
idx())
return;
179 return all_cases && (case1 || case2 || case3);
Identifiers< size_t > subsetI(const Identifiers< size_t > &I) const
Get a subset of the orders that can be placed before this order.
bool is_delivery() const
Is the node a valid order's delivery node.
bool isCompatibleIJ(const Order &I, Speed speed=1.0) const
Can order I be placed before this order?
std::ostream & operator<<(std::ostream &log, const Order &order)
Prints:
size_t idx() const
get the internal index
bool is_pickup() const
Is the node a valid order's pickup node.
bool is_compatible_IJ(const Tw_node &I, Speed=1.0) const
is possible to arrive to this after visiting other?
const Vehicle_node & pickup() const
The pickup node identifier.
bool is_valid(Speed speed=1.0) const
is the order valid?
void set_compatibles(const Order &, Speed speed=1.0)
set compatability of this orther with the other order
Class that stores the information about identifiers.
Identifiers< size_t > m_compatibleI
Storage for the orders that can be placed before this order.
const Vehicle_node & delivery() const
The delivery node identifier.
Identifiers< size_t > subsetJ(const Identifiers< size_t > &J) const
Get a subset of the orders that can be placed after this order.
Identifiers< size_t > m_compatibleJ
Storage for the orders that can be placed after this order.