help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] 3 indices data


From: Andrew Makhorin
Subject: Re: [Help-glpk] 3 indices data
Date: Sat, 15 Mar 2008 22:17:34 +0300

> I have a data with 3 indices c[i,j,k]. How can I write it in a MathProg
> format? I would like to fix k=1, give the matrix c[i,j,1], fix k=2, give
> the matrix c[i,j,2], and go on...

Like this:

param c :=
[*,*,1] 1 1 2.3
        1 2 4.5
        . . .
[*,*,2] 1 1 5.6
        1 2 7.8
        . . .
;

For details see the language reference included in the distribution.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]