EasyLocal++ Documentation


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

easylocal Namespace Reference

Compounds

Functions

Variables


Detailed Description

The easylocal namespace embeds all the classes of the framework.


Function Documentation

int easylocal::Random ( int a,
int b )
 

Uniform random generator, it picks an integer value in the range [i, j].

Parameters:
i   lower bound of the interval
j   upper bound of the interval
Returns:
an integer in the range [i, j]

Definition at line 37 of file EasyLocal.cpp.

Referenced by easylocal::TabuListManager::InsertIntoList(), and yyout().

double easylocal::distance ( fvalue x,
fvalue y ) [inline]
 

Computes the distance between two values in the codomain of the cost function and returns it as a double precision value.

Parameters:
x   first value
y   second value
Returns:
the distance between x and y

Definition at line 56 of file EasyLocal.cpp.

Referenced by easylocal::MoveRunner::MakeMove().

template<class Move>
std::ostream & easylocal::operator<< ( std::ostream & os,
const TabuListManager< Move > & tl )
 

Prints out the current status of the Tabu List Manager.

Definition at line 317 of file EasyLocalTemplates.cpp.


Variable Documentation

const double easylocal::EPS = 1.0E-6
 

It is the precision above which the computed difference of the cost function and the expected value should be considered different.

Definition at line 77 of file EasyLocal.h.

const int easylocal::RUNNER_NOT_FOUND = 1
 

These are used by the Tester class for returning a code error to the parser.

Definition at line 61 of file EasyLocal.h.

const int easylocal::RUNNER_TYPE_MISMATCH = 2
 

These are used by the Tester class for returning a code error to the parser.

Definition at line 61 of file EasyLocal.h.

 
Go to: the Main Page of the documentation.