model:
sets:
wh/wh1..wh6/:capacity;
ven/v1..v8/:demand;
links(wh,ven):cost,volume;
endsets
min=@sum(links(i,j):
cost(i,j)*volume(i,j));
@for(ven(j):
@sum(wh(i):volume(i,j))=demand(j));
@for(wh(i):
@sum(ven(j):volume(i,j))
model:
sets:
wh/wh1..wh6/:capacity;
ven/v1..v8/:demand;
links(wh,ven):cost,volume;
endsets
min=@sum(links(i,j):
cost(i,j)*volume(i,j));
@for(ven(j):
@sum(wh(i):volume(i,j))=demand(j));
@for(wh(i):
@sum(ven(j):volume(i,j))