|
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
[legend]Collaboration diagram for easylocal::SimpleLocalSearch:
[legend]List of all members.Public Methods
Protected Methods
- SimpleLocalSearch (StateManager< Input, State > *sm, OutputManager< Input, Output, State > *om, Runner< Input, State > *r, Input *in=NULL, Output *out=NULL)
- SimpleLocalSearch (StateManager< Input, State > *sm, OutputManager< Input, Output, State > *om, Input *in=NULL, Output *out=NULL)
- void Run ()
- unsigned long NumberOfIterations () const
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]
|
|
template<class Input, class Output, class State> |
void easylocal::SimpleLocalSearch< Input, Output, State >::Run (
|
) [protected, virtual]
|
|
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:
|