This is the gain adapter which accepts gains improving the current solution by more than epsilon. This adapter should be used only when ChooseFirstBetter strategy is applied. More...
#include <custom_components.hpp>
Public Member Functions | |
gain_cut_small_improves (Gain gain, ValueType currOpt, double epsilon) | |
Constructor,. More... | |
template<typename... Args> | |
ValueType | operator() (Args &&...args) |
transfers arguments to original gain, if the value is to small it is changed to 0. More... | |
void | set_epsilon (double e) |
sets epsilon More... | |
void | set_current_opt (ValueType opt) |
sets current Opt More... | |
This is the gain adapter which accepts gains improving the current solution by more than epsilon. This adapter should be used only when ChooseFirstBetter strategy is applied.
Gain | |
ValueType |
Definition at line 96 of file custom_components.hpp.
|
inline |
Constructor,.
gain | - original gain functor |
currOpt | - current optimum |
epsilon | - gain limit, gains smaller than epsilon * currOpt are cut |
Definition at line 105 of file custom_components.hpp.
|
inline |
transfers arguments to original gain, if the value is to small it is changed to 0.
Args |
args |
Definition at line 117 of file custom_components.hpp.
|
inline |
|
inline |