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 
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:
44 
45 }; typedef boost::shared_ptr<CostDeltaAcceptanceFunction> CostDeltaAcceptanceFunctionPtr;
46 
47 }
48 
boost::shared_ptr< CostDeltaAcceptanceFunction > CostDeltaAcceptanceFunctionPtr
CostDeltaAcceptanceFunction(double initalAcceptableCostDelta, double costDeltaDecreaseFactor)
bool isNewCostAcceptable(double newCost, double oldCost)
this namespace contains all generally usable classes.


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