求助,有大佬看看为什么老是提示w(i)的括号错误

liubingbiao 2021-05-07 02:00:55
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
...全文
1357 回复 打赏 收藏 举报
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复
相关推荐
发帖
其他

238

社区成员

其他产品/厂家
社区管理员
  • 其他
加入社区
帖子事件
创建了帖子
2021-05-07 02:00
社区公告
暂无公告