#include <sa.hpp>
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 . | |
Private Attributes | |
int | D |
int | sum_diff |
int | last_min |
int | last_max |
int | imp |
double | scaling |
Same as gamma_adaption_max_t with average instead of maximal difference.
Definition at line 287 of file sa.hpp.
angel::gamma_adaption_average_t::gamma_adaption_average_t | ( | int | p_D, | |
double | p_scaling = 1.0 | |||
) | [inline] |
Constructor.
p_D | The number of improvement before is changed | |
p_scaling | Scaling factor for , if omitted 1.0 is taken (no scaling) |
Definition at line 295 of file sa.hpp.
References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.
void angel::gamma_adaption_average_t::operator() | ( | int | costs, | |
double & | gamma | |||
) |
int angel::gamma_adaption_average_t::D [private] |
int angel::gamma_adaption_average_t::sum_diff [private] |
int angel::gamma_adaption_average_t::last_min [private] |
int angel::gamma_adaption_average_t::last_max [private] |
int angel::gamma_adaption_average_t::imp [private] |
double angel::gamma_adaption_average_t::scaling [private] |