PGROUTING
3.2
|
#include "pgr_pickDeliver.h"
Public Member Functions | |
Pgr_pickDeliver (const std::vector< PickDeliveryOrders_t > &pd_orders, const std::vector< Vehicle_t > &vehicles, const pgrouting::tsp::Dmatrix &cost_matrix, double factor, size_t max_cycles, int initial) | |
Constructor for the matrix version. More... | |
void | add_node (const Vehicle_node &node) |
pgrouting::tsp::Dmatrix | get_cost_matrix () const |
Initials_code | get_kind () const |
std::vector< Vehicle_node > | get_nodes () const |
std::vector< General_vehicle_orders_t > | get_postgres_result () const |
size_t | max_cycles () const |
void | solve () |
Fleet | trucks () const |
Public Attributes | |
Pgr_messages | msg |
message controller for all classes More... | |
Private Attributes | |
friend | Dnode |
friend | Fleet |
friend | Initial_solution |
pgrouting::tsp::Dmatrix | m_cost_matrix |
int | m_initial_id |
used define the initial solution algorithm to be used More... | |
size_t | m_max_cycles |
maximum cycles in the optimization More... | |
std::vector< Vehicle_node > | m_nodes |
PD_Orders | m_orders |
Fleet | m_trucks |
friend | PD_Orders |
friend | Solution |
std::vector< Solution > | solutions |
Definition at line 57 of file pgr_pickDeliver.h.
pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver | ( | const std::vector< PickDeliveryOrders_t > & | pd_orders, |
const std::vector< Vehicle_t > & | vehicles, | ||
const pgrouting::tsp::Dmatrix & | cost_matrix, | ||
double | factor, | ||
size_t | p_max_cycles, | ||
int | initial | ||
) |
Constructor for the matrix version.
Definition at line 135 of file pgr_pickDeliver.cpp.
References pgrouting::tsp::Dmatrix::empty(), ENTERING, pgrouting::Pgr_messages::error, EXITING, pgrouting::Pgr_messages::get_error(), pgrouting::Pgr_messages::get_log(), pgrouting::vrp::Fleet::is_fleet_ok(), pgrouting::vrp::Fleet::is_order_ok(), pgrouting::Pgr_messages::log, m_cost_matrix, m_initial_id, m_nodes, m_orders, m_trucks, msg, pgrouting::vrp::Fleet::msg(), pgrouting::vrp::OneDepot, pgassert, pgassertwm, and pgrouting::vrp::Fleet::set_compatibles().
void pgrouting::vrp::Pgr_pickDeliver::add_node | ( | const Vehicle_node & | node | ) |
Definition at line 128 of file pgr_pickDeliver.cpp.
References m_nodes.
Referenced by pgrouting::vrp::Fleet::build_fleet(), and pgrouting::vrp::PD_Orders::build_orders().
|
inline |
Definition at line 92 of file pgr_pickDeliver.h.
References m_cost_matrix.
Referenced by pgrouting::vrp::Fleet::build_fleet(), pgrouting::vrp::PD_Orders::build_orders(), and pgrouting::vrp::Dnode::distance().
|
inline |
Definition at line 84 of file pgr_pickDeliver.h.
References m_initial_id.
Referenced by pgrouting::vrp::Solution::get_kind().
|
inline |
Definition at line 88 of file pgr_pickDeliver.h.
References m_nodes.
Referenced by pgrouting::vrp::Fleet::build_fleet(), and pgrouting::vrp::PD_Orders::build_orders().
std::vector< General_vehicle_orders_t > pgrouting::vrp::Pgr_pickDeliver::get_postgres_result | ( | ) | const |
Definition at line 94 of file pgr_pickDeliver.cpp.
References pgrouting::Pgr_messages::log, msg, and solutions.
Referenced by do_pgr_pickDeliver(), and do_pgr_pickDeliverEuclidean().
|
inline |
void pgrouting::vrp::Pgr_pickDeliver::solve | ( | ) |
Definition at line 51 of file pgr_pickDeliver.cpp.
References Initial_solution, pgrouting::Pgr_messages::log, m_initial_id, m_max_cycles, m_orders, msg, pgassert, pgrouting::vrp::PD_Orders::size(), and solutions.
Referenced by do_pgr_pickDeliver(), and do_pgr_pickDeliverEuclidean().
|
inline |
|
private |
Definition at line 59 of file pgr_pickDeliver.h.
|
private |
Definition at line 58 of file pgr_pickDeliver.h.
|
private |
Definition at line 62 of file pgr_pickDeliver.h.
Referenced by solve().
|
private |
Definition at line 111 of file pgr_pickDeliver.h.
Referenced by get_cost_matrix(), and Pgr_pickDeliver().
|
private |
used define the initial solution algorithm to be used
Definition at line 105 of file pgr_pickDeliver.h.
Referenced by get_kind(), Pgr_pickDeliver(), and solve().
|
private |
maximum cycles in the optimization
Definition at line 108 of file pgr_pickDeliver.h.
Referenced by max_cycles(), and solve().
|
private |
Definition at line 110 of file pgr_pickDeliver.h.
Referenced by add_node(), get_nodes(), and Pgr_pickDeliver().
|
private |
Definition at line 113 of file pgr_pickDeliver.h.
Referenced by Pgr_pickDeliver(), and solve().
|
private |
Definition at line 114 of file pgr_pickDeliver.h.
Referenced by Pgr_pickDeliver(), and trucks().
Pgr_messages pgrouting::vrp::Pgr_pickDeliver::msg |
message controller for all classes
Definition at line 99 of file pgr_pickDeliver.h.
Referenced by do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), get_postgres_result(), pgrouting::vrp::Fleet::msg(), pgrouting::vrp::Solution::msg(), pgrouting::vrp::Vehicle::msg(), Pgr_pickDeliver(), and solve().
|
private |
Definition at line 60 of file pgr_pickDeliver.h.
|
private |
Definition at line 61 of file pgr_pickDeliver.h.
|
private |
Definition at line 115 of file pgr_pickDeliver.h.
Referenced by get_postgres_result(), and solve().