Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1

Merit class for user-defined merit function. More...

#include <brancher-merit.hpp>

Public Types

typedef View::VarType Var
 Corresponding variable type. More...
 
typedef BranchTraits< Var >::Merit Function
 Corresponding merit function type. More...
 
- Public Types inherited from Gecode::MeritBase< View, double >
typedef View View
 View type. More...
 
typedef double Val
 Type of merit. More...
 

Public Member Functions

 MeritFunction (Space &home, const VarBranch &vb)
 Constructor for initialization. More...
 
 MeritFunction (Space &home, bool shared, MeritFunction &mf)
 Constructor for cloning. More...
 
double operator() (const Space &home, View x, int i)
 Return degree as merit for view x at position i. More...
 
- Public Member Functions inherited from Gecode::MeritBase< View, double >
 MeritBase (Space &home, const VarBranch &vb)
 Constructor for initialization. More...
 
 MeritBase (Space &home, bool share, MeritBase &mb)
 Constructor for cloning. More...
 
bool notice (void) const
 Whether dispose must always be called (that is, notice is needed) More...
 
void dispose (Space &home)
 Delete view merit class. More...
 

Protected Attributes

Function f
 The user-defined merit function. More...
 

Detailed Description

template<class View>
class Gecode::MeritFunction< View >

Merit class for user-defined merit function.

Definition at line 70 of file brancher-merit.hpp.

Member Typedef Documentation

template<class View >
typedef View::VarType Gecode::MeritFunction< View >::Var

Corresponding variable type.

Definition at line 73 of file brancher-merit.hpp.

template<class View >
typedef BranchTraits<Var>::Merit Gecode::MeritFunction< View >::Function

Corresponding merit function type.

Definition at line 75 of file brancher-merit.hpp.

Constructor & Destructor Documentation

template<class View >
Gecode::MeritFunction< View >::MeritFunction ( Space home,
const VarBranch vb 
)
inline

Constructor for initialization.

Definition at line 165 of file brancher-merit.hpp.

template<class View >
Gecode::MeritFunction< View >::MeritFunction ( Space home,
bool  shared,
MeritFunction< View > &  mf 
)
inline

Constructor for cloning.

Definition at line 170 of file brancher-merit.hpp.

Member Function Documentation

template<class View >
double Gecode::MeritFunction< View >::operator() ( const Space home,
View  x,
int  i 
)
inline

Return degree as merit for view x at position i.

Definition at line 175 of file brancher-merit.hpp.

Member Data Documentation

template<class View >
Function Gecode::MeritFunction< View >::f
protected

The user-defined merit function.

Definition at line 78 of file brancher-merit.hpp.


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