AMPL > >Displays and Results > >How can I get the display command to list a set’s members in the same order that they were given in my data file?

Add the keyword ordered to the set’s declaration, after the set name. It can be useful to declare a set ordered for purposes of ordering the output, even when the ordering plays no role in the model.

Posted in: Displays and Results