> 其他 >
有一lingo求解问题啊,谁能帮我看看哪里有问题啊?
集合段
sets:
yuanqu/I1 ..I6 /:f,z,d,g;
peisong/J1 ..J12 /:q;
links(yuanqu,peisong):a,x;
endsets
数据段
data:
f=8000,8000,6000,6800,8000,7500;
d=600,600,400,450,600,550;
g=0.9,0.9,1.2,1.1,0.9,1;
q=4696,4100,6678,4686,3264,11459,10819,6024,6541,5670,2947,5000;
a=5 6 10 20 25 21 15 10 12 18 20 18 8 6 4 10 15 20 18 11 7 6 17 20 22 20 15 6 10 16 20 16 13 10 16 21 20 18 14 7 4 15 19 22 16 15 12 16 12 15 20 18 9 4 7 13 15 20 8 10 6 10 15 22 20 8 44 8 11 18 17 7;
enddata
初始段
目标与约束段目标函数:
运输成本十建设固定成本十运作成本
min=@sum(links:a*x^1/2)+@sum(yuanqu(i):f(i)*z(i))+
@sum(yuanqu(i):g(i)*@sum(peisong(j):x(i,j)));
约束条件:
1.拟建p个物流园区
@sum(yuanqu(i):z(i))=p;
2.物流功能区域需求量约束
@for(peisong(j):@sum(yuanqu(i):x(i,j))=q(j));
3.物流园区物流容量约束
@for(yuanqu(i):@sum(peisong(j):x(i;j))
人气:156 ℃ 时间:2020-09-13 11:47:13
解答
sets:yuanqu/I1 .. I6 /:f,z,d,g;peisong/J1 ..J12 /:q;links(yuanqu,peisong):a,x;endsetsdata:f=8000,8000,6000,6800,8000,7500;d=600,600,400,450,600,550;g=0.9,0.9,1.2,1.1,0.9,1;q=4696,4100,6678,4686,3264,1...谢啦!!再问你个问题啊,我的lingo中限制整数变量为30个,但是我现在有78个,这个限制可以改吗?
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版