15 #ifndef PAAL_FACILITY_LOCATION_ADD_HPP
16 #define PAAL_FACILITY_LOCATION_ADD_HPP
22 #include <boost/iterator/iterator_adaptor.hpp>
43 template <
typename Solution,
typename UnchosenElement>
63 template <
typename Solution>
64 auto operator()(
const Solution &sol)->decltype(sol.getUnchosenCopy()) {
66 return sol.getUnchosenCopy();
83 template <
typename Solution,
typename UnchosenElement>
85 auto ret = s.add_facility_tentative(e);
86 auto back = s.remove_facility_tentative(e);
95 #endif // PAAL_FACILITY_LOCATION_ADD_HPP
gain functor for add moves in facility location problem
bool operator()(Solution &s, UnchosenElement &e)
operator ()
auto operator()(Solution &s, UnchosenElement e) const
operator()
gain functor for add moves in facility location problem
commit functor for add moves in facility location problem
auto operator()(const Solution &sol) -> decltype(sol.getUnchosenCopy())
operator()
bool local_search(Solution &solution, SearchStrategy searchStrategy, ContinueOnSuccess succ, ContinueOnFail fail, components...comps)
detail