早教吧 育儿知识 作业答案 考试题库 百科 知识分享

lingo怎么复制赋值t=@sum(city:x*@sum(town:n)));Model:sets:city/1..6/:x,y;town/1..8/:s;link(city,town):c,n,t;endsetsdata:n=101010110000110010110110010101010101001101001011;y=504090304555;enddatamax=@

题目详情
lingo怎么复制赋值 t=@sum(city:x*@sum(town:n)));
Model:
sets:
city/1..6/:x,y;
town/1..8/:s;
link(city,town):c,n,t;
endsets
data:
n=1 0 1 0 1 0
1 1 0 0 0 0
1 1 0 0 1 0
1 1 0 1 1 0
0 1 0 1 0 1
0 1 0 1 0 1
0 0 1 1 0 1
0 0 1 0 1 1;
y= 50 40 90 30 45 55;
enddata
max=@sum(city:x*(@sum(link:L*R*t))-@sum(city:Y));
t=@sum(city:x*@sum(town:n)));
L=100;
R=100;
@for(city:@bin(x));
end
▼优质解答
答案和解析
Model:
sets:
city/1..6/:x,y;
town/1..8/:s;
link(city,town):c,n;
endsets
data:
n=1 0 1 0 1 0
1 1 0 0 0 0
1 1 0 0 1 0
1 1 0 1 1 0
0 1 0 1 0 1
0 1 0 1 0 1
0 0 1 1 0 1
0 0 1 0 1 1;
y= 50 40 90 30 45 55;
enddata
max=@sum(city:x*(@sum(link:L*R*t))-@sum(city:Y));
t=@sum(city(i):x(i)*@sum(town(j):n(i,j)));
L=100;
R=100;
@for(city:@bin(x));
end
看了lingo怎么复制赋值t=@s...的网友还看了以下: