data;
param F :=
[0,0,1] := 1
[0,1,0] := 2
[1,0,0] := 3
;
end;
If F is a sparse parameter, I suggest you to define it with defaults, so you don't have to put all the data.
Example:
param M, default 2;
param F{0..M, 0..M, 0..M}, default 0;
var x >=0;
minimize cost: sum{m1 in 1..M, m2 in 1..M, m3 in 1..M} x*F[m1, m2, m3];
About your comment on gmpl documentation:
"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."Actually, it explains about slices (the lines I used on F data block), page 58, and about how to define parameters with slices, page 50.