help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] is there a typo in the wiki-entry for sorting?


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] is there a typo in the wiki-entry for sorting?
Date: Mon, 02 Sep 2013 22:58:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

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;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]