I have the following constraint in the mathematical model
$$ \sum\limits_{j|(j,i)\in A}y_{ji} - \sum\limits_{j|(i, j)\in A}y_{ij} = \Bigg\{ \begin{matrix} d_iz_i & \mbox{ } \forall i \in C \\ \sum\limits_{i\in C}-d_iz_i & i = 0 \end{matrix} $$ How to implement this constraint in GLPK so that according to the value of i, the model behaves it correctly obeying the range of i?
Remembering that my difficulty is only in separate interactions
Somebody help me?
Something like:
I assume the set
Iis0..nandCis1..n.