Hello,
I repeated this question in syntax section,
I wish to address set of paths to GAMS
q Nodes on path q (in chronological order)
1 1,2,6,5,7,8,7,10,4,3,1
2 1,11,12,14,16,9,13,3,1
3 1,2,6,5,7,8,17,15,10,9,4,3,1
4 1,3,4,9,10,16,14,13,12,11,1
5 1,11,12,14,13,9,10,15,8,7,4,6,2,1
as it looks like some nodes are repeated in the route, and the routes are not same in size,
also i have to define these sets:
A Set of arcs of the transportation network
N Set of all vertices
A q Set of arcs existing on path q
N q Set of vertices existing on path q
Q Set of all paths
Q i Set of all paths passing vertex i
D Set of all dummy vertices
D i Set of dummy vertices for vertex i
dummy vertices are for visiting nodes for more than 1 time,
how can i define it in the model?
because i have to use some of these sets in equations in models, like in the sum on q$Q or i$(N U D)
please help me,
best regards.
-Harry