Generated on Fri Aug 24 2012 04:52:17 for Gecode by doxygen 1.8.1.2
Linear constraints over Boolean variables

Functions

void Gecode::linear (Home home, const BoolVarArgs &x, IntRelType r, int c, IntConLevel icl=ICL_DEF)
 Post propagator for $\sum_{i=0}^{|x|-1}x_i\sim_r c$.
void Gecode::linear (Home home, const BoolVarArgs &x, IntRelType r, int c, BoolVar b, IntConLevel icl=ICL_DEF)
 Post propagator for $\left(\sum_{i=0}^{|x|-1}x_i\sim_r c\right)\Leftrightarrow b$.
void Gecode::linear (Home home, const BoolVarArgs &x, IntRelType r, IntVar y, IntConLevel icl=ICL_DEF)
 Post propagator for $\sum_{i=0}^{|x|-1}x_i\sim_r y$.
void Gecode::linear (Home home, const BoolVarArgs &x, IntRelType r, IntVar y, BoolVar b, IntConLevel icl=ICL_DEF)
 Post propagator for $\left(\sum_{i=0}^{|x|-1}x_i\sim_r y\right)\Leftrightarrow b$.
void Gecode::linear (Home home, const IntArgs &a, const BoolVarArgs &x, IntRelType r, int c, IntConLevel icl=ICL_DEF)
 Post propagator for $\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r c$.
void Gecode::linear (Home home, const IntArgs &a, const BoolVarArgs &x, IntRelType r, int c, BoolVar b, IntConLevel icl=ICL_DEF)
 Post propagator for $\left(\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r c\right)\Leftrightarrow b$.
void Gecode::linear (Home home, const IntArgs &a, const BoolVarArgs &x, IntRelType r, IntVar y, IntConLevel icl=ICL_DEF)
 Post propagator for $\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r y$.
void Gecode::linear (Home home, const IntArgs &a, const BoolVarArgs &x, IntRelType r, IntVar y, BoolVar b, IntConLevel icl=ICL_DEF)
 Post propagator for $\left(\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r y\right)\Leftrightarrow b$.

Detailed Description

All variants for linear constraints over Boolean variables share the following properties:

Function Documentation

void Gecode::linear ( Home  home,
const BoolVarArgs &  x,
IntRelType  r,
int  c,
IntConLevel  icl 
)

Post propagator for $\sum_{i=0}^{|x|-1}x_i\sim_r c$.

Definition at line 45 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const BoolVarArgs &  x,
IntRelType  r,
int  c,
BoolVar  b,
IntConLevel  icl 
)

Post propagator for $\left(\sum_{i=0}^{|x|-1}x_i\sim_r c\right)\Leftrightarrow b$.

Definition at line 129 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const BoolVarArgs &  x,
IntRelType  r,
IntVar  y,
IntConLevel  icl 
)

Post propagator for $\sum_{i=0}^{|x|-1}x_i\sim_r y$.

Definition at line 60 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const BoolVarArgs &  x,
IntRelType  r,
IntVar  y,
BoolVar  b,
IntConLevel  icl 
)

Post propagator for $\left(\sum_{i=0}^{|x|-1}x_i\sim_r y\right)\Leftrightarrow b$.

Definition at line 144 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const IntArgs &  a,
const BoolVarArgs &  x,
IntRelType  r,
int  c,
IntConLevel  icl = ICL_DEF 
)

Post propagator for $\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r c$.

Throws an exception of type Int::ArgumentSizeMismatch, if a and x are of different size.

Definition at line 75 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const IntArgs &  a,
const BoolVarArgs &  x,
IntRelType  r,
int  c,
BoolVar  b,
IntConLevel  icl = ICL_DEF 
)

Post propagator for $\left(\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r c\right)\Leftrightarrow b$.

Throws an exception of type Int::ArgumentSizeMismatch, if a and x are of different size.

Definition at line 159 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const IntArgs &  a,
const BoolVarArgs &  x,
IntRelType  r,
IntVar  y,
IntConLevel  icl = ICL_DEF 
)

Post propagator for $\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r y$.

Throws an exception of type Int::ArgumentSizeMismatch, if a and x are of different size.

Definition at line 94 of file linear-bool.cpp.

void Gecode::linear ( Home  home,
const IntArgs &  a,
const BoolVarArgs &  x,
IntRelType  r,
IntVar  y,
BoolVar  b,
IntConLevel  icl = ICL_DEF 
)

Post propagator for $\left(\sum_{i=0}^{|x|-1}a_i\cdot x_i\sim_r y\right)\Leftrightarrow b$.

Throws an exception of type Int::ArgumentSizeMismatch, if a and x are of different size.

Definition at line 177 of file linear-bool.cpp.