当前位置:网站首页>Mathematical modeling 2004b question (transmission problem)
Mathematical modeling 2004b question (transmission problem)
2022-07-06 09:04:00 【Also far away】
One 、lingo Code
model:
sets:
mach /1..8/: v;
time /1..10/ ;
mt(mach, time): a, x, n, p;
endsets
data:
a =
70, 0, 50, 0, 0, 30, 0, 0, 0, 40,
30, 0, 20, 8, 15, 6, 2, 0, 0, 8,
110, 0, 40, 0, 30, 0, 20, 40, 0, 40,
55, 5, 10, 10, 10, 10, 15, 0, 0, 1,
75, 5, 15, 0, 15, 15, 0, 10, 10, 10,
95, 0, 10, 20, 0, 15, 10, 20, 0, 10,
50, 15, 5, 15, 10, 10, 5, 10, 3, 2,
70, 0, 20, 0, 20, 0, 20, 10, 15, 5;
p =
-505, 0, 124, 168, 210, 252, 312, 330, 363, 489,
-560, 0, 182, 203, 245, 300, 320, 360, 410, 495,
-610, 0, 152, 189, 233, 258, 308, 356, 415, 500,
-500, 150, 170, 200, 255, 302, 325, 380, 435, 800,
-590, 0, 116, 146, 188, 215, 250, 310, 396, 510,
-607, 0, 159, 173, 205, 252, 305, 380, 405, 520,
-500, 120, 180, 251, 260, 306, 315, 335, 348, 548,
-800, 153, 183, 233, 253, 283, 303, 318, 400, 800;
v = 2.2, 1, 3.2, 1.3, 1.8, 2, 1.4, 1.8;
enddata
! xi1 Is the fixed value ;
@for(mt(i,j): x(i, 1) = a(i,1));
@for(mt(i,j): x(i, 2) = a(i,2));
@for(mt(i,j)|j#ge#2 #and# j#le#9: x(i, j+1) <= x(i,j)+15*v(i));
@for(mt(i,j)|j#ge#2 #and# j#le#9: x(i, j+1) >= x(i,j)-15*v(i));
! And for 982.4;
@sum(mt(i, j): x(i,j)) = 982.4;
! xij <= aij;
@for(mt(i, j) : x(i, j) <= a(i, j));
! xij >= 0;
@for(mt(i, j) : x(i, j) >= 0);
! If xij = 0,nij = 0, otherwise nij = 1;
@for(mt(i, j) : n(i, j) = @if(x(i, j)#eq#0, 0, 1));
@for(mt : @bin(n));
! The goal is ;
c = @max(mt(i, j) : p(i, j)*n(i, j));
min = c;
end
Two 、 experimental result

3、 ... and 、 Be careful
lingo Solve local optimal solution by default , You need to set up and solve the global optimal solution as follows 

边栏推荐
- 超高效!Swagger-Yapi的秘密
- LeetCode:124. 二叉树中的最大路径和
- Using C language to complete a simple calculator (function pointer array and callback function)
- LeetCode:673. Number of longest increasing subsequences
- vb. Net changes with the window, scales the size of the control and maintains its relative position
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- LeetCode:41. 缺失的第一个正数
- A convolution substitution of attention mechanism
- 数学建模2004B题(输电问题)
- LeetCode41——First Missing Positive——hashing in place & swap
猜你喜欢
随机推荐
postman之参数化详解
Selenium+Pytest自动化测试框架实战(下)
【图的三大存储方式】只会用邻接矩阵就out了
Advanced Computer Network Review(3)——BBR
Intel Distiller工具包-量化实现3
Post training quantification of bminf
How to effectively conduct automated testing?
LeetCode:剑指 Offer 03. 数组中重复的数字
Advance Computer Network Review(1)——FatTree
Niuke winter vacation training 6 maze 2
Compétences en mémoire des graphiques UML
Advanced Computer Network Review(3)——BBR
什么是MySQL?MySql的学习之路是怎样的
数字人主播618手语带货,便捷2780万名听障人士
数学建模2004B题(输电问题)
LeetCode41——First Missing Positive——hashing in place & swap
力扣每日一题(二)
[OC]-<UI入门>--常用控件-UIButton
LeetCode:34. 在排序数组中查找元素的第一个和最后一个位置
LeetCode:34. Find the first and last positions of elements in a sorted array



![[OC-Foundation框架]-<字符串And日期与时间>](/img/75/e20064fd0066810135771a01f54360.png)




