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
.
Definition at line 257 of file sa.hpp.
| 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 is changed | |
| p_scaling | Scaling factor for , if omitted 1.0 is taken (no scaling) |
Definition at line 265 of file sa.hpp.
References D, scaling, and THROW_DEBUG_EXCEPT_MACRO.
| void angel::gamma_adaption_max_t::operator() | ( | int | costs, | |
| double & | gamma | |||
| ) |
int angel::gamma_adaption_max_t::D [private] |
int angel::gamma_adaption_max_t::diff [private] |
int angel::gamma_adaption_max_t::max_diff [private] |
int angel::gamma_adaption_max_t::last_min [private] |
int angel::gamma_adaption_max_t::last_max [private] |
int angel::gamma_adaption_max_t::imp [private] |
double angel::gamma_adaption_max_t::scaling [private] |
1.5.3