Functions | |
void | Gecode::circuit (Home home, const IntVarArgs &x, IntConLevel icl=ICL_DEF) |
Post propagator such that x forms a circuit. | |
void | Gecode::circuit (Home home, const IntArgs &c, const IntVarArgs &x, const IntVarArgs &y, IntVar z, IntConLevel icl=ICL_DEF) |
Post propagator such that x forms a circuit with costs y and z. | |
void | Gecode::circuit (Home home, const IntArgs &c, const IntVarArgs &x, IntVar z, IntConLevel icl=ICL_DEF) |
Post propagator such that x forms a circuit with cost z. |
void Gecode::circuit | ( | Home | home, |
const IntVarArgs & | x, | ||
IntConLevel | icl = ICL_DEF |
||
) |
Post propagator such that x forms a circuit.
x forms a circuit if the graph with edges where
has a single cycle covering all nodes.
Supports domain (icl = ICL_DOM) and value propagation (all other values for icl), where this refers to whether value or domain consistent distinct in enforced on x.
Throws the following exceptions:
Definition at line 43 of file circuit.cpp.
void Gecode::circuit | ( | Home | home, |
const IntArgs & | c, | ||
const IntVarArgs & | x, | ||
const IntVarArgs & | y, | ||
IntVar | z, | ||
IntConLevel | icl = ICL_DEF |
||
) |
Post propagator such that x forms a circuit with costs y and z.
x forms a circuit if the graph with edges where
has a single cycle covering all nodes. The integer array c gives the costs of all possible edges where
is the cost of the edge
. The variable z is the cost of the entire circuit. The variables y define the cost of the edge in x: that is, if
then
.
Supports domain (icl = ICL_DOM) and value propagation (all other values for icl), where this refers to whether value or domain consistent distinct in enforced on x for circuit.
Throws the following exceptions:
Definition at line 58 of file circuit.cpp.
void Gecode::circuit | ( | Home | home, |
const IntArgs & | c, | ||
const IntVarArgs & | x, | ||
IntVar | z, | ||
IntConLevel | icl = ICL_DEF |
||
) |
Post propagator such that x forms a circuit with cost z.
x forms a circuit if the graph with edges where
has a single cycle covering all nodes. The integer array c gives the costs of all possible edges where
is the cost of the edge
. The variable z is the cost of the entire circuit.
Supports domain (icl = ICL_DOM) and value propagation (all other values for icl), where this refers to whether value or domain consistent distinct in enforced on x for circuit.
Throws the following exceptions:
Definition at line 76 of file circuit.cpp.