Generates a stochastic subset of the neighborhood. More...
#include <model.hh>
Public Member Functions | |
void | refresh (mets::feasible_solution &s) |
Selects a different set of moves at each iteration. | |
swap_neighborhood (random_generator &r, unsigned int moves) | |
A neighborhood exploration strategy for mets::swap_elements. | |
~swap_neighborhood () | |
Dtor. | |
Protected Member Functions | |
void | randomize_move (swap_elements &m, unsigned int size) |
Protected Attributes | |
std::tr1::uniform_int | int_range |
unsigned int | n |
random_generator & | rng |
Generates a stochastic subset of the neighborhood.
std::tr1::uniform_int mets::swap_neighborhood< random_generator >::int_range [protected] |
unsigned int mets::swap_neighborhood< random_generator >::n [protected] |
random_generator& mets::swap_neighborhood< random_generator >::rng [protected] |