Hi,

I want to print this constraint (below) as one of my reports i.e. screen output.

constraint
#############
subject to Mill_Demand_Allocation {dmd in DEMAND, t in PERIOD: t >=
MinPeriod[dmd] and t <= MaxPeriod[dmd]}:

  sum {(dmd,spec,prd) in GRADE_MIX, (t,spec,prd,orig,dest) in
WOODFLOW: dest = DemandDest[dmd]}

        U[t,spec,prd,orig,dest] = Demand[dmd];
#############


This is not working, I need help on this,

printf "\n";

printf "Log Allocation - Mill Demands \n";

printf "Period,Species,Products,Origin,Destination,Demand";

printf "\n";



for{dmd in DEMAND, t in PERIOD, (dmd,spec,prd) in GRADE_MIX,
(t,spec,prd,orig,dest) in WOODFLOW: dest = DemandDest[dmd]} {

  printf "%d,%s,%s,%s,%s,%.2f,%.2f,%.2f",

           t,spec,prd,orig,dest,

           (sum {(dmd,spec,prd) in GRADE_MIX, (t,spec,prd,orig,dest) in
WOODFLOW: dest =    DemandDest[dmd]} U[t,spec,prd,orig,dest]),

           Demand[dmd];

        printf "\n";

}

Any suggestion how to fix this thing above?

Thanks.

Noli

_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to