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

Merit class for action over size. More...

#include <branch.hh>

Public Member Functions

 MeritActionSize (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization.
 
 MeritActionSize (Space &home, MeritActionSize &m)
 Constructor for cloning.
 
double operator() (const Space &home, SetView x, int i)
 Return action over size 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< SetView, 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

Action action
 Action information.
 

Additional Inherited Members

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

Detailed Description

Merit class for action over size.

Requires

Definition at line 157 of file branch.hh.

Constructor & Destructor Documentation

◆ MeritActionSize() [1/2]

Gecode::Set::Branch::MeritActionSize::MeritActionSize ( Space & home,
const VarBranch< Var > & vb )
inline

Constructor for initialization.

Definition at line 118 of file merit.hpp.

◆ MeritActionSize() [2/2]

Gecode::Set::Branch::MeritActionSize::MeritActionSize ( Space & home,
MeritActionSize & m )
inline

Constructor for cloning.

Definition at line 121 of file merit.hpp.

Member Function Documentation

◆ operator()()

double Gecode::Set::Branch::MeritActionSize::operator() ( const Space & home,
SetView x,
int i )
inline

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

Definition at line 124 of file merit.hpp.

◆ notice()

bool Gecode::Set::Branch::MeritActionSize::notice ( void ) const
inline

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

Definition at line 128 of file merit.hpp.

◆ dispose()

void Gecode::Set::Branch::MeritActionSize::dispose ( Space & home)
inline

Dispose view selection.

Definition at line 132 of file merit.hpp.

Member Data Documentation

◆ action

Action Gecode::Set::Branch::MeritActionSize::action
protected

Action information.

Definition at line 160 of file branch.hh.


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