当前位置:网站首页>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 

边栏推荐
- An article takes you to understand the working principle of selenium in detail
- LeetCode:162. Looking for peak
- LeetCode:41. Missing first positive number
- Alibaba cloud server mining virus solution (practiced)
- Compétences en mémoire des graphiques UML
- LeetCode:236. The nearest common ancestor of binary tree
- Export IEEE document format using latex
- ant-design的走马灯(Carousel)组件在TS(typescript)环境中调用prev以及next方法
- LeetCode:剑指 Offer 04. 二维数组中的查找
- [Hacker News Weekly] data visualization artifact; Top 10 Web hacker technologies; Postman supports grpc
猜你喜欢

一改测试步骤代码就全写 为什么不试试用 Yaml实现数据驱动?

多元聚类分析

【shell脚本】——归档文件脚本

TP-LINK enterprise router PPTP configuration
![[embedded] print log using JLINK RTT](/img/22/c37f6e0f3fb76bab48a9a5a3bb3fe5.png)
[embedded] print log using JLINK RTT

I-BERT

Booking of tourism products in Gansu quadrupled: "green horse" became popular, and one room of B & B around Gansu museum was hard to find
![[today in history] February 13: the father of transistors was born The 20th anniversary of net; Agile software development manifesto was born](/img/70/d275009134fcbf9ae984c0f278659e.jpg)
[today in history] February 13: the father of transistors was born The 20th anniversary of net; Agile software development manifesto was born

SAP ui5 date type sap ui. model. type. Analysis of the parsing format of date

Detailed explanation of dynamic planning
随机推荐
TP-LINK enterprise router PPTP configuration
LeetCode:26. Remove duplicates from an ordered array
Simclr: comparative learning in NLP
LeetCode:836. 矩形重叠
Promise 在uniapp的简单使用
LeetCode:214. 最短回文串
LeetCode:836. Rectangle overlap
KDD 2022 paper collection (under continuous update)
Improved deep embedded clustering with local structure preservation (Idec)
[OC]-<UI入门>--常用控件-提示对话框 And 等待提示器(圈)
AcWing 2456. 记事本
五层网络体系结构
A convolution substitution of attention mechanism
[embedded] print log using JLINK RTT
Pytest之收集用例规则与运行指定用例
SAP ui5 date type sap ui. model. type. Analysis of the parsing format of date
Intel Distiller工具包-量化实现3
UML圖記憶技巧
MYSQL卸载方法与安装方法
LeetCode:39. Combined sum