lingo 错误的1017
我在model后面打过:
model:
sets:
para/1..3/:y;
warehouses/wh1..wh3/:capacity;
vendors/v1..v4/:demand;
links(warehouses,vendors):cost,volume;
endsets
目标函数;
[email protected](links:cost*volume)+91y(1)+70y(2)+24y(3);
@for(para:@bin(y));
需求约束;
@for(vendors(J):
@sum(warehouses(I):volume(I,J))=demand(J));
产量约束;
@for(warehouses(I):
@sum(vendors(J):volume(I,J))
lingo 错误的1017
答案:1 悬赏:40 手机版
解决时间 2021-01-03 21:56
- 提问者网友:星軌
- 2021-01-03 12:47
最佳答案
- 五星知识达人网友:青尢
- 2021-01-03 13:56
model:
sets:
para/1..3/:y;
warehouses/wh1..wh3/: capacity;
vendors/v1..v4/: demand;
links(warehouses,vendors): cost, volume;
endsets
!目标函数;
[email protected](links: cost*volume)+91*y(1)+70*y(2)+24*y(3);
@for(para:@bin(y));
!需求约束;
@for(vendors(J):
@sum(warehouses(I): volume(I,J))=demand(J));
!产量约束;
@for(warehouses(I):
@sum(vendors(J): volume(I,J))
再问: 请问原来哪里错了?
再答: 少了乘号
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