All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Public Member Functions | List of all members
paal::local_search::gain_two_opt< Metric > Class Template Reference

gain for two opt moves More...

#include <2_local_search_components.hpp>

Public Member Functions

 gain_two_opt (const Metric &m)
 
template<typename Solution , typename SolutionElement >
int operator() (const Solution &, const Swap< SolutionElement > &swap)
 returns gain for given adjustment More...
 

Detailed Description

template<typename Metric>
class paal::local_search::gain_two_opt< Metric >

gain for two opt moves

Template Parameters
Metric

Definition at line 79 of file 2_local_search_components.hpp.

Constructor & Destructor Documentation

template<typename Metric >
paal::local_search::gain_two_opt< Metric >::gain_two_opt ( const Metric &  m)
inline
Parameters
mfulfills Metric concept.

Definition at line 86 of file 2_local_search_components.hpp.

Member Function Documentation

template<typename Metric >
template<typename Solution , typename SolutionElement >
int paal::local_search::gain_two_opt< Metric >::operator() ( const Solution &  ,
const Swap< SolutionElement > &  swap 
)
inline

returns gain for given adjustment

Template Parameters
Solution
SolutionElement
Parameters
swap
Returns

Definition at line 98 of file 2_local_search_components.hpp.


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