Exporting internal data
Describes how to export internally-initialized data (calculated data).
The IDE also enables you to export
internal data in a model to a local .dat file.
This may be useful for debugging purposes. Internal data are all data
elements in a .mod file initialized by means
of the syntax
= “(some expression here)"
For example, Routes, Supplies, and Customers are
internal data in the following sample: (transp4.mod).
{route} Routes = { < p,<o,d> > | <p,o,d,c> in TableRoutes };
{connection} Connections = { c | <p, c> in Routes };
tuple supply{
string p;
string o;
}
{supply} Supplies = { <p,c.o> | <p,c> in Routes };
float Supply[Supplies] = ...;
tuple customer {
string p;
string d;
}
{customer} Customers = { <p,c.d> | <p,c> in Routes };
float Demand[Customers] = ...;
float Cost[Routes] = [ <t.p,<t.o,t.d>>:t.cost | t in TableRoutes ]; To export internal data from a model: