Demo entry 6745435

1

   

Submitted by 1 on May 27, 2018 at 04:52
Language: Matlab. Code size: 374 Bytes.

model:
sets:
DVD/1..100/:n;
user/1..1000/:b;
links(user,DVD):c,m;

endsets
data:
n=@ole('B:\MATLAB\R2016b\bin\附表.xls','C2:CX2');
m=@ole('B:\MATLAB\R2016b\bin\修正满意度导出.xlsx','A1:CV1000');
enddata

max=@sum(links(i,j):c(i,j)*m(i,j));
@for(links:@bin(c));
@for(user:@bin(b));
@for(DVD(j):@sum(user(i):c(i,j))<=n(j));
@for(user(i):@sum(DVD(j):c(i,j))=3*b);

end

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).