1
model:
sets:
ibianliang/1..8/:m;
jbianliang/1..8/:A,B,C,X;
endsets
min=4*A1+8*A2+8*A3+19*A4+11*A5+6*A6+22*A7+20*A8+14*B1+7*B2+7*B3+16*B4+12*B5+16*B6+23*B7+17*B8+20*C1+19*C2+11*C3+14*C4+6*C5+
15*C6+5*C7+10*C8+10*X1+8*X2+5*X3+10*X4+10*X5+8*X6+5*X7+8*X8;
@for(ibianliang(i):
@sum(jbianliang(j):Aj+Bj+Cj)