Mechanical Engineering Department 1 سورة النحل (78)

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Chapter 5: Linear Programming: The Simplex Method
Lecture 3 Linear Programming: Tutorial Simplex Method
Operation Research Chapter 3 Simplex Method.
SIMPLEX METHOD FOR LP LP Model.
Assignment (6) Simplex Method for solving LP problems with two variables.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Dr. Sana’a Wafa Al-Sayegh
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Linear Inequalities and Linear Programming Chapter 5
The Simplex Method: Standard Maximization Problems
5.4 Simplex method: maximization with problem constraints of the form
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
Minimization by Dr. Arshad zaheer
Linear Programming (LP)
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
Learning Objectives for Section 6.2
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Simplex Algorithm.Big M Method
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Linear Programming: The Simplex Method.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
Simplex Method for solving LP problems with two variables.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
 LP graphical solution is always associated with a corner point of the solution space.  The transition from the geometric corner point solution to the.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
Solving Linear Program by Simplex Method The Concept
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Linear programming Simplex method.
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Chapter 4 Linear Programming: The Simplex Method
Chapter 3 The Simplex Method and Sensitivity Analysis
Linear Programming SIMPLEX METHOD.
Well, just how many basic
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
Presentation transcript:

Mechanical Engineering Department 1 سورة النحل (78)

Mechanical Engineering Department 2 Chapter 2 Linear Programming (LP) Lecture Objective THE SIMPLEX METHOD

Mechanical Engineering Department 3 SIMPLEX LINEAR PROGRAMMING

Mechanical Engineering Department 4 1. INTRODUCTION 1. INTRODUCTION The simplex method is a general-purpose linear programming algorithm that is widely used to solve large-scale problems. The simplex technique involves a series of iterations; successive improvements are made until an optimal solution is achieved. Most users of the technique rely on computers to handle the computations while they concentrate on the solutions. It is best to work with numbers in fractional form.

Mechanical Engineering Department 5 Example Consider the simplex solution to the following Problem:

Mechanical Engineering Department 6 Graphical solution x1x1

Mechanical Engineering Department 7 Introduction Introduction The simplex technique involves generating a series of solutions in tabular form, called tableaus. By inspecting the bottom row of each tableau, one can immediately tell if it represents the optimal solution. Each tableau corresponds to a corner point of the feasible solution space. The first tableau corresponds to the origin. Subsequent tableaus are developed by shifting to an adjacent corner point in the direction that yields the highest rate of profit.

Mechanical Engineering Department 8 Simplex Method Steps Simplex Method Steps 1.Set up the initial tableau. 2.Develop a revised tableau using the information contained in the first tableau. 3.Inspect to see if it is optimum. 4.Repeat steps 2 and 3 until no further improvement is possible.

Mechanical Engineering Department 9 Maximization Problem with only ≤ constraints Maximization Problem with only ≤ constraints 1. Set up the initial tableau. A.Rewrite the constraints so that they become equalities; add a slack variable to each constraint. B.Rewrite the objective function to include the slack variables. Give slack variables coefficients of 0. C.Put the objective coefficients and constraint coefficients into tableau form. D.Compute values for the Z row. E.Compute values for the C - Z row.

Mechanical Engineering Department 10 Slack variables Slack variables represent the amount of each resource that will not be used if the solution is implemented.

Mechanical Engineering Department 11 Adding Slack variables to each Constraint In the initial solution, with each of the real variables equal to zero, the solution consists only of slack. It is useful in setting up the table to represent each slack variable in every equation.

Mechanical Engineering Department 12 Adding Slack variables to the Objective Function The objective function can be written in similar form: The slack variables are given coefficients of zero in the objective function because they do not produce any contributions to profits.

Mechanical Engineering Department 13 The Problem After Adding Slack variables

Mechanical Engineering Department 14 QuestionsQuestions

Mechanical Engineering Department 15 The Initial Tableau

Mechanical Engineering Department 16 Compute values for the Z row and C- Z row To compute the Z values, multiply the coefficients in each column by their respective row profit per unit amounts, and sum within columns. To begin with, all values are zero.To compute the Z values, multiply the coefficients in each column by their respective row profit per unit amounts, and sum within columns. To begin with, all values are zero. The last value in the Z row indicates the total profit associated with a given solution (tableau). Since the initial solution has x1 = 0 and x2 = 0, it is not surprising that profit is 0.The last value in the Z row indicates the total profit associated with a given solution (tableau). Since the initial solution has x1 = 0 and x2 = 0, it is not surprising that profit is 0. To compute in the C - Z row values, subtract the Z value in each column from the value of the objective row for that column.To compute in the C - Z row values, subtract the Z value in each column from the value of the objective row for that column.

