[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [Help-glpk] Tables in GNU MathProg

**From**: |
Andrew Makhorin |

**Subject**: |
Re: [Help-glpk] Tables in GNU MathProg |

**Date**: |
Tue, 20 Jan 2009 22:03:50 +0300 |

>* Writing the variables' values is now ok, however is it also possible to*
>* write the values of constraints in a table? If yes, how?*
Such a feature is not yet implemented in mathprog. However, you could
duplicate corresponding linear form in the table statement that provides
the same effect. For example:
s.t. foo{i in I}: sum{j in J} a[i,j] * x[i,j] >= b[i];
. . .
solve;
. . .
table bar{i in I} OUT ... : ..., sum{j in J} a[i,j] * x[i,j], ... ;