PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pgrouting::vrp::Pgr_pickDeliver Class Reference

#include "pgr_pickDeliver.h"

Public Member Functions

 Pgr_pickDeliver (const Customer_t *c1, size_t total_customers, int VehicleLength, double capacity, double speed, size_t max_cycles, std::string &error)
 
std::ostream & get_log (std::ostream &p_log) const
 get_log More...
 
void get_postgres_result (std::vector< General_vehicle_orders_t > &result) const
 
size_t max_cycles () const
 
const Vehicle_nodenode (ID id) const
 
const Order order_of (const Vehicle_node &node) const
 
const std::vector< Order > & orders () const
 
void solve ()
 
Solution solve (const Solution init_solution)
 
double speed () const
 

Private Types

typedef size_t ID
 

Private Attributes

std::ostringstream dbg_log
 
std::ostringstream log
 
Vehicle_node m_ending_site
 
size_t m_max_cycles
 
std::vector< Vehicle_nodem_nodes
 
std::vector< Orderm_orders
 
std::vector< Customer_tm_original_data
 
double m_speed
 
Vehicle_node m_starting_site
 
double max_capacity
 
int max_vehicles
 
std::vector< Solutionsolutions
 

Friends

class Initial_solution
 
class Optimize
 
class Solution
 
class Vehicle_pickDeliver
 

Detailed Description

Definition at line 45 of file pgr_pickDeliver.h.

Member Typedef Documentation

typedef size_t pgrouting::vrp::Pgr_pickDeliver::ID
private

Definition at line 50 of file pgr_pickDeliver.h.

Constructor & Destructor Documentation

pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver ( const Customer_t c1,
size_t  total_customers,
int  VehicleLength,
double  capacity,
double  speed,
size_t  max_cycles,
std::string &  error 
)

Definition at line 127 of file pgr_pickDeliver.cpp.

Member Function Documentation

std::ostream& pgrouting::vrp::Pgr_pickDeliver::get_log ( std::ostream &  p_log) const
inline

get_log

Returns
the current contents of the log and clears the log

Definition at line 77 of file pgr_pickDeliver.h.

References log.

Referenced by do_pgr_pickDeliver().

void pgrouting::vrp::Pgr_pickDeliver::get_postgres_result ( std::vector< General_vehicle_orders_t > &  result) const

Definition at line 96 of file pgr_pickDeliver.cpp.

References log, and solutions.

Referenced by do_pgr_pickDeliver().

size_t pgrouting::vrp::Pgr_pickDeliver::max_cycles ( ) const
inline

Definition at line 85 of file pgr_pickDeliver.h.

References m_max_cycles.

void pgrouting::vrp::Pgr_pickDeliver::solve ( )

Definition at line 59 of file pgr_pickDeliver.cpp.

References Initial_solution, and solutions.

Referenced by do_pgr_pickDeliver().

double pgrouting::vrp::Pgr_pickDeliver::speed ( ) const
inline

Definition at line 70 of file pgr_pickDeliver.h.

References m_speed.

Referenced by pgrouting::vrp::Tw_node::travel_time_to().

Friends And Related Function Documentation

friend class Initial_solution
friend

Definition at line 48 of file pgr_pickDeliver.h.

Referenced by solve().

friend class Optimize
friend

Definition at line 47 of file pgr_pickDeliver.h.

friend class Solution
friend

Definition at line 49 of file pgr_pickDeliver.h.

friend class Vehicle_pickDeliver
friend

Definition at line 46 of file pgr_pickDeliver.h.

Member Data Documentation

std::ostringstream pgrouting::vrp::Pgr_pickDeliver::dbg_log
mutableprivate
size_t pgrouting::vrp::Pgr_pickDeliver::m_max_cycles
private

Definition at line 90 of file pgr_pickDeliver.h.

Referenced by max_cycles().

std::vector<Vehicle_node> pgrouting::vrp::Pgr_pickDeliver::m_nodes
private

Definition at line 94 of file pgr_pickDeliver.h.

Referenced by node().

std::vector<Order> pgrouting::vrp::Pgr_pickDeliver::m_orders
private

Definition at line 95 of file pgr_pickDeliver.h.

Referenced by order_of(), and orders().

std::vector<Customer_t> pgrouting::vrp::Pgr_pickDeliver::m_original_data
private

Definition at line 93 of file pgr_pickDeliver.h.

double pgrouting::vrp::Pgr_pickDeliver::m_speed
private

Definition at line 89 of file pgr_pickDeliver.h.

Referenced by speed().

int pgrouting::vrp::Pgr_pickDeliver::max_vehicles
private

Definition at line 91 of file pgr_pickDeliver.h.

std::vector<Solution> pgrouting::vrp::Pgr_pickDeliver::solutions
private

Definition at line 96 of file pgr_pickDeliver.h.

Referenced by get_postgres_result(), and solve().


The documentation for this class was generated from the following files: