lzth.net
当前位置:首页 >> lingo 售书问题 指派问题 >>

lingo 售书问题 指派问题

同LS指定每人翻译且只翻译一种语言 model: sets: r/1..4/:; c/1..4/:; link(r,c):time,x; endsets data: time= 2 15 13 4 10 4 14 15 9 14 16 13 7 8 11 9; enddata min=@sum(link:x*time); @for(link:@bin(x)); @for(r(i):@sum(c(j):x(i,j))=1)...

sets: event /1..4/:; athlete /1..5/:; link(athlete,event):chji,x; endsets data: chji = 8.69.78.99.4 9.28.38.58.1 8.88.79.39.6 8.57.89.57.9 8.09.48.27.7; enddata max = @sum(link:chji * x); @sum(link:x) = 10; @for(athlete(I):@sum...

可以把原题一字不漏的全部给出来么 看程序无法理解你在做什么

model: sets: city/1..20/:; link(city,city):c,x; endsets max=@sum(link:c*x); @for(city(i):@sum(city(j):x(i,j))=1); @for(city(i):@sum(city(j):x(j,i))=1); @for(link:@bin(x)); data: c=0.284543 0.262458 0.250912 0.302275 0.269156 0....

给出全部问题 可以求解得 但你的问题不全 数据似乎也有不对劲

model: sets: a/1..5/; time(a,a):t,n;!n(i,j)=1则意味i去做j任务; endsets data: t=8 6 10 9 12 9 12 7 11 9 7 4 3 5 8 9 5 8 11 8 4 6 7 5 11; enddata [OBJ]min=@sum(time:t*n); @for(a(i):@sum(a(j):n(i,j))=1);!每个任务只给一个人做; @for...

model: sets: city/1,2,3/:; department/1..5/:; link(city,department):c,x; link1(department,department)|&2#gt#&1:a; link2(city,city):b; endsets data: a= 0 1000 1500 0 1400 1200 0 0 2000 700; b= 100 130 90 130 50 140 90 140 50; c=...

把具体问题给出来 这一类是Lingo比较擅长的问题 应该比较容易解决

理论上应该是不会有问题的 你把两个结果都比较一下 代进去计算一下看看

运输问题。 model: sets: factory/1,2,3/:product; warehouse/1,2,3,4,5/:demand; transport(factory,warehouse):cost,amount; endsets data: product=600,400,500; demand=200,250,300,550,200; cost=4,2,6,2,4 8,4,2,6,2 4,2,2,6,8; enddata @...

网站首页 | 网站地图
All rights reserved Powered by www.lzth.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com