Gecode::Int::Branch::MeritCHBSize< View > Class Template Reference
[Merit-based integer view selection for branchers]
Merit class for CHB over size. More...
#include <branch.hh>
Public Member Functions | |
MeritCHBSize (Space &home, const VarBranch< Var > &vb) | |
Constructor for initialization. | |
MeritCHBSize (Space &home, MeritCHBSize &m) | |
Constructor for cloning. | |
double | operator() (const Space &home, View x, int i) |
Return size over action 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) |
Dispose view selection. | |
Protected Attributes | |
CHB | chb |
CHB information. |
Detailed Description
template<class View>
class Gecode::Int::Branch::MeritCHBSize< View >
Merit class for CHB over size.
Requires
#include <gecode/int/branch.hh>
Definition at line 191 of file branch.hh.
Constructor & Destructor Documentation
template<class View >
Gecode::Int::Branch::MeritCHBSize< View >::MeritCHBSize | ( | Space & | home, | |
const VarBranch< Var > & | vb | |||
) |
Constructor for initialization.
template<class View >
Gecode::Int::Branch::MeritCHBSize< View >::MeritCHBSize | ( | Space & | home, | |
MeritCHBSize< View > & | m | |||
) | [inline] |
Member Function Documentation
template<class View >
double Gecode::Int::Branch::MeritCHBSize< View >::operator() | ( | const Space & | home, | |
View | x, | |||
int | i | |||
) | [inline] |
template<class View >
bool Gecode::Int::Branch::MeritCHBSize< View >::notice | ( | void | ) | const [inline] |
Whether dispose must always be called (that is, notice is needed).
Reimplemented from Gecode::MeritBase< View, double >.
template<class View >
void Gecode::Int::Branch::MeritCHBSize< View >::dispose | ( | Space & | home | ) | [inline] |
Dispose view selection.
Reimplemented from Gecode::MeritBase< View, double >.
Member Data Documentation
template<class View >
CHB Gecode::Int::Branch::MeritCHBSize< View >::chb [protected] |
The documentation for this class was generated from the following files: