2005年全国数学建模dvd优化第二题是如何用lingo编程求解。
型号:
标题DVD贷款;
集合:
DVD/1..100/:合计;
用户/1..1000/;
link(用户,DVD):pianai,x;
需要(用户,DVD):徐秋;
A/1..1000/:d;
B/1..1000/:f;
端集
min = @ SUM(DVD(I):total)/@ SUM(link(I,j): pianai(i,j)*x(i,j));
@ FOR(A:@ BIN(d));
@FOR(链接:@ BIN(x));
@ sum(A(I):(d))= 600;
@ FOR(B(I):f(I)= @ sign(@ sum(DVD(j):x(I,j))-1)+1);
@ SUM(B(I):f(I))& gt;=950;
@FOR(DVD(j):(@sum(user(i):x(i,j)*d(i))/2+@sum(user(i):x(i,j)*(1-d(I)))& lt;= total(j));
@FOR(user(i):@sum(DVD(j):x(i,j))=@sum(DVD(j):徐秋(I,j)*x(i,j));
@FOR(user(i):@sum(DVD(j):徐秋(I,j)*x(i,j))= 3 *(d(I)+1)* f(I);
@FOR(user(i):@SUM(DVD(j):x(i,j))= 3);
数据:
pianai=@OLE('D:\data00.xls ',' data 00 ');
徐秋=@OLE('D:\eij.xls ',' e ');
结束数据
结束