当前位置:网站首页>Teacher wangshuyao's notes on operations research course 08 linear programming and simplex method (simplex method)
Teacher wangshuyao's notes on operations research course 08 linear programming and simplex method (simplex method)
2022-07-29 06:53:00 【three billion seventy-seven million four hundred and ninety-one】
The first 8 speak Linear programming and simplex method ( Simplex method )
Simplex method
give an example
See textbook P28 example 2-6.
How to find a base
Observation
Direct observation , And then verify . If the base is not found, replace the sub matrix and re verify .
Generally speaking, the number of possible bases is C n m C_{n}^{m} Cnm, among n n n Is the number of unknown variables , m m m It's a matrix A A A The rank of .
Simplification first approach ( recommend )
Because the principle of base selection is that the simpler the better , Preferably, the identity matrix E E E, Easy to calculate .
Therefore, the coefficient matrix and the free term can be transformed first , It is better to transform the diagonal elements into 1 The submatrix of , Or a submatrix with positive elements on the diagonal , Or at least 0 More submatrixes . One reason is that the simpler the submatrix is , The less computation after that , Second, if the elements on the diagonal of the submatrix are positive , Then the basic solution must be the basic feasible solution . And if the initial constraints are ≤ \le ≤, And the free term is positive , Then a coefficient of 1 Of relaxation variables , It must be found in the coefficient matrix that the elements on the diagonal are 1 The submatrix of .
If there is no or it is not easy to find a base with positive elements on the diagonal , Then you can introduce artificial variables , namely “ Big M Law .
How to determine X ( i ) X^{(i)} X(i) Is it the best solution
The basic idea : By shifting the term of the equation , Use non base variables to represent base variables , Then substitute it into the objective function , Observe the value coefficient of the changed objective function , Analyze whether the current solution is optimal .
A more concise approach : Inspection number ( σ ) (\sigma) (σ) Discrimination .
summary
When solving the equation through the basis , Although the inverse matrix of the base can be used for solving operations , But this method of operation is not convenient for the subsequent discussion of the optimal solution , Therefore, it is still transformed into the form of original equations for analysis and solution . By simplifying and moving items , Let the non base variable be 0 To solve the . Use non base variables to represent base variables , Then substitute it into the objective function , Observe the value coefficient of the changed objective function , Analyze whether the current solution is optimal , And determine whether the base vector needs to be replaced . Then iterate the above process to find the optimal solution .
In the process , It is best to choose the identity matrix as the base , Because the basic solution thus solved must be the basic feasible solution. How to judge X ( i ) X^{(i)} X(i) Whether it is the optimal solution has a more concise method , Inspection number ( σ ) (\sigma) (σ) Discrimination .
边栏推荐
- 【干货备忘】50种Matplotlib科研论文绘图合集,含代码实现
- MySQL 事物四种隔离级别分析
- 王树尧老师运筹学课程笔记 04 线性代数基础
- Ali gave several SQL messages and asked how many tree search operations need to be performed?
- apisix健康检查测试
- 【冷冻电镜|论文阅读】A feature-guided, focused 3D signal permutation method for subtomogram averaging
- Execution sequence of finally and return
- 没那么简单的单例模式
- Etcd principle
- Case supplement, ATM
猜你喜欢

JMM memory model concept

【论文阅读 | 冷冻电镜】RELION 4.0 中新的 subtomogram averaging 方法解读

Relationship between subnet number, host number and subnet mask

Hongke share | let you have a comprehensive understanding of "can bus error" (III) -- can node status and error counter

王树尧老师运筹学课程笔记 04 线性代数基础

How to write controller layer code gracefully?

JMM 内存模型概念

Recurrent neural network RNN

apisix健康检查测试

游戏资产的革命
随机推荐
吴恩达老师机器学习课程笔记 04 多元线性回归
MySql基础知识(高频面试题)
ping 原理
Thinkphp5 frequently asked questions
ECCV 2022丨轻量级模型架ParC-Net 力压苹果MobileViT代码和论文下载
5G控制面协议之N2接口
Case supplement, ATM
Invalid access control
Annotation
Base64与File之间的相互转化
C语言数据类型
STP spanning tree principle and example of election rules
软件定义边界SDP
Share some tips for better code, smooth coding and improve efficiency
【冷冻电镜】RELION4.0 pipeline命令总结(自用)
Analysis of four isolation levels of MySQL things
王树尧老师运筹学课程笔记 05 线性规划与单纯形法(概念、建模、标准型)
猜数字//第一次使用生成随机数
王树尧老师运筹学课程笔记 07 线性规划与单纯形法(标准型、基、基解、基可行解、可行基)
Embedding understanding + code