How to express a parameter matrix as a data block in MathProg?

Yuri <[email protected]>
Newsgroups gmane.comp.gnu.glpk
Message-ID <[email protected]>
I need to have a large tabulated parameter matrix, like this:

param m=7;
param F{1..m, 1..m, 1..m};   # tabulated function
I would like to define these numeric values in a data block (data; ...; 
end;) in a separate file.

MathProg documentation http://gusek.sourceforge.net/gmpl.pdf doesn't 
explain how to do this. It talks mostly about how to define sets, and 
seems to focus on 2-dimensional data.

How to define values of F[i1,i2,i3]?

My simple attempt:

data;
F[0,0,0] = 0.0083987;
F[0,0,1] = 0.01222470;
F[0,0,2] = 0.05272440;

...

end;

failed:
my.data:2: syntax error in data section


Thank you,

Yuri



_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.