[Help-glpk] Set of sets

2008-12-09 Thread xypron
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

Re: [Help-glpk] Set of sets

2008-12-09 Thread xypron
Hello Andrew, I would like to be able to create a set of sets from data read with the table statement. Can this be achieved with the current syntax? Best regards Xypron -- View this message in context: http://www.nabble.com/Set-of-sets-tp20926306p20927045.html Sent from the Gnu - GLPK -

Re: [Help-glpk] Set of sets

2008-12-09 Thread Andrew Makhorin
I would like to be able to create a set of sets from data read with the table statement. Can this be achieved with the current syntax? Yes, though currently this cannot be performed efficiently for large sets. First you read data, say, in the following plain set: set RAW, dimen 3; and then

Re: [Help-glpk] set of sets

2008-05-28 Thread Andrew Makhorin
I am writing a timetabling program in GMPL and I #39;d like to write some incompatibility constraints of courses generally, e.g. I want to say that no more than 1 of {A1, A2, A3} can appear in the same slot, and no more than 1 of {B1, B2} can appear in the same slot something like.. set