Hello,

I am formulating a MIP problem in OPL where input data (including several matrices) are in the data file *.dat. It looks that I can easily define dense matrices in OPL data files, e.g.:

Capacity = [ 18209, 7692, 1333, 924, 26638, 61188, 13360 ];

But, what about sparse matrices. I know that AMLP allows for such things:

param x[1, 1] -1.0

[1, 2] -0.8

[1, 5] -1.0

[2, 1] -1.0

[2, 2] -0.1

where only non-zero entries are provided. Is it possible to do something like that in OPL? Can I do it without tuples?

Cheers,

Marek