lingo 模型定义错误,求高手修改,model:sets:n/1..20/;a/1..13/:demand;links(n,a):b,x;endsetsdata:demand,b=@ole('D:\123.xls');enddatamin=@sum(links:b*x(i,j));@for(a(j):@sum(n(i):x(i,j))=1);@for(n(i):@sum(a(j):x(i,j))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 22:06:59
lingo模型定义错误,求高手修改,model:sets:n/1..20/;a/1..13/:demand;links(n,a):b,x;endsetsdata:demand,b=@ole(''D:\1

lingo 模型定义错误,求高手修改,model:sets:n/1..20/;a/1..13/:demand;links(n,a):b,x;endsetsdata:demand,b=@ole('D:\123.xls');enddatamin=@sum(links:b*x(i,j));@for(a(j):@sum(n(i):x(i,j))=1);@for(n(i):@sum(a(j):x(i,j))
lingo 模型定义错误,求高手修改,
model:
sets:
n/1..20/;
a/1..13/:demand;
links(n,a):b,x;
endsets
data:
demand,b=@ole('D:\123.xls');
enddata
min=@sum(links:b*x(i,j));
@for(a(j):
@sum(n(i):x(i,j))=1);
@for(n(i):
@sum(a(j):x(i,j))

lingo 模型定义错误,求高手修改,model:sets:n/1..20/;a/1..13/:demand;links(n,a):b,x;endsetsdata:demand,b=@ole('D:\123.xls');enddatamin=@sum(links:b*x(i,j));@for(a(j):@sum(n(i):x(i,j))=1);@for(n(i):@sum(a(j):x(i,j))
model:
sets:
n/1..20/;
a/1..13/:demand;
links(n,a):b,x;
endsets
data:
demand,b=@ole('D:\123.xls');
enddata
min=@sum(links:b*x);
@for(a(j):
@sum(n(i): x(i,j))=1);
@for(n(i):
@sum(a(j): x(i,j))