lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 17:26:43
lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))
lingo编一个程序
sets:
supplyment/s1..s20/:supply;
receiver/r1..r20/:demand;
links(supplyment,receiver ):cost,v,s;
endsets
min=@sum(links:cost*s);
@for(receiver(J):
@sum(supplyment(I):v(I,J))=demand(J));
@for(supplyment(I):
@sum(receiver(J):v(I,J))
lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))
最后一句 集名后面带上下标