- Consider a directed graph
G=(V, A)
, whereV = V_1 \cup V_2
is the set of vertices andA
is the set of directed arcs. - Let
\alpha(W, W') = {(u,v) | u \in W \land v \in W'}
. That is the set of arcs leaving fromW
toW'
. - For each arc
(u,v) \in A
, there is an associated variablex_{(u,v)}
- Now, I want to create a constraint that:
\forall S \subset V: \sum_{(u,v) \in \alpha(V_1, V_2)} x_{(u,v)} \geq 2.
My question is how can I define the \alpha
function in Zimpl? From its document (at http://zimpl.zib.de/download/zimpl.pdf), an argument of a function can only be a number or a string.