Error in Equation

What is the reason for this error? obj_location… f_location =E= sum((r,c), w(c)*d(r,c)*a_rc(r,c));
**** $171,171
Domain violation for set.

Sets
c /c1c3/
r /r1
r4/
i /i1i4/
j /j1
j4/
k /k1k3/
s /s1
s3/
N /c1c3,r1r4/;

Parameters
h(c) /c1 10, c2 15, c3 20/
w(c) /c1 100, c2 150, c3 200/
d(i,j) /i1.j1 10, i1.j2 15, i1.j3 20, i1.j4 25, i2.j1 20, i2.j2 10, i2.j3 25, i2.j4 30, i3.j1 30, i3.j2 25, i3.j3 10, i3.j4 35, i4.j1 40, i4.j2 30, i4.j3 35, i4.j4 10/
fc_r(r) /r1 150, r2 200, r3 250, r4 300/
time_ic(i,c) /i1.c1 10, i1.c2 15, i1.c3 20, i2.c1 20, i2.c2 10, i2.c3 25, i3.c1 30, i3.c2 25, i3.c3 10, i4.c1 40, i4.c2 30, i4.c3 35/
cap_rs(r,s) /r1.s1 50, r1.s2 75, r1.s3 100, r2.s1 75, r2.s2 100, r2.s3 125, r3.s1 100, r3.s2 125, r3.s3 150, r4.s1 50, r4.s2 150, r4.s3 100/
phi /10/;


variables
y_rs(r,s) binary
a_rc(c,r) binary;

Equations
obj_location… f_location =E= sum((r,c), w(c)*d(r,c)*a_rc(r,c));
**** $171,171
Domain violation for set

Hello,

You have declared parameter d(i,j) but you reference d(r,c). That won’t work.

-Steve

Thanks,
Should I use Alias?or what?