All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Types | Public Member Functions | List of all members
paal::data_structures::facility_location_solution< FacilityCost, VoronoiType > Class Template Reference

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
 

Detailed Description

template<typename FacilityCost, typename VoronoiType>
class paal::data_structures::facility_location_solution< FacilityCost, VoronoiType >

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.

Template Parameters
FacilityCost
VoronoiType

Definition at line 43 of file facility_location_solution.hpp.

Constructor & Destructor Documentation

template<typename FacilityCost, typename VoronoiType>
paal::data_structures::facility_location_solution< FacilityCost, VoronoiType >::facility_location_solution ( VoronoiType  voronoi,
UnchosenFacilitiesSet  uf,
const FacilityCost &  c 
)
inline

constructor

Parameters
voronoi
uf
c

Definition at line 66 of file facility_location_solution.hpp.


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