[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] cross two or more set
From: |
Heinrich Schuchardt |
Subject: |
Re: [Help-glpk] cross two or more set |
Date: |
Wed, 17 Jul 2013 10:43:32 +0200 (CEST) |
>> What I want to make is cross product set AB with C, is that possible
>> without using +/- matrix and/or slice? Because the final set is
>> exceptionally big one.
set C;
set AB, dimen 2;
set A := setof{(a, b) in AB} a;
set B := setof{(a, b) in AB} b;
set ABC, dimen 3 := AB cross C;
display A, B, ABC;
data;
set C := C1 C2;
set AB :=
(A1, B1)
(A1, B3)
(A3, B1)
(A3, B2)
(A4, B3)
(A5, B1);
end;
Best regards
Heinrich Schuchardt
http://www.xypron.de