All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::local_search::exponential_cooling_schema_dependant_on_time< Duration, Clock > Struct Template Reference

This functors returns potential (temperature) using the following schema. The start potential equals given startTemperature, the end temperature (after given duration) equals given endTemperature. In the beetween potential decreases (increase when startTemperature < endTemperature, which is not typical use case) in exponential manner. More...

#include <simulated_annealing.hpp>

Public Member Functions

 exponential_cooling_schema_dependant_on_time (Duration duration, double startTemperature, double endTemperature)
 Constructor. More...
 
void restart ()
 resets the start point
 
double operator() () const
 operator(), return Temperature at given time point point More...
 

Detailed Description

template<typename Duration = std::chrono::seconds, typename Clock = std::chrono::system_clock>
struct paal::local_search::exponential_cooling_schema_dependant_on_time< Duration, Clock >

This functors returns potential (temperature) using the following schema. The start potential equals given startTemperature, the end temperature (after given duration) equals given endTemperature. In the beetween potential decreases (increase when startTemperature < endTemperature, which is not typical use case) in exponential manner.

Template Parameters
Duration
Clock

Definition at line 42 of file simulated_annealing.hpp.

Constructor & Destructor Documentation

template<typename Duration = std::chrono::seconds, typename Clock = std::chrono::system_clock>
paal::local_search::exponential_cooling_schema_dependant_on_time< Duration, Clock >::exponential_cooling_schema_dependant_on_time ( Duration  duration,
double  startTemperature,
double  endTemperature 
)
inline

Constructor.

Parameters
duration
startTemperature
endTemperature

Definition at line 51 of file simulated_annealing.hpp.

Member Function Documentation

template<typename Duration = std::chrono::seconds, typename Clock = std::chrono::system_clock>
double paal::local_search::exponential_cooling_schema_dependant_on_time< Duration, Clock >::operator() ( ) const
inline

operator(), return Temperature at given time point point

Returns

Definition at line 69 of file simulated_annealing.hpp.


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