Special values

Top  Previous  Next

A GDX file can contain special values, like +Inf, -Inf, Eps etc. The only special value used for charting is Eps, and will be treated as zero.

 

The use of Eps is required when we want to pass a value of zero in a GDX file because GAMS does not store zeroes.

 

For example, consider how the values for the parameter Points are generated in the file GraphDat.gms

 

delta = 2.0 * Pi / (Card(p) - 1);

x = 0.0;

Loop(p,

   Points(p, 'x') = Eps + sin(x);

   Points(p, 'y') = Eps + Cos(3*x);

   x = x + delta;

   );

 

This will assure that the zero values are stored in the symbol Points and can be charted correctly.