急!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/16 19:26:19
急!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))