NEED HELP on set of sets

Archive of Gamsworld Google Group
manaljain
User
User
Posts: 1
Joined: 1 year ago

Re: NEED HELP on set

Post by manaljain »

Hii, I want to convert following lines of code into gams

AMPL
set nodes; ## {1,2,3,4}
set pipes; ### {5,6,7,8}
set arcs within {i in nodes, j in nodes: i != j}; ### {(1,2),(1,3),...}

I am not able to convert line 3 in GAMS. set arcs should contain set of nodes and pair combination
Post Reply