GDX Table structure Topic is solved

questions about GAMS' tools
Post Reply
Youngghee
User
User
Posts: 9
Joined: 5 years ago

GDX Table structure

Post by Youngghee »

Hello,

When I make GDX table with following code. two different table structure are coming. How could I enforce the case-1 style?

Code: Select all

set i /i1 * i10/;
set j /j1 * J3/;
parameter a(i, j);
a(i, j) = uniform(1, 10);
execute_unload 'gdxlayout1.gdx' a;

parameter b(i, j);
b(i, j) = uniform(1, 10);
execute_unload 'gdxlayout2.gdx' b;
image.png
image.png (17.62 KiB) Viewed 30434 times
Thanks for your information in advance.
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: GDX Table structure

Post by dirkse »

Youngghee,

There is no difference in the GDX data. You may want to view the same data in different ways, so the GDX viewer allows you to change the view. It also memorizes your previous choice.

If you reset the view (i.e. hit the reset button in the viewer) in case-1, it will look like case-2, i.e. the default.

-Steve
Youngghee
User
User
Posts: 9
Joined: 5 years ago

Re: GDX Table structure

Post by Youngghee »

Thanks for your information.
After clicking the reset button, Case-1 style was changed to Case-2 style. So, it means there are no option to enforce the case-1 style with two dimension parameter.

- Youngghee
Post Reply