METSlib  0.5
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mets::swap_neighborhood< random_generator > Class Template Reference

Generates a stochastic subset of the neighborhood. More...

#include <model.hh>

Collaboration diagram for mets::swap_neighborhood< random_generator >:
Collaboration graph

Public Member Functions

 swap_neighborhood (random_generator &r, unsigned int moves)
 A neighborhood exploration strategy for mets::swap_elements. More...
 
 ~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
 

Detailed Description

template<typename random_generator = std::tr1::minstd_rand0>
class mets::swap_neighborhood< random_generator >

Generates a stochastic subset of the neighborhood.


The documentation for this class was generated from the following file:

Return to METSlib home page