describes solution to facility location The initial solution is passed as voronoi, which has to be the model of the Voronoi concept. The generators of the voronoi are the facilities and the vertices are the clients. More...
#include <facility_location_solution.hpp>
Public Types | |
typedef voronoi_traits < VoronoiType > | VT |
typedef VT::VertexType | VertexType |
typedef VT::DistanceType | Dist |
typedef VT::GeneratorsSet | ChosenFacilitiesSet |
typedef std::unordered_set < VertexType, boost::hash < VertexType > > | UnchosenFacilitiesSet |
Public Member Functions | |
facility_location_solution (VoronoiType voronoi, UnchosenFacilitiesSet uf, const FacilityCost &c) | |
constructor More... | |
Dist | add_facility (VertexType f) |
returns diff between new cost and old cost | |
Dist | rem_facility (VertexType f) |
returns diff between new cost and old cost | |
const UnchosenFacilitiesSet & | get_unchosen_facilities () const |
getter for unchosen facilities | |
const ChosenFacilitiesSet & | get_chosen_facilities () const |
setter for unchosen facilities | |
auto | get_clients_for_facility (VertexType f) const -> decltype(m_voronoi.get_vertices_for_generator(f)) |
gets clients assigned to specific facility | |
const VoronoiType & | get_voronoi () const |
gets voronoi | |
describes solution to facility location The initial solution is passed as voronoi, which has to be the model of the Voronoi concept. The generators of the voronoi are the facilities and the vertices are the clients.
FacilityCost | |
VoronoiType |
Definition at line 43 of file facility_location_solution.hpp.
|
inline |