Import a number of GDX and compare a result
Posted: Tue Aug 16, 2022 3:33 pm
Hello, hope you are all doing fine. I am sorry if this question has been answered previously, however I couldnt find any solution.
Suppose I ran a model 20 times, each with different parameters and solutions. I want to compare the result variables' levels for each run. I'm trying to do this automatically, as each run is stored in a different GDX - Results1,...,Results20. Is there a way to import those results for a different GAMS file, like in a loop:
SET
k 'number of import files' / k1*k20 /
PARAMETER
x(k);
for ( k=1 to 20 ...
[And I would import each GDX file]
I really don't want to dump this in an excel file, and process from it. Is there a way?
Thanks
Francisco
Suppose I ran a model 20 times, each with different parameters and solutions. I want to compare the result variables' levels for each run. I'm trying to do this automatically, as each run is stored in a different GDX - Results1,...,Results20. Is there a way to import those results for a different GAMS file, like in a loop:
SET
k 'number of import files' / k1*k20 /
PARAMETER
x(k);
for ( k=1 to 20 ...
[And I would import each GDX file]
I really don't want to dump this in an excel file, and process from it. Is there a way?
Thanks
Francisco