User Tools

Site Tools


interfaces:merging_set_elements_from_several_gdx-files_into_one_basic_set

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

interfaces:merging_set_elements_from_several_gdx-files_into_one_basic_set [2007/08/10 10:21] (current)
Line 1: Line 1:
 +====== 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 code fragment, which shows how to o this, even if the gdx-files ​
 +files contain lots of common elements. ​
 +
 +First we generate some gdx files:
 +<​code>​
 +set a /a,b,c/;
 +set b /c,d,e/;
 +execute_unload "​seta",​a;​
 +execute_unload "​setb",​b;​
 +</​code>​
 +
 +Now we combine these gdx files into one:
 +<​code>​
 +set c;
 +$onmulti
 +$gdxin seta
 +$load c=a
 +$gdxin setb
 +$load c=b
 +display c;
 +</​code>​
 +which gives:
 +<​code>​
 +   ​1 ​ set c;
 +--- LOAD  c = 1:a
 +--- MERGE c = 1:b
 +   ​7 ​ display c;
 +
 +----      7 SET c
 +
 +a,    b,    c,    d,    e
 +</​code>​
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY interfaces/merging_set_elements_from_several_gdx-files_into_one_basic_set.txt ยท Last modified: 2007/08/10 10:21 (external edit)