Generated on Thu Feb 14 2013 20:59:52 for Gecode by doxygen 1.8.3.1
BACP::ValBestLoad< minimize > Class Template Reference

Custom value selection class for a view-value branching. More...

Public Member Functions

 ValBestLoad (void)
 Default constructor. More...
 
 ValBestLoad (Space &home, const ValBranchOptions &vbo)
 Constructor for initialization. More...
 
int val (Space &home, Int::IntView x) const
 Return minimum value of view x. More...
 
ModEvent tell (Space &home, unsigned int a, Int::IntView x, int n)
 Tell $x=n$ (a = 0) or $x\neq n$ (a = 1) More...
 
- Public Member Functions inherited from Gecode::ValSelBase< Int::IntView, int >
 ValSelBase (void)
 Default constructor. More...
 
 ValSelBase (Space &home, const ValBranchOptions &vbo)
 Constructor for initialization. More...
 
EmptyValSelChoice choice (Space &home)
 Return choice. More...
 
EmptyValSelChoice choice (const Space &home, Archive &e)
 Return choice. More...
 
void commit (Space &home, const EmptyValSelChoice &c, unsigned a)
 Commit to choice. More...
 
void update (Space &home, bool share, ValSelBase &vs)
 Updating during cloning. More...
 
void dispose (Space &home)
 Delete value selection. More...
 

Additional Inherited Members

- Public Types inherited from Gecode::ValSelBase< Int::IntView, int >
typedef Int::IntView View
 View type. More...
 
typedef int Val
 Value type. More...
 
typedef EmptyValSelChoice Choice
 Choice type. More...
 
- Static Public Attributes inherited from Gecode::ValSelBase< Int::IntView, int >
static const unsigned int alternatives
 Number of alternatives. More...
 

Detailed Description

template<bool minimize>
class BACP::ValBestLoad< minimize >

Custom value selection class for a view-value branching.

The value choosen is the value with the minimum load if the parameter minimize is true, otherwize it chooses the value for maximum load.

Definition at line 226 of file bacp.cpp.

Constructor & Destructor Documentation

template<bool minimize>
BACP::ValBestLoad< minimize >::ValBestLoad ( void  )
inline

Default constructor.

Definition at line 229 of file bacp.cpp.

template<bool minimize>
BACP::ValBestLoad< minimize >::ValBestLoad ( Space home,
const ValBranchOptions vbo 
)
inline

Constructor for initialization.

Definition at line 232 of file bacp.cpp.

Member Function Documentation

template<bool minimize>
int BACP::ValBestLoad< minimize >::val ( Space home,
Int::IntView  x 
) const
inline

Return minimum value of view x.

Definition at line 236 of file bacp.cpp.

template<bool minimize>
ModEvent BACP::ValBestLoad< minimize >::tell ( Space home,
unsigned int  a,
Int::IntView  x,
int  n 
)
inline

Tell $x=n$ (a = 0) or $x\neq n$ (a = 1)

Definition at line 255 of file bacp.cpp.


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