liubingbiao 05月07日
求助,有大佬看看为什么老是提示w(i)的括号错误
model:
sets:
dmu/1..10/:S,T,P;
II/1..4/:s1;
OI/1..2/:s2;
inv(II,dmu):X;
outv(OI,dmu):Y;
endsets

data:
P=1,0,0,0,0,0,0,0,0,0;
X= 36,36,36,36,35,33,30,30,31,31,
16353,16353,16353,16353,16793,16718,15542,15542,15757,15757,
4688,5604,5906,6036,6203,4528,6071,7024,6886,6151,
0.362,0.319,0.286,0.279,0.271,0.31,0.441,0.525,0.623,0.573;

Y= 23391,21570,30185,28209,25612,22036,20238,18006,17092,15539,
261169,254275,253798,243464,223476,207337,225843,221021,215482,196067;
enddata

max=@sum(dmu:P*T);
@for(dmu(j):S(j)=@sum(II(i):w(i)*X(i,j)));
@for(dmu(j):T(j)=@sum(OI(i):u(i)*Y(i,j)));
S(j)>=T(j);
@sum(dmu:P*S)=1;
end
...全文
117 点赞 收藏 回复
写回复
回复

还没有回复,快来抢沙发~

发动态
发帖子
其他
创建于2009-10-09

93

社区成员

6647

社区内容

其他产品/厂家
社区公告
暂无公告