Search found 1 match

by manaljain
1 year ago
Forum: Archive Google Group
Topic: NEED HELP on set of sets
Replies: 10
Views: 13911

Re: NEED HELP on set

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