Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0

Merit class for AFC over size. More...

#include <branch.hh>

Public Member Functions

 MeritAFCSize (Space &home, const VarBranch< Var > &vb)
 Constructor for initialization.
 MeritAFCSize (Space &home, MeritAFCSize &m)
 Constructor for cloning.
double operator() (const Space &home, FloatView x, int i)
 Return AFC 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< FloatView, 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

AFC afc
 AFC information.

Additional Inherited Members

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

Detailed Description

Merit class for AFC over size.

Requires

Definition at line 130 of file branch.hh.

Constructor & Destructor Documentation

◆ MeritAFCSize() [1/2]

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

Constructor for initialization.

Definition at line 91 of file merit.hpp.

◆ MeritAFCSize() [2/2]

Gecode::Float::Branch::MeritAFCSize::MeritAFCSize ( Space & home,
MeritAFCSize & m )
inline

Constructor for cloning.

Definition at line 94 of file merit.hpp.

Member Function Documentation

◆ operator()()

double Gecode::Float::Branch::MeritAFCSize::operator() ( const Space & home,
FloatView x,
int i )
inline

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

Definition at line 97 of file merit.hpp.

◆ notice()

bool Gecode::Float::Branch::MeritAFCSize::notice ( void ) const
inline

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

Definition at line 101 of file merit.hpp.

◆ dispose()

void Gecode::Float::Branch::MeritAFCSize::dispose ( Space & home)
inline

Dispose view selection.

Definition at line 105 of file merit.hpp.

Member Data Documentation

◆ afc

AFC Gecode::Float::Branch::MeritAFCSize::afc
protected

AFC information.

Definition at line 133 of file branch.hh.


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