help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Cardinality function in MathProg


From: Andrew Makhorin
Subject: Re: [Help-glpk] Cardinality function in MathProg
Date: Tue, 21 Feb 2006 17:42:05 +0300

> In the set, a dummy index plus
> 1 points to the next element. Is it cyclic? 1..5, j=5,
> i=j+1, i=1? 

No, it is not. You should write something like

   i = if j < 5 then j + 1 else 1

or more intricate

   i = mod(j,5) + 1






reply via email to

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