[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Tables in GNU MathProg
From: |
Karol Sb |
Subject: |
Re: [Help-glpk] Tables in GNU MathProg |
Date: |
Tue, 24 Feb 2009 05:10:26 +0300 |
Hi!
I came across another issue:
Where should "solve" and "table .. OUT ..." statements stay in code?
before the data section? inside this section or maybe after?
Thanks for the answers!
BR
KDS
Andrew Makhorin wrote:
>
>> 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], ... ;
>
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
>
>
--
View this message in context:
http://www.nabble.com/Tables-in-GNU-MathProg-tp21202101p22171904.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.