Hi… i have a precedence diagram of task and i want to list all predecessor and all successor of a task.
here is my data set is GAMS
Sets
I Tasks /i1*i12/
Alias
(I,ai,bi)
Precedence(ai,bi) Precedence Relation /i1.i4, i2.i5, i3.i6, i4.i7, i5.i7, i5.i8, i5.i9, i6.i9, i7.i10, i8.i10, i9.i11, i11.i12/
from this precedence relation, i can get the immediate predecessor from ai, but how can i list out all predecessor and all successor.
let say, i want all predecessor for task i7… then the all predecessor is i1,i4, and i5. i need to list out all predecessor for each task.