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

This object represents Delta computed by gain and the decision if the object is taken or not. More...

#include <simulated_annealing.hpp>

Public Member Functions

 is_chosen ()
 constructor (from 0) represents the largest possible value of unchosen element If some element is bigger than zero, then this element is chosen.
 
bool operator< (is_chosen other) const
 operator<. Chosen move is always bigger then unchosen More...
 
bool operator> (is_chosen other) const
 operator> More...
 
bool chosen () const
 chosen
 
bool delta () const
 delta
 

Static Public Member Functions

static is_chosen make_chosen (Delta d)
 creates is_chosen for Move object More...
 
static is_chosen make_unchosen (Delta d)
 creates is_chosen for Move which is not chosen More...
 

Detailed Description

template<typename Gain, typename GetTemperature, typename random_generator = std::default_random_engine>
template<typename Delta>
struct paal::local_search::simulated_annealing_gain_adaptor< Gain, GetTemperature, random_generator >::is_chosen< Delta >

This object represents Delta computed by gain and the decision if the object is taken or not.

Template Parameters
Delta

Definition at line 267 of file simulated_annealing.hpp.

Member Function Documentation

template<typename Gain , typename GetTemperature , typename random_generator = std::default_random_engine>
template<typename Delta >
static is_chosen paal::local_search::simulated_annealing_gain_adaptor< Gain, GetTemperature, random_generator >::is_chosen< Delta >::make_chosen ( Delta  d)
inlinestatic

creates is_chosen for Move object

Parameters
d

Definition at line 273 of file simulated_annealing.hpp.

template<typename Gain , typename GetTemperature , typename random_generator = std::default_random_engine>
template<typename Delta >
static is_chosen paal::local_search::simulated_annealing_gain_adaptor< Gain, GetTemperature, random_generator >::is_chosen< Delta >::make_unchosen ( Delta  d)
inlinestatic

creates is_chosen for Move which is not chosen

Parameters
d

Definition at line 280 of file simulated_annealing.hpp.

template<typename Gain , typename GetTemperature , typename random_generator = std::default_random_engine>
template<typename Delta >
bool paal::local_search::simulated_annealing_gain_adaptor< Gain, GetTemperature, random_generator >::is_chosen< Delta >::operator< ( is_chosen< Delta >  other) const
inline

operator<. Chosen move is always bigger then unchosen

Parameters
other
Returns

Definition at line 299 of file simulated_annealing.hpp.

template<typename Gain , typename GetTemperature , typename random_generator = std::default_random_engine>
template<typename Delta >
bool paal::local_search::simulated_annealing_gain_adaptor< Gain, GetTemperature, random_generator >::is_chosen< Delta >::operator> ( is_chosen< Delta >  other) const
inline

operator>

Parameters
other
Returns

Definition at line 314 of file simulated_annealing.hpp.


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