|
Identifying contents with $Load |
Top Previous Next |
|
One can have GAMS tell you the general contents of a GDX file by using the $Load command without the name of a parameter. Namely inserting a sequence like
$GDXin tran2 $load $GDXin
yields (gdxcontents.gms)
Content of GDX C:\GAMS\GAMSPDF\BIGONE\TRAN2.GDX Number Type Dim Count Name
1 Set 1 2 i canning plants 2 Set 1 3 j markets 3 Parameter 2 6 d distance in thousands of miles 4 Parameter 0 1 f freight in dollars per case per thousand miles 5 Parameter 1 2 dem capacity of plant i in cases 6 Parameter 1 3 sup demand at market j in cases 7 Variable 2 6 x shipment quantities in cases 8 Equation 1 2 supply observe supply limit at plant i
which lists the items present by Type, Name, Number of sets the item is defined over(Dim), number of elements in the file for this item (Count). |