Data files

By separating the model of the problem from the instance data, you can organize large problems better. Each set of data is stored in a separate data file.

You can organize large problems better by separating the model of the problem from the instance data. Each set of data is stored in a separate data file, with a .dat extension.

In this case, you store the instance data in one or more data files (.dat). Data files (.dat) store the values of the data used in the model. If you declare the data as suggested in this tutorial, your data file will look something like this:


n = 3;

c = [[0.0 1.5 2.3]
     [1.5 0.0 3.7]
     [2.3 3.7 0.0]];

Each data file may specify one or more connections to data sources, such as a relational database or a spreadsheet, to read and write data.