Public Member Functions | Protected Member Functions | Protected Attributes

mets::swap_neighborhood< random_generator > Class Template Reference
[Model]

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

#include <model.hh>

Inheritance diagram for mets::swap_neighborhood< random_generator >:
Inheritance graph
[legend]
Collaboration diagram for mets::swap_neighborhood< random_generator >:
Collaboration graph
[legend]

List of all members.

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

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