EasyLocal++ Documentation


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

easylocal::ComparativeSolver Class Template Reference

#include <EasyLocal.h>

Inheritance diagram for easylocal::ComparativeSolver

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

Collaboration graph
[legend]
List of all members.

Protected Methods

Protected Attributes


Detailed Description

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

A Comparative Solver applies different runners to the same instances (and the same initial solutions).

Definition at line 911 of file EasyLocal.h.


Constructor & Destructor Documentation

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

Constructs a comparative 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 922 of file EasyLocal.h.


Member Function Documentation

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

Lets all the managed runners Go, and then it collects the best state found.

Reimplemented from easylocal::LocalSearchSolver.

Definition at line 1860 of file EasyLocalTemplates.cpp.


Member Data Documentation

template<class Input, class Output, class State>
State easylocal::ComparativeSolver<Input, Output, State>::start_state [protected]
 

The start state is equal for each runner used and is kept in this variable.

Definition at line 927 of file EasyLocal.h.


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