help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Slices


From: Nilo Cesar Teixeira
Subject: [Help-glpk] Slices
Date: Sun, 6 Nov 2011 13:52:52 -0200

Hi all,

Is it possible to define a slice in which the non-asterisk indexes are sets ?

Let's say:

set S := {i in 1..10};
set M := M1 M2;
param QUOTA{M, S} integer;

data;

param QUOTA :=
[*, 1]
M1 4
        M2 10

[*, 2]
M1 4
        M2 10

[*, 3]
M1 4
        M2 10;

end;

...so in this example, the desired slice would be [*, {1..3}]

A workaround I thought is to define subsets which partition the values to be assigned and then define QUOTA for each of those subsets, but that's not a nice solution IMHO (better than duplicating though).

Thanks.

-- 
Nilo Cesar Teixeira
address@hidden


reply via email to

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