Generated on Thu Jan 31 2019 20:56:44 for Gecode by doxygen 1.8.15

Classes

class  Gecode::DFA
 Deterministic finite automaton (DFA) More...
 
class  Gecode::TupleSet
 Class represeting a set of tuples. More...
 

Functions

void Gecode::extensional (Home home, const IntVarArgs &x, DFA d, IntPropLevel ipl=IPL_DEF)
 Post domain consistent propagator for extensional constraint described by a DFA. More...
 
void Gecode::extensional (Home home, const BoolVarArgs &x, DFA d, IntPropLevel ipl=IPL_DEF)
 Post domain consistent propagator for extensional constraint described by a DFA. More...
 
void Gecode::extensional (Home home, const IntVarArgs &x, const TupleSet &t, IntPropLevel ipl=IPL_DEF)
 Post propagator for $x\in t$. More...
 
void Gecode::extensional (Home home, const BoolVarArgs &x, const TupleSet &t, IntPropLevel ipl=IPL_DEF)
 Post propagator for $x\in t$. More...
 

Detailed Description

Extensional constraints support different ways of how the extensionally defined relation between the variables is defined. Examples include specification by a DFA or a table.

A DFA can be defined by a regular expression, for regular expressions see the module MiniModel.

Function Documentation

◆ extensional() [1/4]

void Gecode::extensional ( Home  home,
const IntVarArgs x,
DFA  d,
IntPropLevel  ipl = IPL_DEF 
)

Post domain consistent propagator for extensional constraint described by a DFA.

The elements of x must be a word of the language described by the DFA d.

Throws an exception of type Int::ArgumentSame, if x contains the same unassigned variable multiply. If shared occurences of variables are required, unshare should be used.

Definition at line 45 of file extensional.cpp.

◆ extensional() [2/4]

void Gecode::extensional ( Home  home,
const BoolVarArgs x,
DFA  d,
IntPropLevel  ipl = IPL_DEF 
)

Post domain consistent propagator for extensional constraint described by a DFA.

The elements of x must be a word of the language described by the DFA d.

Throws an exception of type Int::ArgumentSame, if x contains the same unassigned variable multiply. If shared occurences of variables are required, unshare should be used.

Definition at line 55 of file extensional.cpp.

◆ extensional() [3/4]

void Gecode::extensional ( Home  home,
const IntVarArgs x,
const TupleSet t,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $x\in t$.

  • Supports implementations optimized for speed (with propagation level ipl or-ed with IPL_SPEED, default) and memory consumption (with propagation level ipl or-ed with IPL_MEMORY).
  • Supports domain consistency (ipl = IPL_DOM, default) only.
  • Throws an exception of type Int::ArgumentSizeMismatch, if x and t are of different size.
  • Throws an exception of type Int::NotYetFinalized, if the tuple set t has not been finalized.
Warning
If the domains for the $x_i$ are not dense and have similar bounds, lots of memory will be wasted (memory consumption is in $ O\left(|x|\cdot\min_i(\underline{x_i})\cdot\max_i(\overline{x_i})\right)$ for the basic algorithm (epk = EPK_MEMORY) and additionally $ O\left(|x|^2\cdot\min_i(\underline{x_i})\cdot\max_i(\overline{x_i})\right)$ for the incremental algorithm (epk = EPK_SPEED).

Definition at line 65 of file extensional.cpp.

◆ extensional() [4/4]

void Gecode::extensional ( Home  home,
const BoolVarArgs x,
const TupleSet t,
IntPropLevel  ipl = IPL_DEF 
)

Post propagator for $x\in t$.

  • Supports implementations optimized for speed (with propagation level ipl or-ed with IPL_SPEED, default) and memory consumption (with propagation level ipl or-ed with IPL_MEMORY).
  • Supports domain consistency (ipl = IPL_DOM, default) only.
  • Throws an exception of type Int::ArgumentSizeMismatch, if x and t are of different size.
  • Throws an exception of type Int::NotYetFinalized, if the tuple set t has not been finalized.

Definition at line 98 of file extensional.cpp.