GDXMERGEExample17 : Merges a number of GDX files into one
This program solves the trnsport model using different LP solvers.
After each run, all symbols are written to a GDX file and then
all GDX files are merged into one file. The variable X is read
from the merged file and displayed.
Files: GDXMERGEExample17.gms
$ontext
This program solves the trnsport model using different LP solvers.
After each run, all symbols are written to a GDX file and then
all GDX files are merged into one file. The variable X is read
from the merged file and displayed.
$offtext
$call gamslib trnsport
$call gams trnsport lp=bdmlp gdx=bdmlp
$call gams trnsport lp=cplex gdx=cplex
$call gams trnsport lp=xpress gdx=xpress
$call gams trnsport lp=conopt gdx=conopt
$call gams trnsport lp=minos gdx=minos
$call gams trnsport lp=snopt gdx=snopt
$call gdxmerge *.gdx
variable AllX(*,*,*);
$gdxin merged.gdx
$load AllX=X
$gdxin
option AllX:5:1:2;
display AllX.L;