Hi All,
I encounter the following errors: ''t is undefined" and "j is undefined". I am solving a supply-demand scheduling problem. I indexed the set of demand I and the set of suppliers J. T is the time horizon.
My objective is to jointly minimize the supplier and consumer costs:
Min CC+SC ;
s.t. CC=sum{t in 1..T} sum{i in I} z[i,t]*demand[i,t]*dc[t];
s.t. SC=sum{t in 1..T} sum{j in J} w[j,t]*supply[j,t]*sc[j,t];
. . .
Prior to the objective and the variable definition, I defined the sets and parameters. I don't really know why I am getting these errors for the 2nd constraint.
Thank you for helping me out.
--