作业帮 > 综合 > 作业

model:sets:year/1..3/:demand,new,nature,gouxie; gou/1..8/:pa

来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/18 08:57:04
model:sets:year/1..3/:demand,new,nature,gouxie; gou/1..8/:pay,xie; link(year,gou):c; endsets data
model:
sets:
year/1..3/:demand,new,nature,gouxie;
gou/1..8/:pay,xie;
link(year,gou):c;
endsets
data:
demand=150,160,170;
nature=46.15,41.55,37.12;
pay=5,7,5,4,6,5,5,3;
xie=25,36,32,15,31,28,22,12;
enddata
min=@sum(link(i,j):pay(j)*C(i,j));
@for(year:@gin(new));
new(1)+new(2)+new(3)=139;
gouxie(1)=@sum(link:c(1,j)*xie(j));
@for(year(k)|k#gt#1:gouxie(k)=gouxie(k-1)*0.9+@sum(gou:c(k,j)*xie(j)));
@for(year:gouxie(i)+nature(i)>demand(i));
@for( link:@bin(c) );
@for(year(i):@sum(gou(j):c(i,j)*pay(j))+new(i)
model:sets:year/1..3/:demand,new,nature,gouxie; gou/1..8/:pa
model:
sets:
year/1..3/:demand,new,nature,gouxie;
gou/1..8/:pay,xie;
link(year,gou):c;
endsets
data:
demand=150,160,170;
nature=46.15,41.55,37.12;
pay=5,7,5,4,6,5,5,3;
xie=25,36,32,15,31,28,22,12;
enddata
min=@sum(link(i,j):pay(j)*C(i,j));
@for(year:@gin(new));
new(1)+new(2)+new(3)=139;
gouxie(1)=@sum(gou(j):c(1,j)*xie(j));
@for(year(k)|k#gt#1:gouxie(k)=gouxie(k-1)*0.9+@sum(gou(j):c(k,j)*xie(j)));
@for(year(i):gouxie(i)+nature(i)>demand(i));
@for( link:@bin(c) );
@for(year(i):@sum(gou(j):c(i,j)*pay(j))+new(i)