angel::gamma_adaption_average_t Class Reference

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

#include <sa.hpp>

List of all members.

Public Member Functions

 gamma_adaption_average_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 sum_diff
int last_min
int last_max
int imp
double scaling


Detailed Description

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

Same as gamma_adaption_max_t with average instead of maximal difference.

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:
gamma_adaption_max_t

ALSA

Definition at line 287 of file sa.hpp.


Constructor & Destructor Documentation

angel::gamma_adaption_average_t::gamma_adaption_average_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 295 of file sa.hpp.

References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.


Member Function Documentation

void angel::gamma_adaption_average_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 191 of file sa_impl.hpp.

References D, imp, last_max, last_min, scaling, and sum_diff.


Member Data Documentation

int angel::gamma_adaption_average_t::D [private]

Definition at line 288 of file sa.hpp.

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

int angel::gamma_adaption_average_t::sum_diff [private]

Definition at line 288 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_average_t::last_min [private]

Definition at line 288 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_average_t::last_max [private]

Definition at line 288 of file sa.hpp.

Referenced by operator()().

int angel::gamma_adaption_average_t::imp [private]

Definition at line 288 of file sa.hpp.

Referenced by operator()().

double angel::gamma_adaption_average_t::scaling [private]

Definition at line 289 of file sa.hpp.

Referenced by gamma_adaption_average_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