1 / 31

Chapter 3

Chapter 3. The Simplex Algorithm. Standard Form. Before the simplex algorithm can be used to solve an LP, the LP must be converted into a problem where all the constraints are equations and all variables are nonnegative. An LP in this form is said to be in standard form.

morwen morwen
Download Presentation

Chapter 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 3 The Simplex Algorithm

  2. Standard Form • Before the simplex algorithm can be used to solve an LP, the LP must be converted into a problem where all the constraints are equations and all variables are nonnegative. An LP in this form is said to be in standard form.

  3. How to Convert an LP to Standard Form • A constraint i of an LP is a ≤ constraint: adding a slack variable (si ) to the i th constraint and adding the sign restriction si ≥ 0. A slack variable is the amount of the resource unused in the i th constraint • A constraint i of an LP is a ≥ constraint : subtracting the excess variable (ei ) from the i th constraint and adding the sign restriction ei ≥ 0. We define ei to be the amount by which i th constraint is over satisfied.

  4. How to Convert an LP to Standard Form The decision variables are: x1 = number of deluxe belts produced weekly x2 = number of regular belts produced weekly the appropriate LP is: max z = 4x1 + 3x2 s.t. x1 + x2 ≤ 40 (leather constraint) 2x1 +x2 ≤ 60 (labor constraint) x1, x2 ≥ 0 Is it in standard form?

  5. How to Convert an LP to Standard Form min z = 50 x1 + 20x2 + 30X2 + 80 x4 s.t. 400x1 + 200x2 + 150 x3 + 500x4 ≥ 500 3x1 + 2x2 ≥ 6 2x1 + 2x2 + 4x3 + 4x4 ≥ 10 2x1 + 4x2 + x3 + 5x4 ≥ 8 x1, x2, x3, x4 ≥ 0 Is it in standard form?

  6. How to Convert an LP to Standard Form max z = 20x1 + 15x2 s.t. x1 ≤ 100 x2 ≤ 100 50x1 + 35x2 ≤ 6000 20x1 + 15x2 ≥ 2000 x1, x2 > 0 Is it in standard form?

  7. Preview of the Simplex Algorithm Standard form: max ( or min) z = c1x1 + c2x2 + … +cnxn s.t. a11x1 + a12x2 + … + a1nxn =b1 a21x1 + a22x2 + … + a2nxn =b2 . . . . . . am1x1 + am2x2 + … + amnxn =bm xi ≥ 0 ( i = 1,2, …, n)

  8. Consider a system Ax = b of m linear equations in n variables (where n ≥ m). A basic solution to Ax = b is obtained by setting n – m variables equal to 0 and solving for the remaining m variables. This assumes that setting the n – m variables equal to 0 yields a unique value for the remaining m variables, or equivalently, the columns for the remaining m variables are linearly independent.

  9. Preview of the Simplex Algorithm To find a basic solution to Ax = b • choose a set of n – m variables (the nonbasic variables, or NBV) • set each of these variables equal to 0. • solve for the values of the n – (n – m) = m variables (the basic variables, or BV) that satisfy Ax = b.

  10. Preview of the Simplex Algorithm Different choices of nonbasic variables will lead to different basic solutions. Example: x1 + x2 = 10 x1 + x3 = 8 Find 3 basic solutions

  11. Preview of the Simplex Algorithm Any basic solution in which all variables are nonnegative is called a basic feasible solution ( or bfs). Theorem 1 The feasible region for any linear programming problem is a convex set. Also, if an LP has an optimal solution, there must be an extreme point of the feasible region that is optimal.

  12. Preview of the Simplex Algorithm • Theorem 2 For any LP, there is a unique extreme point of the LP’s feasible region corresponding to each basic feasible solution. Also, there is at least one bfs corresponding to each extreme point in the feasible region.

  13. Find bfs corresponding to extreme point max z = 4x1 + 3x2 s.t. x1 + x2 + s1 = 40 2x1 + x2 + s2 = 60 x1, x2, s1, s2 ≥ 0

  14. Adjacent Basic Feasible Solutions For any LP with m constraints, two basic feasible solutions are said to be adjacent if their sets of basic variables have m – 1 basic variables in common.(only one basic variable is changed) From previous example, what is adjacent of point C ?

  15. The Simplex Algorithm Procedure for maximization LPs Step 1 : Convert the LP to standard form Step 2 : Obtain a bfs (if possible) from the standard form Step 3 : Determine whether the current bfs is optimal Step 4 : If the current bfs is not optimal, determine which nonbasic variable should be come a basic variable and which basic variable should become a nonbasic variable to find a bfs with a better objective function value. Step 5 : Use ero’s to find a new bfs with a better objective function value. Go back to Step 3.

  16. Example of simplex algorithm using previous problem max z = 4x1 + 3x2 s.t. x1 + x2 + s1 = 40 2x1 + x2 + s2 = 60 x1, x2, s1, s2 ≥ 0

  17. Resource Desk Table Chair Lumber 8 board ft 6 board ft 1 board ft Finishing hours 4 hours 2 hours 1.5 hours Carpentry hours 2 hours 1.5 hours 0.5 hours Example of simplex algorithm

  18. Example of simplex algorithm • At present, 48 board feet of lumber, 20 finishing hours, 8 carpentry hours are available. A desk sells for $60, a table for $30, and a chair for $ 20. • Dakota believes that demand for desks and chairs is unlimited, but at most 5 tables can be sold. • Since the available resources have already been purchased, Dakota wants to maximize total revenue.

  19. Define: x1 = number of desks produced x2 = number of tables produced x3 = number of chairs produced. The LP is: max z = 60x1 + 30x2 + 20x3 s.t. 8x1 + 6x2 + x3 ≤ 48 (lumber constraint) 4x1 + 2x2 + 1.5x3 ≤ 20 (finishing constraint) 2x1 + 1.5x2 + 0.5x3 ≤ 8 (carpentry constraint) x2 ≤ 5 (table demand constraint) x1, x2, x3 ≥ 0

  20. Alternate Optimal solutions For some LPs, more than one extreme point is optimal. If an LP has more than one optimal solution, it has multiple optimal solutions. If there is no nonbasic variable (NBV) with a zero coefficient in row 0 of the optimal tableau, the LP has a unique optimal solution. Even if there is a nonbasic variable with a zero coefficient in row 0 of the optimal tableau, it is possible that the LP may not have alternative optimal solutions.

  21. Unbounded LPs For some LPs, there exist points in the feasible region for which z assumes arbitrarily large (in max problems) or arbitrarily small (in min problems) values. When this occurs, we say the LP is unbounded. An unbounded LP occurs in a max problem if there is a nonbasic variable with a negative coefficient in row 0 and there is no constraint that limits how large we can make this NBV. Specifically, an unbounded LP for a max problem occurs when a variable with a negative coefficient in row 0 has a non positive coefficient in each constraint

  22. The Big M Method The simplex method algorithm requires a starting bfs. Previous problems have found starting bfs by using the slack variables as our basic variables. If an LP have ≥ or = constraints, however, a starting bfs may not be readily apparent. In such a case, the Big M method may be used to solve the problem. Consider the problem below.

  23. The Big M Method x1 = number of ounces of orange soda in a bottle of Oranj x2 = number of ounces of orange juice in a bottle of Oranj min z = 2x1 + 3x2 st 0.5x1 + 0.25x2≤ 4 (sugar constraint) x1 + 3x2≥ 20 (Vitamin C constraint) x1 + x2 = 10 (10 oz in 1 bottle of Oranj) x1, x2, > 0

  24. The Big M Method Row 1: z - 2x1 - 3x2 = 0 Row 2: 0.5x1 + 0.25x2 + s1 = 4 Row 3: x1 + 3x2 - e2 = 20 Row 4: x1 + x2 = 10 In order to use the simplex method, a bfs is needed. To remedy the predicament, artificial variables are created. Row 1: z - 2x1 - 3x2 = 0 Row 2: 0.5x1 + 0.25x2 + s1 = 4 Row 3: x1 + 3x2 - e2 + a2 = 20 Row 4: x1 + x2 + a3 = 10

  25. The Big M Method In the optimal solution, all artificial variables must be set equal to zero. In order to force artificial to be zero, we add –Mai to the objective function for each ai. M represents some very large number. The modified Bevco LP in standard form then becomes:

  26. The Big M Method Row 1: z - 2x1 - 3x2 -Ma2 - Ma3 = 0 Row 2: 0.5x1 + 0.25x2 + s1 = 4 Row 3: x1 + 3x2 - e2 + a2 = 20 Row 4: x1 + x2 + a3 = 10 Modifying the objective function this way makes it extremely costly for an artificial variable to be positive. The optimal solution should force a2 = a3 =0.

  27. Description of the Big M Method • Modify the constraints so that the rhs of each constraint is nonnegative. Identify each constraint that is now an = or ≥ const. • Convert each inequality constraint to standard form (add a slack variable for ≤ constraints, add an excess variable for ≥ consts). • For each ≥ or = constraint, add artificial variables. Add sign restriction ai≥ 0. • Let M denote a very large positive number. Add (for each artificial variable) Mai to min problem objective functions or -Mai to max problem objective functions. • Since each artificial variable will be in the starting basis, all artificial variables must be eliminated from row 0 before beginning the simplex. Remembering M represents a very large number, solve the transformed problem by the simplex.

  28. The Big M Method If all artificial variables in the optimal solution equal zero, the solution is optimal. If any artificial variables are positive in the optimal solution, the problem is infeasible. The Bevco example continued: Initial Tableau

  29. The Big M Method

  30. The Big M Method

