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

modelisilldefined本人lingo菜鸟,这几天才刚开始学,跪求大侠helpmodel:sets:veh/k1,k2/:c,q,t;jiedian/n1,n2,n3,n4/;link(jiedian,jiedian):d,w;allowed(jiedian,jiedian,veh):x,m;endsetsmin=@sum(allowed:m(i,j,k)*d(i,j)*c(k)+m(i,j,k)*t(k)*2);@

题目详情
model is ill defined
本人lingo菜鸟,这几天才刚开始学,跪求大侠help
model:
sets:
veh/k1,k2/:c,q,t;
jiedian/n1,n2,n3,n4/;
link(jiedian,jiedian):d,w;
allowed(jiedian,jiedian,veh):x,m;
endsets
min=@sum(allowed:m(i,j,k)*d(i,j)*c(k)+m(i,j,k)*t(k)*2);
@for(allowed:x(i,j,k)=0);
@for(allowed:@gin(m(i,j,k)));
data:
d=0 200 70 720
200 0 270 840
70 270 0 650
720 840 650 0;
w=0 2831 2651 15920
2637 0 3516 1559
3910 1550 0 2484
19414 9428 5756 0;
c=2.15,2.45;
q=8000,12000;
t=100000,150000;
enddata
end
▼优质解答
答案和解析
model: sets: veh/k1,k2/:c,q,t; jiedian/n1,n2,n3,n4/; link(jiedian,jiedian):d,w; allowed(jiedian,jiedian,veh):x,m; endsets min=@sum(allowed(i,j,k):m(i,j,k)*d(i,j)*c(k)+m(i,j,k)*t(k)*2); @for(allowed(i,j,k):x(i,j,k)