急!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);ENDSETSdATA:a=120000,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 06:02:06
急!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);ENDSETSdATA:a=120000,
急!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))
急!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);ENDSETSdATA:a=120000,
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))