急!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/11/09 10:36:51
急!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))