Hello Marc,

I just updated
https://en.wikibooks.org/wiki/GLPK/GMPL_Workarounds#Sorted_output

Thanks for discovering this.

Best regards

Heinrich

On 02.09.2013 19:57, Meketon, Marc wrote:
The GLPK wiki discusses sorting – and I believe there is a typo in it.

Should the line:

         set ind{k in 1..card(I)} := setof{i in I: pos[i] = k} i;

really be:

         set ind{k in 1..card(I)} := setof{i in I: pos[i] = k-1} i;



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to