#include <HillClimbingAlogrithm.hpp>
Public Member Functions | |
HillClimbingAlogrithm (NeighbourhoodFunctionPtr< InstanceType > neighbourhoodFunction, CostFunctionPtr< InstanceType > costFunction, bool randomWalkProbability=0.0) | |
InstanceType | optimize (InstanceType startInstance) |
Public Member Functions inherited from ISM::OptimizationAlgorithm< InstanceType > | |
OptimizationAlgorithm (NeighbourhoodFunctionPtr< InstanceType > neighbourhoodFunction, CostFunctionPtr< InstanceType > costFunction) | |
Private Attributes | |
std::uniform_real_distribution< double > | mDistribution = std::uniform_real_distribution<double>(0.0, 1.0) |
std::default_random_engine | mGenerator |
bool | mRandomWalkProbability |
Additional Inherited Members | |
Protected Attributes inherited from ISM::OptimizationAlgorithm< InstanceType > | |
CostFunctionPtr< InstanceType > | mCostFunction |
NeighbourhoodFunctionPtr< InstanceType > | mNeighbourhoodFunction |
Definition at line 28 of file HillClimbingAlogrithm.hpp.
|
inline |
Definition at line 31 of file HillClimbingAlogrithm.hpp.
|
inlinevirtual |
Implements ISM::OptimizationAlgorithm< InstanceType >.
Definition at line 37 of file HillClimbingAlogrithm.hpp.
|
private |
Definition at line 89 of file HillClimbingAlogrithm.hpp.
|
private |
Definition at line 88 of file HillClimbingAlogrithm.hpp.
|
private |
Definition at line 87 of file HillClimbingAlogrithm.hpp.