angel::gamma_adaption_max_t Class Reference

$\Gamma$ adaption on maximal min-max-difference More...

#include <sa.hpp>

List of all members.

Public Member Functions

 gamma_adaption_max_t (int p_D, double p_scaling=1.0)
 Constructor.
void operator() (int costs, double &gamma)
 Operator, which finally changes $\Gamma$.

Private Attributes

int D
int diff
int max_diff
int last_min
int last_max
int imp
double scaling


Detailed Description

$\Gamma$ adaption on maximal min-max-difference

Between two improvements of the objective functions the maximal (worst) value is subtracted from the minimal (best) value. This difference is computed for D improvements. Then the maximal difference is used as $\Gamma$.

Warning:
In contrast to other operator classes (e.g. neighbor_sequence_check_t), objects of this class can only be used in one run! For another run a new object must be created to set private variables to their initial state.
See also:
ALSA

Definition at line 257 of file sa.hpp.


Constructor & Destructor Documentation

angel::gamma_adaption_max_t::gamma_adaption_max_t ( int  p_D,
double  p_scaling = 1.0 
) [inline]

Constructor.

Parameters:
p_D The number of improvement before $\Gamma$ is changed
p_scaling Scaling factor for $\Gamma$, if omitted 1.0 is taken (no scaling)

Definition at line 265 of file sa.hpp.

References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.


Member Function Documentation

void angel::gamma_adaption_max_t::operator() ( int  costs,
double &  gamma 
)

Operator, which finally changes $\Gamma$.

Parameters:
costs The costs (objective function) of current iteration, must be larger than 0
gamma $\Gamma$ in current iteration, may be changed

Definition at line 180 of file sa_impl.hpp.

References D, diff, imp, last_max, last_min, max_diff, and scaling.


Member Data Documentation

int angel::gamma_adaption_max_t::D [private]

Definition at line 258 of file sa.hpp.

Referenced by gamma_adaption_max_t(), and operator()().

int angel::gamma_adaption_max_t::diff [private]

Definition at line 258 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_max_t::max_diff [private]

Definition at line 258 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_max_t::last_min [private]

Definition at line 258 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_max_t::last_max [private]

Definition at line 258 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_max_t::imp [private]

Definition at line 258 of file sa.hpp.

Referenced by operator()().

double angel::gamma_adaption_max_t::scaling [private]

Definition at line 259 of file sa.hpp.

Referenced by gamma_adaption_max_t(), and operator()().


The documentation for this class was generated from the following files:
Generated on Wed Mar 11 10:35:09 2009 for angel by  doxygen 1.5.3