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]
127.0.0.1 external edit
interfaces:merging_set_elements_from_several_gdx-files_into_one_basic_set [2020/05/26 10:48] (current)
Frederik Fiand
Line 2: Line 2:
  
 Sometime one wants to merge set elements from several GDX-files into one basic Sometime one wants to merge set elements from several GDX-files into one basic
-set. Below is code fragment, which shows how to this, even if the gdx-files ​+set. Below is an example, which shows how to do this, even if the gdx-files ​
 files contain lots of common elements. ​ files contain lots of common elements. ​
  
Line 9: Line 9:
 set a /a,b,c/; set a /a,b,c/;
 set b /c,d,e/; set b /c,d,e/;
-execute_unload "seta",a; +$gdxout ​seta.gdx 
-execute_unload "setb",b;+$unload ​
 +$gdxout ​setb.gdx 
 +$unload ​b 
 +$gdxout
 </​code>​ </​code>​
  
Line 23: Line 26:
 display c; display c;
 </​code>​ </​code>​
-which gives:+which gives us in the lst file:
 <​code>​ <​code>​
-   ​1 ​ set c; +[...] 
---- LOAD  c = 1:a+ -- LOAD  c = 1:a 
 +[...]
 --- MERGE c = 1:b --- MERGE c = 1:b
-   ​7 ​ display c; +[...] 
- +----     15 SET c  
-----      ​7 ​SET c+
  
 a,    b,    c,    d,    e a,    b,    c,    d,    e
 </​code>​ </​code>​
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