This adaptor takes Cammit functor and adopts it to simulated annealing. If the input move has positive gain it is chosen otherwise the move is chosen wit probability e^(movesGain/Temperature). Temperature is given by getTemperature functor. More...
#include <simulated_annealing.hpp>
Public Member Functions | |
| simulated_annealing_commit_adaptor (Commit commit, Gain gain, GetTemperature get_temperature, random_generator rand=random_generator()) | |
| contructor | |
| template<typename... Args> | |
| bool | operator() (Args &&...args) |
| operator() More... | |
This adaptor takes Cammit functor and adopts it to simulated annealing. If the input move has positive gain it is chosen otherwise the move is chosen wit probability e^(movesGain/Temperature). Temperature is given by getTemperature functor.
| Commit | |
| Gain | |
| GetTemperature | |
| random_generator |
Definition at line 414 of file simulated_annealing.hpp.
|
inline |
operator()
| Args |
| args |
Definition at line 433 of file simulated_annealing.hpp.
1.8.5