Sorting output

Top  Previous  Next

Suppose you are solving a model which is generates some output you would like to have in sorted order (arrayed from high to low).  This can be done either directly in GAMS or by using Rutherford and van der Eijk's RANK libinclude procedure.

 

Sorting in GAMS

Rank