Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
combinatorial_optimization
CostFunction.hpp
Go to the documentation of this file.
1
18
#pragma once
19
20
#include <boost/shared_ptr.hpp>
21
22
namespace
ISM
{
23
24
template
<
class
InstanceType>
25
class
CostFunction
26
{
27
public
:
28
virtual
double
calculateCost
(InstanceType instance) = 0;
29
30
};
31
32
template
<
class
InstanceType>
33
using
CostFunctionPtr
= boost::shared_ptr<CostFunction<InstanceType>>;
34
35
}
ISM::CostFunctionPtr
boost::shared_ptr< CostFunction< InstanceType >> CostFunctionPtr
Definition:
CostFunction.hpp:33
ISM::CostFunction::calculateCost
virtual double calculateCost(InstanceType instance)=0
ISM::CostFunction
Definition:
CostFunction.hpp:25
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