Mechanical Engineering Department 17 The Test for Optimality If all the values in the C - Z row of any tableau are zero or negative, the optimal solution has been obtained. In this case, the C - Z row contains two positive values, 4 and 5, indicating that improvement is possible.

Mechanical Engineering Department Set up subsequent tableaus. A.Determine the entering variable (the largest positive value in the C - Z row). B.Determine the leaving variable: Divide each constraint row's solution quantity by the row's pivot value; the smallest positive ratio indicates the leaving variable.

Mechanical Engineering Department 19 The leaving and entering variables

Mechanical Engineering Department Set up subsequent tableaus. C.Form the new main row of the next tableau. Enter these values in the next tableau in the same row positions. D.Compute new values for remaining constraint rows. Enter these in the new tableau in the same positions as the original row. E.Compute values for Z and C - Z rows. F.Check to see if any values in the C - Z row are positive; if they are, repeat 2A-2F Otherwise, the optimal solution has been obtained.

Mechanical Engineering Department 21 Completed Second Tableau

Mechanical Engineering Department 22 Developing the Third Tableau

Mechanical Engineering Department 23 The Third Tableau (Optimum Solution)

Mechanical Engineering Department 24 Graphical analogies to Simplex Tableaus

Mechanical Engineering Department 25 QuestionsQuestions

Mechanical Engineering Department 26 A MINIMIZATION PROBLEM ≥ and = Constraints For = constraint, add an artificial variable. For example, the equalities Using artificial variables a 1 and a 2. Slack variables would not be added. 4

Mechanical Engineering Department 27 A MINIMIZATION PROBLEM ≥ and = Constraints A MINIMIZATION PROBLEM ≥ and = Constraints The objective function, say, Z = 2x 1 + 3x 2 would be rewritten as: where M = A large number (e.g., 999) The artificial variables are not desired in the final solution, selecting a large value of M (much larger than the other objective coefficients) will insure their deletion during the solution process.

Mechanical Engineering Department 28 A MINIMIZATION PROBLEM ≥ and = Constraints A MINIMIZATION PROBLEM ≥ and = Constraints For a ≥ constraint, surplus variables must be subtracted instead of added to each constraint. For example, the constraints would be rewritten as equalities:

Mechanical Engineering Department 29 A MINIMIZATION PROBLEM ≥ and = Constraints A MINIMIZATION PROBLEM ≥ and = Constraints As equalities, each constraint must then be adjusted by addition of an artificial variable. The final result looks like this:

Mechanical Engineering Department 30 A MINIMIZATION PROBLEM ≥ and = Constraints A MINIMIZATION PROBLEM ≥ and = Constraints If the objective function happened to be it would become

Mechanical Engineering Department 31 Two Ways to Solve a Minimization Problem Two Ways to Solve a Minimization Problem The first approach We select the variable with the MOST NEGATIVE C j - Z j ; as the one to introduce next. We would STOP when every value in the net evaluation row is ZERO or POSITIVE.

Mechanical Engineering Department 32 Two Ways to Solve a Minimization Problem Two Ways to Solve a Minimization Problem The second approach Any minimization problem can be converted to an equivalent maximization problem by multiplying the objective function by -1. Solving the resulting maximization problem wil1 provide the optimal solution to the minimization problem.

Mechanical Engineering Department 33 Problem Problem Let us illustrate this second approach The mathematical statement of the problem is

Mechanical Engineering Department 34 Solution Solution

Mechanical Engineering Department 35 Solution (Continue) Solution (Continue) The tableau form for this problem is

Mechanical Engineering Department 36 Solution (Continue) Solution (Continue) The initial simplex tableau is:

Mechanical Engineering Department 37 Solution (Continue) Solution (Continue) At the first iteration, x 1 is brought into the basis and a 1 is removed. After dropping the a 1 column from the tableau, The first iteration is:

Mechanical Engineering Department 38 Solution (Continue) Solution (Continue) The final simplex tableau: The minimum total cost of the optimal solution is $800

Mechanical Engineering Department 39 Thank You