help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] CSV outputting MathProg for summary report mapulation


From: Noli Sicad
Subject: Re: [Help-glpk] CSV outputting MathProg for summary report mapulation
Date: Thu, 1 Mar 2012 18:48:53 +1100

Thanks for the suggestion.

> Second line was incorrect.  A better approximation is:
>
> printf " Period,ClearfellArea,TRV,P1P2,SLOG,PULP\n" > "filename.csv"
> printf {(t,i,j) in HARVEST}: "%d,%f\n"  t, sum {(t,i,j) in HARVEST} Y[t,i,j]
>>> "filename.csv"
>

However, TRV, P1P2, SLOG, PULP are inputs so it changes from time to
time. It could not be hardcoded. Some of the data sets for case
studies, the YIELD may have PRODUCTS where are P1, P2, SLOG1, SLOG2,
K1, K2, C1, C2, PULP.

Any suggestion how to do this using

for {p in PRODUCT} { } syntax.

#######################

{p in PRODUCT: Status[p] in YIELD} <sum {(t,i,j) in HARVEST}
Y[t,i,j]*Yield[p,i,j] ~ (p)>;

Thanks.

Noli



reply via email to

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