angel
mercurial changeset:
|
adaption on maximal min-max-difference
More...
#include <sa.hpp>
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 ![]() | |
Private Attributes | |
int | D |
int | diff |
int | max_diff |
int | last_min |
int | last_max |
int | imp |
double | scaling |
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 .
angel::gamma_adaption_max_t::gamma_adaption_max_t | ( | int | p_D, |
double | p_scaling = 1.0 |
||
) | [inline] |
Constructor.
p_D | The number of improvement before ![]() |
p_scaling | Scaling factor for ![]() |
Definition at line 273 of file sa.hpp.
References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.
void angel::gamma_adaption_max_t::operator() | ( | int | costs, |
double & | gamma | ||
) | [inline] |
int angel::gamma_adaption_max_t::D [private] |
Definition at line 266 of file sa.hpp.
Referenced by gamma_adaption_max_t(), and operator()().
int angel::gamma_adaption_max_t::diff [private] |
Definition at line 266 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_max_t::imp [private] |
Definition at line 266 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_max_t::last_max [private] |
Definition at line 266 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_max_t::last_min [private] |
Definition at line 266 of file sa.hpp.
Referenced by operator()().
int angel::gamma_adaption_max_t::max_diff [private] |
Definition at line 266 of file sa.hpp.
Referenced by operator()().
double angel::gamma_adaption_max_t::scaling [private] |
Definition at line 267 of file sa.hpp.
Referenced by gamma_adaption_max_t(), and operator()().