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

#include "solution.h"

Inheritance diagram for pgrouting::vrp::Solution:
pgrouting::vrp::Initial_solution pgrouting::vrp::Optimize

Public Member Functions

 Solution (const Pgr_pickDeliver *p_problem)
 
 Solution (const Solution &&sol)
 
 Solution (const Solution &sol)
 
Vehicle::Cost cost () const
 
std::string cost_str () const
 
int cvTot () const
 
double duration () const
 
size_t fleet_size () const
 
void get_postgres_result (std::vector< General_vehicle_orders_t > &result) const
 
bool is_feasable () const
 
bool operator< (const Solution &s_rhs) const
 
Solutionoperator= (const Solution &&sol)
 
Solutionoperator= (const Solution &sol)
 
std::string tau (const std::string &title="Tau") const
 
double total_service_time () const
 
double total_travel_time () const
 
int twvTot () const
 
double wait_time () const
 

Protected Attributes

double EPSILON
 
std::deque< Vehicle_pickDeliverfleet
 
const Pgr_pickDeliverproblem
 

Friends

std::ostream & operator<< (std::ostream &log, const Solution &solution)
 
class Optimize
 

Detailed Description

Definition at line 42 of file solution.h.

Constructor & Destructor Documentation

pgrouting::vrp::Solution::Solution ( const Pgr_pickDeliver p_problem)
inlineexplicit

Definition at line 62 of file solution.h.

pgrouting::vrp::Solution::Solution ( const Solution &&  sol)
inline

Definition at line 69 of file solution.h.

pgrouting::vrp::Solution::Solution ( const Solution sol)
inline

Definition at line 76 of file solution.h.

Member Function Documentation

Vehicle::Cost pgrouting::vrp::Solution::cost ( ) const

Definition at line 117 of file solution.cpp.

References fleet.

Referenced by cost_str(), operator<(), and tau().

std::string pgrouting::vrp::Solution::cost_str ( ) const

Definition at line 136 of file solution.cpp.

References cost().

Referenced by pgrouting::vrp::Optimize::save_if_best(), and tau().

int pgrouting::vrp::Solution::cvTot ( ) const

Definition at line 108 of file solution.cpp.

References fleet.

double pgrouting::vrp::Solution::duration ( ) const
size_t pgrouting::vrp::Solution::fleet_size ( ) const
inline

Definition at line 110 of file solution.h.

References fleet.

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

Definition at line 38 of file solution.cpp.

References fleet.

bool pgrouting::vrp::Solution::is_feasable ( ) const

Definition at line 54 of file solution.cpp.

References fleet.

bool pgrouting::vrp::Solution::operator< ( const Solution s_rhs) const

Definition at line 176 of file solution.cpp.

References cost().

Solution& pgrouting::vrp::Solution::operator= ( const Solution &&  sol)
inline

Definition at line 83 of file solution.h.

References EPSILON, and fleet.

Solution& pgrouting::vrp::Solution::operator= ( const Solution sol)
inline

Definition at line 90 of file solution.h.

References EPSILON, and fleet.

std::string pgrouting::vrp::Solution::tau ( const std::string &  title = "Tau") const
double pgrouting::vrp::Solution::total_service_time ( ) const

Definition at line 99 of file solution.cpp.

References fleet.

double pgrouting::vrp::Solution::total_travel_time ( ) const

Definition at line 90 of file solution.cpp.

References fleet.

int pgrouting::vrp::Solution::twvTot ( ) const

Definition at line 72 of file solution.cpp.

References fleet.

double pgrouting::vrp::Solution::wait_time ( ) const

Definition at line 81 of file solution.cpp.

References fleet.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  log,
const Solution solution 
)
friend

Definition at line 164 of file solution.cpp.

friend class Optimize
friend

Definition at line 43 of file solution.h.

Member Data Documentation

double pgrouting::vrp::Solution::EPSILON
protected

Definition at line 45 of file solution.h.

Referenced by operator=().


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