Generated on Tue Feb 11 2025 17:33:26 for Gecode by doxygen 1.12.0

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.
 
- Public Member Functions inherited from Gecode::MeritBase< View, double >
 MeritBase (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization.
 
 MeritBase (Space &home, MeritBase &mb)
 Constructor for cloning.
 
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

CHB chb
 CHB information.
 

Additional Inherited Members

- 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.
 

Detailed Description

template<class View>
class Gecode::Int::Branch::MeritCHBSize< View >

Merit class for CHB over size.

Requires

Definition at line 191 of file branch.hh.

Constructor & Destructor Documentation

◆ MeritCHBSize() [1/2]

template<class View >
Gecode::Int::Branch::MeritCHBSize< View >::MeritCHBSize ( Space & home,
const VarBranch< Var > & vb )

Constructor for initialization.

◆ MeritCHBSize() [2/2]

template<class View >
Gecode::Int::Branch::MeritCHBSize< View >::MeritCHBSize ( Space & home,
MeritCHBSize< View > & m )
inline

Constructor for cloning.

Definition at line 161 of file merit.hpp.

Member Function Documentation

◆ operator()()

template<class View >
double Gecode::Int::Branch::MeritCHBSize< View >::operator() ( const Space & home,
View x,
int i )
inline

Return size over action as merit for view x at position i.

Definition at line 165 of file merit.hpp.

◆ notice()

template<class View >
bool Gecode::Int::Branch::MeritCHBSize< View >::notice ( void ) const
inline

Whether dispose must always be called (that is, notice is needed)

Definition at line 170 of file merit.hpp.

◆ dispose()

template<class View >
void Gecode::Int::Branch::MeritCHBSize< View >::dispose ( Space & home)
inline

Dispose view selection.

Definition at line 175 of file merit.hpp.

Member Data Documentation

◆ chb

template<class View >
CHB Gecode::Int::Branch::MeritCHBSize< View >::chb
protected

CHB information.

Definition at line 195 of file branch.hh.


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