MCPcopy Create free account
hub / github.com/Gecode/gecode / BoolAssign

Class BoolAssign

gecode/int.hh:5147–5168  ·  view source on GitHub ↗

* \brief Which values to select for assignment * * \ingroup TaskModelIntBranch */

Source from the content-addressed store, hash-verified

5145 * \ingroup TaskModelIntBranch
5146 */
5147 class BoolAssign : public ValBranch<BoolVar> {
5148 public:
5149 /// Which value selection
5150 enum Select {
5151 SEL_MIN, ///< Select smallest value
5152 SEL_MAX, ///< Select largest value
5153 SEL_RND, ///< Select random value
5154 SEL_VAL_COMMIT ///< Select value according to user-defined functions
5155 };
5156 protected:
5157 /// Which value to select
5158 Select s;
5159 public:
5160 /// Initialize with selection strategy \a s
5161 BoolAssign(Select s = SEL_MIN);
5162 /// Initialize with random number generator \a r
5163 BoolAssign(Rnd r);
5164 /// Initialize with value function \a f and commit function \a c
5165 BoolAssign(BoolBranchVal v, BoolBranchCommit c);
5166 /// Return selection strategy
5167 Select select(void) const;
5168 };
5169
5170 /**
5171 * \defgroup TaskModelIntBranchAssign Value selection for assigning integer variables

Callers 4

BOOL_ASSIGN_MINFunction · 0.85
BOOL_ASSIGN_MAXFunction · 0.85
BOOL_ASSIGN_RNDFunction · 0.85
BOOL_ASSIGNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected