I have put a decision variable w[x,y,t] on the right hand side of a constraint and it is reported that i and j are undefined. In the AMPL book, it uses avail[s] on the right hand side of a formula.
param r {(x,y) in stope};
var w {(x,y) in stope, t in 1..T} binary;
subject to rate {t in 1..T}:
sum {(x,y) in block}r[x,y]*w[x,y,t]<=r[x,y];
r[x,y] was defined previously as
2 1 200000
2 2 200000
2 3 200000
2 4 200000
2 5 200000
2 6 200000
. . .
. . .
7 7 200000;
Could anyone give me some advice? Thank you.