Generated on Sat Feb 7 2015 02:01:40 for Gecode by doxygen 1.8.9.1

Which variable to select for branching. More...

#include <int.hh>

Public Types

enum  Select {
  SEL_NONE = 0, SEL_RND, SEL_MERIT_MIN, SEL_MERIT_MAX,
  SEL_DEGREE_MIN, SEL_DEGREE_MAX, SEL_AFC_MIN, SEL_AFC_MAX,
  SEL_ACTIVITY_MIN, SEL_ACTIVITY_MAX, SEL_MIN_MIN, SEL_MIN_MAX,
  SEL_MAX_MIN, SEL_MAX_MAX, SEL_SIZE_MIN, SEL_SIZE_MAX,
  SEL_DEGREE_SIZE_MIN, SEL_DEGREE_SIZE_MAX, SEL_AFC_SIZE_MIN, SEL_AFC_SIZE_MAX,
  SEL_ACTIVITY_SIZE_MIN, SEL_ACTIVITY_SIZE_MAX, SEL_REGRET_MIN_MIN, SEL_REGRET_MIN_MAX,
  SEL_REGRET_MAX_MIN, SEL_REGRET_MAX_MAX
}
 Which variable selection. More...
 

Public Member Functions

 IntVarBranch (void)
 Initialize with strategy SEL_NONE. More...
 
 IntVarBranch (Rnd r)
 Initialize with random number generator r. More...
 
 IntVarBranch (Select s, BranchTbl t)
 Initialize with selection strategy s and tie-break limit function t. More...
 
 IntVarBranch (Select s, double d, BranchTbl t)
 Initialize with selection strategy s, decay factor d, and tie-break limit function t. More...
 
 IntVarBranch (Select s, AFC a, BranchTbl t)
 Initialize with selection strategy s, AFC a, and tie-break limit function t. More...
 
 IntVarBranch (Select s, Activity a, BranchTbl t)
 Initialize with selection strategy s, activity a, and tie-break limit function t. More...
 
 IntVarBranch (Select s, VoidFunction mf, BranchTbl t)
 Initialize with selection strategy s, branch merit function mf, and tie-break limit function t. More...
 
Select select (void) const
 Return selection strategy. More...
 
void expand (Home home, const IntVarArgs &x)
 Expand decay factor into AFC or activity. More...
 
void expand (Home home, const BoolVarArgs &x)
 Expand decay factor into AFC or activity. More...
 
- Public Member Functions inherited from Gecode::VarBranch
 VarBranch (BranchTbl t)
 Initialize with tie-break limit function t. More...
 
 VarBranch (Rnd r)
 Initialize with random number generator r. More...
 
 VarBranch (double d, BranchTbl t)
 Initialize with decay factor d and tie-break limit function t. More...
 
 VarBranch (AFC a, BranchTbl t)
 Initialize with AFC a and tie-break limit function t. More...
 
 VarBranch (Activity a, BranchTbl t)
 Initialize with activity a and tie-break limit function t. More...
 
 VarBranch (void(*f)(void), BranchTbl t)
 Initialize with merit function f and tie-break limit function t. More...
 
BranchTbl tbl (void) const
 Return tie-break limit function. More...
 
Rnd rnd (void) const
 Return random number generator. More...
 
double decay (void) const
 Return decay factor. More...
 
AFC afc (void) const
 Return AFC. More...
 
void afc (AFC a)
 Set AFC to a. More...
 
Activity activity (void) const
 Return activity. More...
 
void activity (Activity a)
 Set activity to a. More...
 
VoidFunction merit (void) const
 Return merit function. More...
 

Protected Attributes

Select s
 Which variable to select. More...
 
- Protected Attributes inherited from Gecode::VarBranch
BranchTbl _tbl
 Tie-breaking limit function. More...
 
Rnd _rnd
 Random number generator. More...
 
double _decay
 Decay information for AFC and activity. More...
 
AFC _afc
 AFC information. More...
 
Activity _act
 Activity information. More...
 
VoidFunction _mf
 Merit function (generic function pointer) More...
 

Detailed Description

Which variable to select for branching.

Definition at line 3798 of file int.hh.

Constructor & Destructor Documentation

Gecode::IntVarBranch::IntVarBranch ( void  )
inline

Initialize with strategy SEL_NONE.

Definition at line 41 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Rnd  r)
inline

Initialize with random number generator r.

Definition at line 49 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Select  s,
BranchTbl  t 
)
inline

Initialize with selection strategy s and tie-break limit function t.

Definition at line 45 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Select  s,
double  d,
BranchTbl  t 
)
inline

Initialize with selection strategy s, decay factor d, and tie-break limit function t.

Definition at line 53 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Select  s,
AFC  a,
BranchTbl  t 
)
inline

Initialize with selection strategy s, AFC a, and tie-break limit function t.

Definition at line 57 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Select  s,
Activity  a,
BranchTbl  t 
)
inline

Initialize with selection strategy s, activity a, and tie-break limit function t.

Definition at line 61 of file var.hpp.

Gecode::IntVarBranch::IntVarBranch ( Select  s,
VoidFunction  mf,
BranchTbl  t 
)
inline

Initialize with selection strategy s, branch merit function mf, and tie-break limit function t.

Definition at line 65 of file var.hpp.

Member Function Documentation

IntVarBranch::Select Gecode::IntVarBranch::select ( void  ) const
inline

Return selection strategy.

Definition at line 69 of file var.hpp.

void Gecode::IntVarBranch::expand ( Home  home,
const IntVarArgs x 
)
inline

Expand decay factor into AFC or activity.

Definition at line 74 of file var.hpp.

void Gecode::IntVarBranch::expand ( Home  home,
const BoolVarArgs x 
)
inline

Expand decay factor into AFC or activity.

Definition at line 91 of file var.hpp.

Member Data Documentation

Select Gecode::IntVarBranch::s
protected

Which variable to select.

Definition at line 3851 of file int.hh.


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