EasyLocal++ Documentation


 
Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

easylocal::SimpleLocalSearch Class Template Reference

#include <EasyLocal.h>

Inheritance diagram for easylocal::SimpleLocalSearch

Inheritance graph
[legend]
Collaboration diagram for easylocal::SimpleLocalSearch:

Collaboration graph
[legend]
List of all members.

Public Methods

Protected Methods

Protected Attributes


Detailed Description

template<class Input, class Output, class State> class easylocal::SimpleLocalSearch

The Simple Local Search solver handles a simple local search algorithm encapsulated in a runner.

Definition at line 867 of file EasyLocal.h.


Constructor & Destructor Documentation

template<class Input, class Output, class State>
easylocal::SimpleLocalSearch< Input, Output, State >::SimpleLocalSearch<Input, Output, State> ( StateManager< Input, State > * sm,
OutputManager< Input, Output, State > * om,
Runner< Input, State > * r,
Input * in = NULL,
Output * out = NULL ) [protected]
 

Constructs a simple local search solver by providing it links to a state manager, an output manager, a runner, an input, and an output object.

Parameters:
sm   a pointer to a compatible state manager
om   a pointer to a compatible output manager
r   a pointer to a compatible runner
in   a pointer to an input object
out   a pointer to an output object

Definition at line 1711 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
easylocal::SimpleLocalSearch< Input, Output, State >::SimpleLocalSearch<Input, Output, State> ( StateManager< Input, State > * sm,
OutputManager< Input, Output, State > * om,
Input * in = NULL,
Output * out = NULL ) [protected]
 

Constructs a simple local search solver by providing it links to a state manager, an output manager, an input, and an output object.

Parameters:
sm   a pointer to a compatible state manager
om   a pointer to a compatible output manager
in   a pointer to an input object
out   a pointer to an output object

Definition at line 1726 of file EasyLocalTemplates.cpp.


Member Function Documentation

template<class Input, class Output, class State>
unsigned long easylocal::SimpleLocalSearch< Input, Output, State >::NumberOfIterations ( ) const [protected, virtual]
 

Returns the number of iterations performed by the attached runner.

Returns:
the number of iterations elapsed.

Reimplemented from easylocal::LocalSearchSolver.

Definition at line 1737 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
void easylocal::SimpleLocalSearch< Input, Output, State >::Run ( ) [protected, virtual]
 

Lets the runner Go, and then collects the best state found.

Reimplemented from easylocal::LocalSearchSolver.

Definition at line 1744 of file EasyLocalTemplates.cpp.

template<class Input, class Output, class State>
void easylocal::SimpleLocalSearch< Input, Output, State >::SetRunner ( Runner< Input, State > * r )
 

Sets the runner employed for solving the problem to the one passed as parameter.

Parameters:
r   the new runner to be used

Definition at line 1695 of file EasyLocalTemplates.cpp.


Member Data Documentation

template<class Input, class Output, class State>
Runner< Input, State > * easylocal::SimpleLocalSearch<Input, Output, State>::p_runner [protected]
 

A pointer to the managed runner.

Definition at line 879 of file EasyLocal.h.


The documentation for this class was generated from the following files:
 
Go to: the Main Page of the documentation.