Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
combinatorial_optimization
CostDeltaAcceptanceFunction.hpp
Go to the documentation of this file.
1
18
#pragma once
19
20
#include <boost/shared_ptr.hpp>
21
#include <random>
22
23
#include "
AcceptanceFunction.hpp
"
24
25
namespace
ISM
{
26
27
class
CostDeltaAcceptanceFunction
:
public
AcceptanceFunction
28
{
29
public
:
30
CostDeltaAcceptanceFunction
(
double
initalAcceptableCostDelta,
double
costDeltaDecreaseFactor)
31
:
mInitialAcceptableCostDelta
(initalAcceptableCostDelta)
32
,
mCurrentAcceptableCostDelta
(initalAcceptableCostDelta)
33
,
mCostDeltaDecreaseFactor
(costDeltaDecreaseFactor)
34
{}
35
36
bool
isNewCostAcceptable
(
double
newCost,
double
oldCost);
37
void
update
();
38
void
reset
();
39
40
private
:
41
double
mInitialAcceptableCostDelta
;
42
double
mCurrentAcceptableCostDelta
;
43
double
mCostDeltaDecreaseFactor
;
44
45
};
typedef
boost::shared_ptr<CostDeltaAcceptanceFunction>
CostDeltaAcceptanceFunctionPtr
;
46
47
}
48
ISM::CostDeltaAcceptanceFunction::mCurrentAcceptableCostDelta
double mCurrentAcceptableCostDelta
Definition:
CostDeltaAcceptanceFunction.hpp:42
ISM::CostDeltaAcceptanceFunction::update
void update()
Definition:
CostDeltaAcceptanceFunction.cpp:27
ISM::CostDeltaAcceptanceFunction
Definition:
CostDeltaAcceptanceFunction.hpp:27
ISM::CostDeltaAcceptanceFunction::mCostDeltaDecreaseFactor
double mCostDeltaDecreaseFactor
Definition:
CostDeltaAcceptanceFunction.hpp:43
ISM::CostDeltaAcceptanceFunction::reset
void reset()
Definition:
CostDeltaAcceptanceFunction.cpp:33
ISM::CostDeltaAcceptanceFunctionPtr
boost::shared_ptr< CostDeltaAcceptanceFunction > CostDeltaAcceptanceFunctionPtr
Definition:
CostDeltaAcceptanceFunction.hpp:45
ISM::AcceptanceFunction
Definition:
AcceptanceFunction.hpp:24
ISM::CostDeltaAcceptanceFunction::mInitialAcceptableCostDelta
double mInitialAcceptableCostDelta
Definition:
CostDeltaAcceptanceFunction.hpp:41
AcceptanceFunction.hpp
ISM::CostDeltaAcceptanceFunction::CostDeltaAcceptanceFunction
CostDeltaAcceptanceFunction(double initalAcceptableCostDelta, double costDeltaDecreaseFactor)
Definition:
CostDeltaAcceptanceFunction.hpp:30
ISM::CostDeltaAcceptanceFunction::isNewCostAcceptable
bool isNewCostAcceptable(double newCost, double oldCost)
Definition:
CostDeltaAcceptanceFunction.cpp:22
ISM
this namespace contains all generally usable classes.
Definition:
AcceptanceFunction.hpp:22
asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40