AMPL variable size set iteration
问题 I'm learning AMPL so that I can use it some time later in my programs. I have a small question though that I couldn't find its answer yet. Suppose I have a set , this set will contain some subsets, those subsets may differ in their dimensions. For example: set x:= (a,b,c) (a,c) (d,t,r,e,s); and so on .. Now I want to write a constraint which will have to deal with all elements in each subset (similar to a loop that will iterate between a , b , and c in the first subset, a and c in the second