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