help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Set of sets


From: xypron
Subject: [Help-glpk] Set of sets
Date: Tue, 9 Dec 2008 15:46:18 -0800 (PST)

Hello Andrew,

sets of sets are not to be properly supported by GLPK:

The for statement does not support set of sets:
set M{1..2};
solve;
for {m in M}
  display m;
data;
set M[1] := 1 2;
set M[2] := A B C;

results in
M must be subscripted

Setof does not support set of sets:
set M := setof{ i in {1..3} } {1..i};

results in
integrand following setof{...} has invalid type

set M:= {{1..2}, {1..3}};
results in a set of tuples ( {1..2} cross {1..3} ). It should better return
a set of sets.

Same for
set M:= {({1..2}), ({1..3})};

Same for 
set A := {1..2};
set B := {1..3};
set M:= {A,B};

cf. http://lists.gnu.org/archive/html/help-glpk/2008-05/msg00043.html

Best regards

Xypron

-- 
View this message in context: 
http://www.nabble.com/Set-of-sets-tp20926306p20926306.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

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