solution for k median problem More...
#include <k_median_solution.hpp>
Public Member Functions | |
| k_median_solution (voronoiType voronoi, typename base::UnchosenFacilitiesSet uf, int k) | |
| constructor More... | |
Public Member Functions inherited from paal::data_structures::facility_location_solution< utils::return_zero_functor, voronoiType > | |
| facility_location_solution (voronoiTypevoronoi, UnchosenFacilitiesSet uf, const utils::return_zero_functor &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 | |
Additional Inherited Members | |
Public Types inherited from paal::data_structures::facility_location_solution< utils::return_zero_functor, voronoiType > | |
|
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 |
solution for k median problem
| voronoiType |
Definition at line 30 of file k_median_solution.hpp.
|
inline |
1.8.5