急!lingo问题!谁帮我找下错
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/08/15 04:25:52
急!lingo问题!谁帮我找下错
MODEL:!库存问题的模型;
SETS:
yuefen/1..12/:a;!12个月份,每月拥有量为a;
chanpin/1,2/:b,d;!2个产品;
yue_chan(yuefen,chanpin):x,c,bx;!成产单位钱数为c(i,j),决策变量为x(i,j);
ENDSETS
dATA:
a=120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000;
c=5,8,
5,8,
5,8,
5,8,
5,8,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7;
d=1,
2;
bx=10000,10000,10000,10000,30000,30000,30000,30000,30000,100000,100000,100000,
50000,50000,15000,15000,15000,15000,15000,15000,15000,50000,50000,50000;
ENDDATA
@for(yuefen(i):
@sum(chanpin(j):x(i,j))
MODEL:!库存问题的模型;
SETS:
yuefen/1..12/:a;!12个月份,每月拥有量为a;
chanpin/1,2/:b,d;!2个产品;
yue_chan(yuefen,chanpin):x,c,bx;!成产单位钱数为c(i,j),决策变量为x(i,j);
ENDSETS
dATA:
a=120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000;
c=5,8,
5,8,
5,8,
5,8,
5,8,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7;
d=1,
2;
bx=10000,10000,10000,10000,30000,30000,30000,30000,30000,100000,100000,100000,
50000,50000,15000,15000,15000,15000,15000,15000,15000,50000,50000,50000;
ENDDATA
@for(yuefen(i):
@sum(chanpin(j):x(i,j))
![急!lingo问题!谁帮我找下错](/uploads/image/z/2166559-7-9.jpg?t=%E6%80%A5%21lingo%E9%97%AE%E9%A2%98%21%E8%B0%81%E5%B8%AE%E6%88%91%E6%89%BE%E4%B8%8B%E9%94%99)
MODEL:!库存问题的模型;
SETS:
yuefen/1..12/:a;!12个月份,每月拥有量为a;
chanpin/1,2/:b,d;!2个产品;
yue_chan(yuefen,chanpin):x,c,bx;!成产单位钱数为c(i,j),决策变量为x(i,j);
ENDSETS
dATA:
a=120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000;
c=5,8,
5,8,
5,8,
5,8,
5,8,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7;
d=1,
2;
bx=10000,10000,10000,10000,30000,30000,30000,30000,30000,100000,100000,100000,
50000,50000,15000,15000,15000,15000,15000,15000,15000,50000,50000,50000;
ENDDATA
@for(yuefen(i):
@sum(chanpin(j):x(i,j))
SETS:
yuefen/1..12/:a;!12个月份,每月拥有量为a;
chanpin/1,2/:b,d;!2个产品;
yue_chan(yuefen,chanpin):x,c,bx;!成产单位钱数为c(i,j),决策变量为x(i,j);
ENDSETS
dATA:
a=120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000,120000;
c=5,8,
5,8,
5,8,
5,8,
5,8,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7,
4.5,7;
d=1,
2;
bx=10000,10000,10000,10000,30000,30000,30000,30000,30000,100000,100000,100000,
50000,50000,15000,15000,15000,15000,15000,15000,15000,50000,50000,50000;
ENDDATA
@for(yuefen(i):
@sum(chanpin(j):x(i,j))