facility_location_solution adapter chosen range and unchosen range must be joined into one homogenus collection of Facilities. More...
#include <facility_location_solution_adapter.hpp>
Public Types | |
typedef facility_location_solution::VertexType | VertexType |
typedef data_structures::facility_location_solution_traits < FLS >::Dist | Dist |
typedef std::vector< VertexType > | UnchosenCopy |
typedef std::vector< VertexType > | ChosenCopy |
Public Member Functions | |
facility_location_solution_adapter (facility_location_solution &sol) | |
constructor creates cycled range of all facilities More... | |
Dist | add_facility_tentative (VertexType v) |
adds facility tentatively (used in gain computation). More... | |
Dist | add_facility (VertexType v) |
adds facility More... | |
Dist | remove_facility_tentative (VertexType v) |
ads facility tentatively (used in gain computation) More... | |
Dist | remove_facility (VertexType v) |
removes facility More... | |
facility_location_solution & | getfacility_location_solution () |
get solution More... | |
const facility_location_solution & | getfacility_location_solution () const |
gets solution More... | |
auto | getUnchosenCopy () const -> decltype(this->get_cycledCopy(m_unchosen_copy, m_last_used_unchosen)) |
returns copy of unchosen facilities More... | |
auto | getChosenCopy () const -> decltype(this->get_cycledCopy(m_chosen_copy, m_last_used_chosen)) |
returns copy of chosen facilities More... | |
Public Attributes | |
decltype(std::declval< FLS > ().get_chosen_facilities()) typedef | Chosen |
type of Chosen collection | |
decltype(std::declval< FLS > ().get_unchosen_facilities()) typedef | Unchosen |
type of Unchosen collection | |
facility_location_solution adapter chosen range and unchosen range must be joined into one homogenus collection of Facilities.
facility_location_solution |
Definition at line 44 of file facility_location_solution_adapter.hpp.
|
inline |
constructor creates cycled range of all facilities
sol |
Definition at line 85 of file facility_location_solution_adapter.hpp.
|
inline |
adds facility
v |
Definition at line 108 of file facility_location_solution_adapter.hpp.
|
inline |
adds facility tentatively (used in gain computation).
v |
Definition at line 99 of file facility_location_solution_adapter.hpp.
|
inline |
returns copy of chosen facilities
Definition at line 181 of file facility_location_solution_adapter.hpp.
|
inline |
|
inline |
|
inline |
returns copy of unchosen facilities
Definition at line 169 of file facility_location_solution_adapter.hpp.
|
inline |
removes facility
v |
Definition at line 136 of file facility_location_solution_adapter.hpp.
|
inline |
ads facility tentatively (used in gain computation)
v |
Definition at line 125 of file facility_location_solution_adapter.hpp.