All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::local_search::simulated_annealing_commit_adaptor< Commit, Gain, GetTemperature, random_generator > Struct Template Reference

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...
 

Detailed Description

template<typename Commit, typename Gain, typename GetTemperature, typename random_generator = std::default_random_engine>
struct paal::local_search::simulated_annealing_commit_adaptor< Commit, Gain, GetTemperature, random_generator >

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.

Template Parameters
Commit
Gain
GetTemperature
random_generator

Definition at line 414 of file simulated_annealing.hpp.

Member Function Documentation

template<typename Commit , typename Gain , typename GetTemperature , typename random_generator = std::default_random_engine>
template<typename... Args>
bool paal::local_search::simulated_annealing_commit_adaptor< Commit, Gain, GetTemperature, random_generator >::operator() ( Args &&...  args)
inline

operator()

Template Parameters
Args
Parameters
args
Returns

Definition at line 433 of file simulated_annealing.hpp.


The documentation for this struct was generated from the following file: