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

Which value to select for assignment. More...

#include <set.hh>

Public Types

enum  Select {
  SEL_MIN_INC , SEL_MIN_EXC , SEL_MED_INC , SEL_MED_EXC ,
  SEL_MAX_INC , SEL_MAX_EXC , SEL_RND_INC , SEL_RND_EXC ,
  SEL_VAL_COMMIT
}
Public Types inherited from Gecode::ValBranch< SetVar >
typedef BranchTraits< SetVar >::Val BranchVal
 The corresponding branching value function.
typedef BranchTraits< SetVar >::Commit BranchCommit
 The corresponding branching commit function.

Public Member Functions

Initialize with selection strategy a s SetAssign (Select s=SEL_MIN_INC)
Initialize with random number generator a r SetAssign (Select s, Rnd r)
Initialize with value function a f and commit function a c SetAssign (SetBranchVal v, SetBranchCommit c)
Return selection strategy Select select (void) const
Public Member Functions inherited from Gecode::ValBranch< SetVar >
 ValBranch (void)
 Initialize.
Rnd rnd (void) const
 Return random number generator.
BranchVal val (void) const
 Return value function.
BranchCommit commit (void) const
 Return commit function.

Protected Attributes

Which value to select Select s
Protected Attributes inherited from Gecode::ValBranch< SetVar >
Rnd r
 Random number generator.
BranchVal vf
 Value function.
BranchCommit cf
 Commit function.

Detailed Description

Which value to select for assignment.

Definition at line 1523 of file set.hh.

Member Enumeration Documentation

◆ Select

Enumerator
SEL_MIN_INC 

Include smallest element.

SEL_MIN_EXC 

Exclude smallest element.

SEL_MED_INC 

Include median element (rounding downwards)

SEL_MED_EXC 

Exclude median element (rounding downwards)

SEL_MAX_INC 

Include largest element.

SEL_MAX_EXC 

Exclude largest element.

SEL_RND_INC 

Include random element.

SEL_RND_EXC 

Exclude random element.

SEL_VAL_COMMIT 

Select value according to user-defined functions.

Definition at line 1526 of file set.hh.

Constructor & Destructor Documentation

◆ SetAssign() [1/3]

Gecode::SetAssign::SetAssign ( Select s = SEL_MIN_INC)
inline

Definition at line 37 of file assign.hpp.

◆ SetAssign() [2/3]

Gecode::SetAssign::SetAssign ( Select s,
Rnd r )
inline

Definition at line 41 of file assign.hpp.

◆ SetAssign() [3/3]

Gecode::SetAssign::SetAssign ( SetBranchVal v,
SetBranchCommit c )
inline

Definition at line 45 of file assign.hpp.

Member Function Documentation

◆ select()

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

Definition at line 49 of file assign.hpp.

Member Data Documentation

◆ s

Which value to select Select Gecode::SetAssign::s
protected

Definition at line 1539 of file set.hh.


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