Generated on Wed Nov 1 15:05:01 2006 for Gecode by doxygen 1.4.5

Linear constraints
[Using finite domain integers]

Collaboration diagram for Linear constraints:


Detailed Description

All variants for linear constraints share the following properties:


Functions

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


Function Documentation

void Gecode::linear Space *  home,
const IntVarArgs x,
IntRelType  r,
int  c,
IntConLevel  icl = ICL_DEF
 

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

Definition at line 34 of file linear.cc.

void Gecode::linear Space *  home,
const IntVarArgs x,
IntRelType  r,
IntVar  y,
IntConLevel  icl = ICL_DEF
 

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

Definition at line 84 of file linear.cc.

void Gecode::linear Space *  home,
const IntVarArgs 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$.

Definition at line 45 of file linear.cc.

void Gecode::linear Space *  home,
const IntVarArgs x,
IntRelType  r,
IntVar  y,
BoolVar  b,
IntConLevel  = ICL_DEF
 

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

Definition at line 96 of file linear.cc.

void Gecode::linear Space *  home,
const IntArgs a,
const IntVarArgs x,
IntRelType  r,
int  c,
IntConLevel  = 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 56 of file linear.cc.

void Gecode::linear Space *  home,
const IntArgs a,
const IntVarArgs x,
IntRelType  r,
IntVar  y,
IntConLevel  = 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 109 of file linear.cc.

void Gecode::linear Space *  home,
const IntArgs a,
const IntVarArgs x,
IntRelType  r,
int  c,
BoolVar  b,
IntConLevel  = 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 70 of file linear.cc.

void Gecode::linear Space *  home,
const IntArgs a,
const IntVarArgs x,
IntRelType  r,
IntVar  y,
BoolVar  b,
IntConLevel  = 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 124 of file linear.cc.

void Gecode::linear Space *  home,
const BoolVarArgs &  x,
IntRelType  r,
int  c,
IntConLevel  = ICL_DEF
 

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

Definition at line 140 of file linear.cc.

void Gecode::linear Space *  home,
const BoolVarArgs &  x,
IntRelType  r,
IntVar  y,
IntConLevel  = ICL_DEF
 

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

Definition at line 194 of file linear.cc.