BACP::ValBestLoad< minimize > Class Template Reference
Custom value selection class for a view-value branching. More...
Public Member Functions | |
| ValBestLoad (void) | |
| Default constructor. | |
| ValBestLoad (Space &home, const ValBranchOptions &vbo) | |
| Constructor for initialization. | |
| int | val (Space &home, Int::IntView x) const |
| Return minimum value of view x. | |
| ModEvent | tell (Space &home, unsigned int a, Int::IntView x, int n) |
Tell (a = 0) or (a = 1) | |
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.
Constructor & Destructor Documentation
template<bool minimize>
| BACP::ValBestLoad< minimize >::ValBestLoad | ( | void | ) | [inline] |
template<bool minimize>
| BACP::ValBestLoad< minimize >::ValBestLoad | ( | Space & | home, |
| const ValBranchOptions & | vbo | ||
| ) | [inline] |
Member Function Documentation
template<bool minimize>
| int BACP::ValBestLoad< minimize >::val | ( | Space & | home, |
| Int::IntView | x | ||
| ) | const [inline] |
template<bool minimize>
| ModEvent BACP::ValBestLoad< minimize >::tell | ( | Space & | home, |
| unsigned int | a, | ||
| Int::IntView | x, | ||
| int | n | ||
| ) | [inline] |
The documentation for this class was generated from the following file:
- examples/bacp.cpp (Revision: 11473)

(a = 0) or
(a = 1)