See How can I get AMPL to index over the “power set” consisting of all subsets of a set? in our new AMPL User Forum.