![]() |
pgRouting
pgRouting extends the PostGIS / PostgreSQL geospatial database to provide geospatial routing functionality.
|
#include "solution.h"
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 |
Solution & | operator= (const Solution &&sol) |
Solution & | operator= (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_pickDeliver > | fleet |
const Pgr_pickDeliver * | problem |
Friends | |
std::ostream & | operator<< (std::ostream &log, const Solution &solution) |
class | Optimize |
Definition at line 42 of file solution.h.
|
inlineexplicit |
Definition at line 62 of file solution.h.
|
inline |
Definition at line 69 of file solution.h.
|
inline |
Definition at line 76 of file solution.h.
Vehicle::Cost pgrouting::vrp::Solution::cost | ( | ) | const |
Definition at line 118 of file solution.cpp.
References fleet.
Referenced by cost_str(), operator<(), and tau().
std::string pgrouting::vrp::Solution::cost_str | ( | ) | const |
Definition at line 137 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 109 of file solution.cpp.
References fleet.
double pgrouting::vrp::Solution::duration | ( | ) | const |
Definition at line 64 of file solution.cpp.
References fleet.
Referenced by pgrouting::vrp::Optimize::decrease_truck(), and pgrouting::vrp::Optimize::save_if_best().
|
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 39 of file solution.cpp.
References fleet.
bool pgrouting::vrp::Solution::is_feasable | ( | ) | const |
Definition at line 55 of file solution.cpp.
References fleet.
Definition at line 177 of file solution.cpp.
References cost().
Definition at line 83 of file solution.h.
Definition at line 90 of file solution.h.
std::string pgrouting::vrp::Solution::tau | ( | const std::string & | title = "Tau" | ) | const |
Definition at line 152 of file solution.cpp.
References cost(), cost_str(), and fleet.
Referenced by pgrouting::vrp::Optimize::decrease_truck(), pgrouting::vrp::Optimize::move_duration_based(), pgrouting::vrp::Optimize::move_wait_time_based(), pgrouting::vrp::operator<<(), and pgrouting::vrp::Optimize::save_if_best().
double pgrouting::vrp::Solution::total_service_time | ( | ) | const |
Definition at line 100 of file solution.cpp.
References fleet.
double pgrouting::vrp::Solution::total_travel_time | ( | ) | const |
Definition at line 91 of file solution.cpp.
References fleet.
int pgrouting::vrp::Solution::twvTot | ( | ) | const |
Definition at line 73 of file solution.cpp.
References fleet.
double pgrouting::vrp::Solution::wait_time | ( | ) | const |
Definition at line 82 of file solution.cpp.
References fleet.
|
friend |
Definition at line 165 of file solution.cpp.
|
friend |
Definition at line 43 of file solution.h.
|
protected |
Definition at line 45 of file solution.h.
Referenced by operator=().
|
protected |
Definition at line 46 of file solution.h.
Referenced by cost(), cvTot(), pgrouting::vrp::Optimize::decrease_truck(), pgrouting::vrp::Optimize::delete_empty_truck(), duration(), fleet_size(), get_postgres_result(), pgrouting::vrp::Initial_solution::insert_while_compatibleI(), pgrouting::vrp::Initial_solution::insert_while_compatibleJ(), pgrouting::vrp::Initial_solution::insert_while_feasable(), pgrouting::vrp::Optimize::inter_swap(), is_feasable(), pgrouting::vrp::Optimize::move_duration_based(), pgrouting::vrp::Optimize::move_reduce_cost(), pgrouting::vrp::Optimize::move_wait_time_based(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Initial_solution::one_truck_per_order(), pgrouting::vrp::operator<<(), operator=(), pgrouting::vrp::Optimize::Optimize(), pgrouting::vrp::Initial_solution::push_back_while_feasable(), pgrouting::vrp::Initial_solution::push_front_while_feasable(), pgrouting::vrp::Optimize::save_if_best(), pgrouting::vrp::Optimize::sort_by_duration(), pgrouting::vrp::Optimize::sort_for_move(), pgrouting::vrp::Optimize::swap_worse(), tau(), total_service_time(), total_travel_time(), twvTot(), and wait_time().
|
protected |
Definition at line 49 of file solution.h.
Referenced by pgrouting::vrp::Optimize::decrease_truck(), pgrouting::vrp::Optimize::delete_empty_truck(), pgrouting::vrp::Initial_solution::fill_truck_while_compatibleI(), pgrouting::vrp::Initial_solution::fill_truck_while_compatibleJ(), pgrouting::vrp::Initial_solution::first_ordersIJ(), pgrouting::vrp::Initial_solution::first_ordersJI(), pgrouting::vrp::Initial_solution::Initial_solution(), pgrouting::vrp::Initial_solution::insert_while_compatibleI(), pgrouting::vrp::Initial_solution::insert_while_compatibleJ(), pgrouting::vrp::Initial_solution::insert_while_feasable(), pgrouting::vrp::Optimize::move_duration_based(), pgrouting::vrp::Optimize::move_reduce_cost(), pgrouting::vrp::Optimize::move_wait_time_based(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Initial_solution::one_truck_per_order(), pgrouting::vrp::Initial_solution::push_back_while_feasable(), pgrouting::vrp::Initial_solution::push_front_while_feasable(), pgrouting::vrp::Optimize::save_if_best(), and pgrouting::vrp::Optimize::swap_worse().