More Related

玻璃钢生产厂家工艺玻璃钢雕塑定制厂家铜陵美陈商场浦口商场春季美陈太原玻璃钢雕塑供应陇南玻璃钢雕塑工程圣诞节日商场美陈广东大型商场美陈研发贵州商场美陈造型武威抽象人物玻璃钢雕塑哪家好室内校园玻璃钢景观雕塑定做浙江艺术商场美陈批发价武汉动物雕塑玻璃钢图片铜陵水果玻璃钢雕塑多少钱衢州玻璃钢雕塑凳子运城标识玻璃钢仿铜雕塑厂家深圳超市商场美陈订购忻州玻璃钢仿真水果雕塑定制包头玻璃钢雕塑定制价格东莞玻璃钢卡通老鼠雕塑玻璃钢雕塑是一体成型吗沧州玻璃钢雕塑定制定做雕塑玻璃钢通化玻璃钢雕塑厂贵港玻璃钢雕塑定做宣城人物玻璃钢雕塑报价艺术商场美陈怎么样杭州定制玻璃钢人物雕塑深圳玻璃钢牛雕塑深圳景观灯玻璃钢花盆中牟玻璃钢人物雕塑香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声单亲妈妈陷入热恋 14岁儿子报警汪小菲曝离婚始末遭遇山火的松茸之乡雅江山火三名扑火人员牺牲系谣言何赛飞追着代拍打萧美琴窜访捷克 外交部回应卫健委通报少年有偿捐血浆16次猝死手机成瘾是影响睡眠质量重要因素高校汽车撞人致3死16伤 司机系学生315晚会后胖东来又人满为患了小米汽车超级工厂正式揭幕中国拥有亿元资产的家庭达13.3万户周杰伦一审败诉网易男孩8年未见母亲被告知被遗忘许家印被限制高消费饲养员用铁锨驱打大熊猫被辞退男子被猫抓伤后确诊“猫抓病”特朗普无法缴纳4.54亿美元罚金倪萍分享减重40斤方法联合利华开始重组张家界的山上“长”满了韩国人?张立群任西安交通大学校长杨倩无缘巴黎奥运“重生之我在北大当嫡校长”黑马情侣提车了专访95后高颜值猪保姆考生莫言也上北大硕士复试名单了网友洛杉矶偶遇贾玲专家建议不必谈骨泥色变沉迷短剧的人就像掉进了杀猪盘奥巴马现身唐宁街 黑色着装引猜测七年后宇文玥被薅头发捞上岸事业单位女子向同事水杯投不明物质凯特王妃现身!外出购物视频曝光河南驻马店通报西平中学跳楼事件王树国卸任西安交大校长 师生送别恒大被罚41.75亿到底怎么缴男子被流浪猫绊倒 投喂者赔24万房客欠租失踪 房东直发愁西双版纳热带植物园回应蜉蝣大爆发钱人豪晒法院裁定实锤抄袭外国人感慨凌晨的中国很安全胖东来员工每周单休无小长假白宫:哈马斯三号人物被杀测试车高速逃费 小米:已补缴老人退休金被冒领16年 金额超20万

玻璃钢生产厂家 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化