|
Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
easylocal::LocalSearchSolver Class Template Reference#include <EasyLocal.h>
Inheritance diagram for easylocal::LocalSearchSolver
[legend]Collaboration diagram for easylocal::LocalSearchSolver:
[legend]List of all members.Public Methods
Protected Methods
Protected Attributes
Detailed Description
template<class Input, class Output, class State> class easylocal::LocalSearchSolver
A Local Search Solver has an internal state, and defines the ways for dealing with a local search algorithm.
Definition at line 826 of file EasyLocal.h.
Constructor & Destructor Documentation
template<class Input, class Output, class State> |
easylocal::LocalSearchSolver< Input, Output, State >::LocalSearchSolver<Input, Output, State> (
|
StateManager< Input, State > * sm,
|
|
OutputManager< Input, Output, State > * om,
|
|
Input * in = NULL,
|
|
Output * out = NULL ) [protected]
|
|
|
Constructs a local search solver by providing it a state manager, an output manager, an input object, 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 1644 of file EasyLocalTemplates.cpp. |
Member Function Documentation
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::Check (
|
) [virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::ComputeCost (
|
) [protected]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::DeliverOutput (
|
) [protected, virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::FindInitialState (
|
) [protected, virtual]
|
|
template<class Input, class Output, class State> |
fvalue easylocal::LocalSearchSolver< Input, Output, State >::InternalStateCost (
|
)
|
|
|
Returns the cost of the internal state.
-
Returns:
-
the cost of the internal state
Definition at line 1631 of file EasyLocalTemplates.cpp. |
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::MultiStartSolve (
|
unsigned int n ) [virtual]
|
|
template<class Input, class Output, class State> |
unsigned long easylocal::LocalSearchSolver<Input, Output, State>::NumberOfIterations (
|
) const [protected, pure virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::ReSolve (
|
) [virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver<Input, Output, State>::Run (
|
) [protected, pure virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::SetInitTrials (
|
int t )
|
|
|
Set the number of states which should be tried in the initialization phase.
Definition at line 1610 of file EasyLocalTemplates.cpp. |
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::SetInput (
|
Input * in ) [virtual]
|
|
template<class Input, class Output, class State> |
void easylocal::LocalSearchSolver< Input, Output, State >::Solve (
|
) [virtual]
|
|
Member Data Documentation
template<class Input, class Output, class State> |
State easylocal::LocalSearchSolver<Input, Output, State>::internal_state [protected]
|
|
|
The internal state of the solver.
Definition at line 857 of file EasyLocal.h. |
template<class Input, class Output, class State> |
fvalue easylocal::LocalSearchSolver<Input, Output, State>::internal_state_cost [protected]
|
|
|
The cost of the internal state.
Definition at line 856 of file EasyLocal.h. |
template<class Input, class Output, class State> |
unsigned int easylocal::LocalSearchSolver<Input, Output, State>::number_of_init_trials [protected]
|
|
|
Number of different initial states tested for a run.
Definition at line 858 of file EasyLocal.h. |
template<class Input, class Output, class State> |
OutputManager< Input, Output, State > * easylocal::LocalSearchSolver<Input, Output, State>::p_om [protected]
|
|
|
A pointer to the attached output manager.
Definition at line 854 of file EasyLocal.h. |
template<class Input, class Output, class State> |
StateManager< Input, State > * easylocal::LocalSearchSolver<Input, Output, State>::p_sm [protected]
|
|
|
A pointer to the attached state manager.
Definition at line 852 of file EasyLocal.h. |
The documentation for this class was generated from the following files:
|