Generated on Fri Mar 20 15:56:44 2015 for Gecode by doxygen 1.6.3

Gecode::IntValBranch Class Reference
[Branching]

Which values to select for branching first. More...

#include <int.hh>

List of all members.

Public Types

enum  Select {
  SEL_MIN, SEL_MED, SEL_MAX, SEL_RND,
  SEL_SPLIT_MIN, SEL_SPLIT_MAX, SEL_RANGE_MIN, SEL_RANGE_MAX,
  SEL_VAL_COMMIT, SEL_VALUES_MIN, SEL_VALUES_MAX, SEL_NEAR_MIN,
  SEL_NEAR_MAX, SEL_NEAR_INC, SEL_NEAR_DEC
}
 

Which value selection.

More...

Public Member Functions

 IntValBranch (Select s=SEL_MIN)
 Initialize with selection strategy s.
 IntValBranch (Rnd r)
 Initialize with random number generator r.
 IntValBranch (VoidFunction v, VoidFunction c)
 Initialize with value function f and commit function c.
 IntValBranch (Select s, IntSharedArray n)
 Initialize with selection startegy s and values n.
Select select (void) const
 Return selection strategy.
IntSharedArray values (void) const
 Return shared array of values.

Protected Attributes

IntSharedArray n
 Array of values for near strategies.
Select s
 Which value to select.

Detailed Description

Which values to select for branching first.

Definition at line 3981 of file int.hh.


Member Enumeration Documentation

Which value selection.

Enumerator:
SEL_MIN 

Select smallest value.

SEL_MED 

Select greatest value not greater than the median.

SEL_MAX 

Select largest value.

SEL_RND 

Select random value.

SEL_SPLIT_MIN 

Select values not greater than mean of smallest and largest value.

SEL_SPLIT_MAX 

Select values greater than mean of smallest and largest value.

SEL_RANGE_MIN 

Select the smallest range of the variable domain if it has several ranges, otherwise select values not greater than mean of smallest and largest value.

SEL_RANGE_MAX 

Select the largest range of the variable domain if it has several ranges, otherwise select values greater than mean of smallest and largest value.

SEL_VAL_COMMIT 

Select value according to user-defined functions.

SEL_VALUES_MIN 

Select all values starting from smallest.

SEL_VALUES_MAX 

Select all values starting from largest.

SEL_NEAR_MIN 

Select value nearest to a given value, use smaller one in case of ties.

SEL_NEAR_MAX 

Select value nearest to a given value, use larger one in case of ties.

SEL_NEAR_INC 

Select value near to a given value, increment values first.

SEL_NEAR_DEC 

Select value near to a given value, decrement values first.

Definition at line 3984 of file int.hh.


Constructor & Destructor Documentation

Gecode::IntValBranch::IntValBranch ( Select  s = SEL_MIN  )  [inline]

Initialize with selection strategy s.

Definition at line 41 of file val.hpp.

Gecode::IntValBranch::IntValBranch ( Rnd  r  )  [inline]

Initialize with random number generator r.

Definition at line 45 of file val.hpp.

Gecode::IntValBranch::IntValBranch ( VoidFunction  v,
VoidFunction  c 
) [inline]

Initialize with value function f and commit function c.

Definition at line 49 of file val.hpp.

Gecode::IntValBranch::IntValBranch ( Select  s,
IntSharedArray  n 
) [inline]

Initialize with selection startegy s and values n.

Definition at line 53 of file val.hpp.


Member Function Documentation

IntValBranch::Select Gecode::IntValBranch::select ( void   )  const [inline]

Return selection strategy.

Definition at line 57 of file val.hpp.

IntSharedArray Gecode::IntValBranch::values ( void   )  const [inline]

Return shared array of values.

Definition at line 62 of file val.hpp.


Member Data Documentation

Array of values for near strategies.

Definition at line 4003 of file int.hh.

Which value to select.

Definition at line 4005 of file int.hh.


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