User Tools

Site Tools


interfaces:merging_set_elements_from_several_gdx-files_into_one_basic_set

Merging set elements from several GDX-files into one basic set

Sometime one wants to merge set elements from several GDX-files into one basic set. Below is an example, which shows how to do this, even if the gdx-files files contain lots of common elements.

First we generate some gdx files:

set a /a,b,c/;
set b /c,d,e/;
$gdxout seta.gdx
$unload a
$gdxout setb.gdx
$unload b
$gdxout

Now we combine these gdx files into one:

set c;
$onmulti
$gdxin seta
$load c=a
$gdxin setb
$load c=b
display c;

which gives us in the lst file:

[...]
 -- LOAD  c = 1:a
[...]
--- MERGE c = 1:b
[...]
----     15 SET c  

a,    b,    c,    d,    e
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY interfaces/merging_set_elements_from_several_gdx-files_into_one_basic_set.txt · Last modified: 2020/05/26 10:48 by Frederik Fiand