PGROUTING
3.2
|
#include "solution.h"
Public Member Functions | |
Solution () | |
Solution (const Solution &sol) | |
Vehicle::Cost | cost () const |
std::string | cost_str () const |
int | cvTot () const |
double | duration () const |
Initials_code | get_kind () const |
std::vector< General_vehicle_orders_t > | get_postgres_result () const |
bool | is_feasable () const |
bool | operator< (const Solution &s_rhs) const |
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 |
Static Public Member Functions | |
static Pgr_messages & | msg () |
The problem's message. More... | |
Protected Attributes | |
double | EPSILON |
std::deque< Vehicle_pickDeliver > | fleet |
Fleet | trucks |
Static Private Attributes | |
static Pgr_pickDeliver * | problem |
this solution belongs to this problem More... | |
Friends | |
std::ostream & | operator<< (std::ostream &log, const Solution &solution) |
class | Optimize |
class | PD_problem |
Definition at line 44 of file solution.h.
pgrouting::vrp::Solution::Solution | ( | ) |
Definition at line 241 of file solution.cpp.
References ENTERING, EXITING, pgrouting::Pgr_messages::log, msg(), and trucks.
|
inline |
Definition at line 67 of file solution.h.
Vehicle::Cost pgrouting::vrp::Solution::cost | ( | ) | const |
Definition at line 130 of file solution.cpp.
References fleet.
Referenced by cost_str(), and operator<().
std::string pgrouting::vrp::Solution::cost_str | ( | ) | const |
Definition at line 149 of file solution.cpp.
References cost().
Referenced by pgrouting::vrp::Optimize::save_if_best(), and tau().
int pgrouting::vrp::Solution::cvTot | ( | ) | const |
double pgrouting::vrp::Solution::duration | ( | ) | const |
Definition at line 76 of file solution.cpp.
References fleet.
Referenced by pgrouting::vrp::Optimize::move_reduce_cost(), pgrouting::vrp::Optimize::save_if_best(), and pgrouting::vrp::Optimize::swap_worse().
Initials_code pgrouting::vrp::Solution::get_kind | ( | ) | const |
Definition at line 237 of file solution.cpp.
References pgrouting::vrp::Pgr_pickDeliver::get_kind(), and problem.
Referenced by pgrouting::vrp::Optimize::move_order(), pgrouting::vrp::Optimize::move_reduce_cost(), and pgrouting::vrp::Optimize::swap_worse().
std::vector< General_vehicle_orders_t > pgrouting::vrp::Solution::get_postgres_result | ( | ) | const |
bool pgrouting::vrp::Solution::is_feasable | ( | ) | const |
Definition at line 67 of file solution.cpp.
References fleet.
Referenced by pgrouting::vrp::Optimize::decrease_truck(), and pgrouting::vrp::Initial_solution::do_while_foo().
|
static |
The problem's message.
Definition at line 60 of file solution.cpp.
References pgrouting::vrp::Pgr_pickDeliver::msg, and problem.
Referenced by pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::vrp::Optimize::inter_swap(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Optimize::Optimize(), pgrouting::vrp::Optimize::save_if_best(), and Solution().
bool pgrouting::vrp::Solution::operator< | ( | const Solution & | s_rhs | ) | const |
std::string pgrouting::vrp::Solution::tau | ( | const std::string & | title = "Tau" | ) | const |
Definition at line 164 of file solution.cpp.
References cost_str(), and fleet.
Referenced by pgrouting::vrp::Optimize::inter_swap(), pgrouting::vrp::operator<<(), pgrouting::vrp::Optimize::Optimize(), and pgrouting::vrp::Optimize::save_if_best().
double pgrouting::vrp::Solution::total_service_time | ( | ) | const |
double pgrouting::vrp::Solution::total_travel_time | ( | ) | const |
int pgrouting::vrp::Solution::twvTot | ( | ) | const |
double pgrouting::vrp::Solution::wait_time | ( | ) | const |
|
friend |
Definition at line 177 of file solution.cpp.
|
friend |
Definition at line 45 of file solution.h.
|
friend |
Definition at line 46 of file solution.h.
|
protected |
Definition at line 48 of file solution.h.
Referenced by operator=().
|
protected |
Definition at line 49 of file solution.h.
Referenced by cost(), cvTot(), pgrouting::vrp::Optimize::decrease_truck(), pgrouting::vrp::Optimize::delete_empty_truck(), pgrouting::vrp::Initial_solution::do_while_foo(), duration(), get_postgres_result(), pgrouting::vrp::Optimize::inter_swap(), is_feasable(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::operator<<(), operator=(), pgrouting::vrp::Optimize::Optimize(), pgrouting::vrp::Optimize::save_if_best(), pgrouting::vrp::Optimize::sort_by_duration(), pgrouting::vrp::Optimize::sort_by_size(), tau(), total_service_time(), total_travel_time(), twvTot(), and wait_time().
|
staticprivate |
this solution belongs to this problem
Definition at line 114 of file solution.h.
Referenced by get_kind(), msg(), and pgrouting::vrp::PD_problem::PD_problem().
|
protected |
Definition at line 52 of file solution.h.
Referenced by pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), operator=(), and Solution().