help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Multiple data files


From: Xypron
Subject: Re: [Help-glpk] Multiple data files
Date: Mon, 22 Dec 2008 17:29:05 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14

Hello Nigel,

>>Is it possible to spread a table over 2 data files, obviously with different tuple ID's.
A statement may not exceed the file end.
You can use a union of sets for your purpose.

t.mod
====
set S{1..2};
set U := S[1] union S[2];
display U;
end;

d1.mod
=====
data;
set S[1]:= b1 b2 b3;
end;

d2.mod
=====
data;
set S[2]:= a1 a2;
end;

$ glpsol -m t.mod -d d1.dat -d d2.dat

Display statement at line 3
U:
  b1
  b2
  b3
  a1
  a2

Best regards

Xypron

Attachment: xypron_glpk.vcf
Description: Vcard


reply via email to

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