Gecode::MeritFunction< View > Class Template Reference
Merit class for user-defined merit function. More...
#include <gecode/kernel/branch/merit.hpp>
Public Types | |
| typedef BranchTraits< Var >::Merit | Function |
| Corresponding merit function type. | |
| Public Types inherited from Gecode::MeritBase< View, double > | |
| typedef View | View |
| View type. | |
| typedef View::VarType | Var |
| Corresponding variable type. | |
| typedef double | Val |
| Type of merit. | |
Public Member Functions | |
| MeritFunction (Space &home, const VarBranch< Var > &vb) | |
| Constructor for initialization. | |
| MeritFunction (Space &home, MeritFunction &mf) | |
| Constructor for cloning. | |
| double | operator() (const Space &home, View x, int i) |
| Return degree as merit for view x at position i. | |
| bool | notice (void) const |
| Whether dispose must always be called (that is, notice is needed). | |
| void | dispose (Space &home) |
| Delete view merit class. | |
| Public Member Functions inherited from Gecode::MeritBase< View, double > | |
| MeritBase (Space &home, const VarBranch< Var > &vb) | |
| Constructor for initialization. | |
| bool | notice (void) const |
| Whether dispose must always be called (that is, notice is needed). | |
| void | dispose (Space &home) |
| Delete view merit class. | |
Protected Attributes | |
| SharedData< Function > | f |
| The user-defined merit function. | |
Detailed Description
template<class View>
class Gecode::MeritFunction< View >
class Gecode::MeritFunction< View >
Merit class for user-defined merit function.
Member Typedef Documentation
◆ Function
template<class View>
| typedef BranchTraits<Var>::Merit Gecode::MeritFunction< View >::Function |
Constructor & Destructor Documentation
◆ MeritFunction() [1/2]
template<class View>
| Gecode::MeritFunction< View >::MeritFunction | ( | Space & | home, |
| const VarBranch< Var > & | vb ) |
Constructor for initialization.
◆ MeritFunction() [2/2]
template<class View>
|
inline |
Member Function Documentation
◆ operator()()
template<class View>
|
inline |
◆ notice()
template<class View>
|
inline |
◆ dispose()
template<class View>
|
inline |
Member Data Documentation
◆ f
template<class View>
|
protected |
The documentation for this class was generated from the following file:
- gecode/kernel/branch/merit.hpp
