当前位置:网站首页>【数学建模】常用基本模型总结
【数学建模】常用基本模型总结
2022-07-26 13:52:00 【沐兮Krystal】
线性规划(Linear Programming)
- 运筹学的一个重要分支——数学规划。线性规划是在一组线性约束条件的限制下,求一线性目标函数最大或最小的问题。
- 概念:可行解、最优解、可行域。
- Matlab中求解线性规划的命令为如下,x返回决策向量的取值;fval返回目标函数的最优值;f为价值向量。
[x,fval] = linprog(f,A,b,Aeq,beq,lb,ub)
- 很多看起来不是线性规划的问题,也可以通过变换转化为线性规划的问题来解决。
比如对于以下数学规划问题:
min ∣ x 1 ∣ + ∣ x 2 ∣ + ⋯ + ∣ x n ∣ s.t. A x ⩽ b ∘ \begin{array}{c} \min \left|x_{1}\right|+\left|x_{2}\right|+\cdots+\left|x_{n}\right| \\ \text { s.t. } \boldsymbol{A} \boldsymbol{x} \leqslant \boldsymbol{b}_{\circ} \end{array} min∣x1∣+∣x2∣+⋯+∣xn∣ s.t. Ax⩽b∘
只要注意到事实:
对任意的 x i x_i xi,存在 u i , v i ≥ 0 u_i,v_i \ge 0 ui,vi≥0 满足 x i = u i − v i , ∣ x i ∣ = u i + v i x_{i}=u_{i}-v_{i},\left|x_{i}\right|=u_{i}+v_{i } xi=ui−vi,∣xi∣=ui+vi
所以取 u i = x i + ∣ x i ∣ 2 , v i = ∣ x i ∣ − x i 2 u_{i}=\frac{x_{i}+\left|x_{i}\right|}{2}, v_{i}=\frac{\left|x_{i}\right|-x_{i}}{2} ui=2xi+∣xi∣,vi=2∣xi∣−xi,记 u = [ u 1 , ⋯ , u n ] T , v = [ v 1 , ⋯ , v n ] T \boldsymbol{u}=\left[u_{1}, \cdots, u_{n}\right]^{\mathrm{T}}, \boldsymbol{v}=\left[v_{1}, \cdots, v_{n}\right]^{\mathrm{T}} u=[u1,⋯,un]T,v=[v1,⋯,vn]T,
从而把模型改写成:
min ∑ i = 1 n ( u i + v i ) , s.t. { [ A , − A ] [ u v ] ⩽ b , u , v ⩾ 0 。 \begin{array}{ll} \min & \sum_{i=1}^{n}\left(u_{i}+v_{i}\right), \\ \text { s.t. } \quad & \left\{\begin{array}{l} {[\boldsymbol{A},-\boldsymbol{A}]\left[\begin{array}{l} \boldsymbol{u} \\ \boldsymbol{v} \end{array}\right] \leqslant \boldsymbol{b},} \\ \boldsymbol{u}, \boldsymbol{v} \geqslant 0 。 \end{array}\right. \end{array} min s.t. ∑i=1n(ui+vi),⎩⎨⎧[A,−A][uv]⩽b,u,v⩾0。
边栏推荐
- Subscription and publication of messages
- Force deduction ----- the number of words in the string
- 2022-07-26日报:Alphafold DB数据库建立一周年,官推盘点亮点研究
- Docker swarm cluster builds highly available MySQL active and standby
- Official announcement! Edweisen group and Baidu xirang reached a deep co creation cooperation
- 【OAuth2】八、OAuth2登录的配置逻辑-OAuth2LoginConfigurer和OAuth2ClientConfigurer
- LCL三相pwm整流器(逆变器)
- php使用sqlserver
- JS, e.pagex, pagey modal box drag
- Time complexity analysis of bubble sorting
猜你喜欢

.net6 encounter with the League of heroes - create a game assistant according to the official LCU API

Tianyi cloud web application firewall (edge cloud version) supports the detection and interception of Apache spark shell command injection vulnerabilities

Videojs to canvas pause, play, switch video

【Oauth2】五、OAuth2LoginAuthenticationFilter

Pytorch学习笔记(三)模型的使用、修改、训练(CPU/GPU)及验证

Pytorch学习笔记(二)神经网络的使用

Ten thousand words long article, talking about the blueprint of enterprise digital modeling

【OAuth2】八、OAuth2登录的配置逻辑-OAuth2LoginConfigurer和OAuth2ClientConfigurer

历时15年、拥有5亿用户的飞信,彻底死了

Zhou Wei: look for non consensual investment opportunities to accompany the founding team that delays satisfaction
随机推荐
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
周伟:寻找非共识性投资机会,陪伴延迟满足的创始团队
Upload pictures to get width and height
数据泄漏、删除事件频发,企业应如何构建安全防线?
Unicorn, valued at $1.5 billion, was suddenly laid off, and another track was cold?
The serialization class in unity is in JSON format
LCL三相pwm整流器(逆变器)
Segmentation fault (core dumped)
Re bet overseas: Alibaba, jd.com and SF again fight for "internal power"
The shell script in Jenkins fails to execute but does not exit by itself
Code cloud, which officially supports the pages function, can deploy static pages
2022-07-26日报:Alphafold DB数据库建立一周年,官推盘点亮点研究
[dark horse morning post] many apps under bytek have been taken off the shelves; The leakage of deoxidizer in three squirrels caused pregnant women to eat by mistake; CBA claimed 406million yuan from
一文学透MySQL表的创建和约束
Pytoch learning notes (II) the use of neural networks
[noip2003 popularity group] stack
Photoshop (cc2020) unfinished
从标注好的xml文件中截取坐标点(人脸框四个点坐标)人脸图像并保存在指定文件夹
基址寻址和变址寻址区别
Ten thousand words long article, talking about the blueprint of enterprise digital modeling