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
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk