Sorting Functions

gsl_sort(x)

This function sorts the input parameters. The function can be used in AMPL to sort a variable or a parameter Example:

set A;
param p{a in A} default 5-a;
call gsl_sort({a in A} d[a]);