1 Optimization Linear Programming and Simplex Method.

Slides:



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

Lesson 08 Linear Programming
Linear Programming (LP) (Chap.29)
Linear Programming – Simplex Method
Introduction to Algorithms
Chapter 6 Linear Programming: The Simplex Method
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 18, 2013.
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
DMOR Linear Programming.
Design and Analysis of Algorithms
ENGR 351 Numerical Methods Instructor: Dr. L.R. Chevalier
Solving Linear Programs: The Simplex Method
Chapter 10: Iterative Improvement
Optimization Mechanics of the Simplex Method
Optimization Linear Programming and Simplex Method
Linear Programming (LP)
The Simplex Method.
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING: THE GRAPHICAL METHOD
Chapter 3 An Introduction to Linear Programming
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
1 1 Slide LINEAR PROGRAMMING: THE GRAPHICAL METHOD n Linear Programming Problem n Properties of LPs n LP Solutions n Graphical Solution n Introduction.
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 15 Constrained Optimization. The Linear Programming Model Let : x 1, x 2, x 3, ………, x n = decision variables Z = Objective function or linear.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Learning Objectives for Section 6.2
The Simplex algorithm.
1 1 Slide © 2005 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS ST. EDWARD’S UNIVERSITY.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
1 1 Slide Linear Programming (LP) Problem n A mathematical programming problem is one that seeks to maximize an objective function subject to constraints.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 15.
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
Pareto Linear Programming The Problem: P-opt Cx s.t Ax ≤ b x ≥ 0 where C is a kxn matrix so that Cx = (c (1) x, c (2) x,..., c (k) x) where c.
Chapter 7 Introduction to Linear Programming
Solving Linear Programming Problems: The Simplex Method
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Mechanical Engineering Department 1 سورة النحل (78)
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
University of Colorado at Boulder Yicheng Wang, Phone: , Optimization Techniques for Civil and Environmental Engineering.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
1. 2 We studying these special cases to: 1- Present a theoretical explanation of these situations. 2- Provide a practical interpretation of what these.
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
An Introduction to Linear Programming
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Solving Linear Program by Simplex Method The Concept
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Constrained Optimization
Linear Programming Prof. Sweta Shah.
Linear Programming in Two Dimensions
Chapter 3 The Simplex Method and Sensitivity Analysis
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming Problem
Graphical solution A Graphical Solution Procedure (LPs with 2 decision variables can be solved/viewed this way.) 1. Plot each constraint as an equation.
Chapter 10: Iterative Improvement
Presentation transcript:

1 Optimization Linear Programming and Simplex Method

2 Optimization Methods One-Dimensional Unconstrained Optimization Golden-Section Search Quadratic Interpolation Newton's Method Multi-Dimensional Unconstrained Optimization Non-gradient or direct methods Gradient methods Linear Programming (Constrained) Graphical Solution Simplex Method

3 Basic linear programming (LP) problem consists of two major parts: –The objective function –A set of constraints For maximization problem, the objective function is generally expressed as c j = payoff of each unit of the jth activity that is undertaken x j = magnitude of the jth activity Z= total payoff due to the total number of activities Standard Form Linear Programming Problem

4 The constraints can be represented generally as where a ij = amount of the ith resource that is consumed for each unit of the jth activity b i = amount of the ith resource that is available The general second type of constraint specifies that all activities must have a positive value. That is, x i > 0. Standard Form Linear Programming Problem

5 Problem Products ResourceRegularPremiumResource Availability Raw gas7 m 3 /tonne11 m 3 /tonne77 m 3 /week Production time 10 hr/tonne8 hr/tonne80 hr/week Storage9 tonne6 tonne Profit$150/tonne$175/tonne How many tonnes of regular and premium gas to produce in order to maximize weekly profit?

6 Developing LP Formulation Let x 1 = 1 tonne of regular gas x 2 = 1 tonne of premium gas Maximize Z = 150x x 2 subject to 7x x 2 ≤ 77 (material constraint) (1) 10x 1 + 8x 2 ≤ 80 (time constraint)(2) x 1 ≤ 9 (regular gas storage)(3) x 2 ≤ 6 (premium gas storage)(4) x 1, x 2 ≥ 0 (positivity)(5, 6)

7 Graphical Solution Feasible solution space (the shaded area) contains all points that obey the constraints or points that represent the feasible solutions. Points located outside of this area are known as infeasible solution.

8 Graphical Solution We can adjust the line representing the objective function Z = 150x x 2 to locate the optimum point. One of the corner points (points where two or more lines intersect) will be an optimum point. –Corner points can be feasible or infeasible

9 Graphical Solution Some insights: Storage constraints, (3) and (4), have no effect on the optimum point. Raising either materials or production time can improve profit.

10 Possible outcomes that can be generally obtained in a linear programming problem 1.Unique solution. The maximum objective function intersects a single point. 2.Alternate solutions. Problem has an infinite number of optima corresponding to a line segment. 3.No feasible solution. 4.Unbounded problems. Problem is under- constrained and therefore open-ended.

11 (a)Unique solution – represented by a corner point Alternate solutions – represented by points on one of the constraint line (b) No feasible solution (c) Unbounded problems

12 Key properties of LP that drives the design of Simplex Method 1.The optimum point is always at a feasible corner point. (Why?) –We only need to check the corner points. 2.If a corner point feasible solution has an objective function value that is better that or equal to all adjacent corner point feasible solutions, then it is optimal. –We don't necessarily need to search all corner points.

13 Key properties of LP that drives the design of Simplex Method 3.There are finite number of corner point feasible solutions. –Any method that checks only corner points will terminate eventually.

14 Basic idea behind the Simplex method 1.Starting at a feasible corner point solution. 2.Repeatedly move to a better adjacent corner point feasible solution until an optimum point is found.

15 Finding Corner Points Algebraically How to find corner points algebraically? How to locate adjacent corner points? How to decide which adjacent point to move to next? Simplex method offers a neat solution (involves the use of slack variables) to address these questions.

16 Constraint equations are reformulated as equalities by introducing slack variables – variables that measures how much of a constrained resource is available. Slack variables S i > 0 means the corresponding resource is not fully consumed. S i < 0 means the corresponding resource is over-consumed.

17 Adding slack variables results in an augmented system of linear equations which is under specified (has more unknowns than equations). –6 unknowns (= 2 original variables + 4 slack variables) –4 equations We need to make 2 of the variables constants before we can solve the system of equations. –Which 2 variables and what constant values? –Typically, we set x 1 and x 2 to zero (Why?) Characteristics of Slack Variables Continue …

18 Solving the augmented system yields an augmented solution. i.e., values of all (original + slack) variables are given. –e.g.: At point A, the values of all variables are (x 1 =0, x 2 =0, S 1 =77, S 2 =80, S 3 =9, S 4 =6) Basic solution: An augmented corner point solution. –For basic feasible solution, all variables ≥ 0. Setting x 1 = 0, x 2 = 0 yields

19 The equations (or constraints) have a one-to-one relationship with the slack variables. –For example, S 1 relates to the 1 st equation, S 4 relates to the 4 th equation. If a point is on the line 7x x 2 = 77 (line labeled "1"), what's the value of S 1 ? If a point is on the line 10x 1 + 8x 2 = 80 (line labeled "2"), which variable has the value zero? At the corner point D, which variables have the value zero? Characteristics of Slack Variables Show Graph & Equations

20 Setting two variables to zero has the effect of "selecting two lines", and solving the resulting system means finding the intersecting point (a corner point) of the selected lines. Characteristics of Slack Variables The value of x 1 and x 2 of this system is the coordinate of the corner point C (the point where line "1" and line "2" intersect.) For example, let S 1 =0, S 2 =0. Then the system becomes

21 Finding Corner Points Algebraically We now know how to find the corner points. Next How to find an adjacent corner point? How to decide which adjacent corner point to move to?

22 Basic and Non-Basic Variables Corner Point Non-Basic Variables Basic Variables A x 1, x 2 S 1, S 2, S 3, S 4 B x 2, S 2 x 1, S 1, S 3, S 4 C S 1, S 2 x 1, x 2, S 3, S 4 D S 1, S 4 x 1, x 2, S 2, S 3 E x 1, S 4 x 2, S 1, S 2, S 3 F x 1, S 2 x 2, S 1, S 3, S 4 Variables in which their values are set to zero are called non-basic variables. Remember: Non-basic, variable set to zero, corresponding constraint is active Do you see a pattern between any pair of adjacent corner points?

23 Basic and Non-Basic Variables If two points are adjacent corner points, then –Their basic sets are identical except for one member. –Their non-basic sets are identical except for one member. The reverse of the above statement is not always true. Questions: –To find an adjacent corner point, can we just switch one variable between the basic and non-basic sets? –How should we decide which corner point to move to next?

24 Basic and Non-Basic Variables How do we make sure the following conditions are satisfied? –The corner points are adjacent. –The corner points are feasible. –The new corner point gives better value for the objective function than the current corner point.

25 Which variables to switch? All three conditions from the previous slide can be satisfied if the following steps are taken: Selecting an entering basic variable – a non- basic variable that will increase the objective function value the most if allowed to take on a positive value. Move this variable from the non- basic set to the basic set. Finding the leaving basic variable – a basic variable that is forced to a value zero first after allowing the entering basic variable to increase. Move the variable that is forced to zero from the basic set to the non-basic set.

26 Which variables to switch? Suppose we are currently at point A. Basic set = { S 1, S 2, S 3, S 4 }, non-basic set = { x 1, x 2 } Which variable should be the entering basic variable? Which variable should be the leaving basic variable?

27 Which variables to switch? x 2 has a larger coefficient in the objective function, so we should make x 2 the entering basic variable. ( x 1 is non-basic, so it has the value zero) If we keep increasing x 2, other basic variables will decrease. Which basic variable will become zero first?

28 Which variables to switch? If we take the ratio of the RHS value to the coefficient of the entering basic variable ( x 2 ), the smallest non- negative ratio can tell us which basic variable will reach zero first if we keep increasing the value of x 2. So S 4 should be made the leaving basic variable. Show Graph & Equations Minimum ratio test

29 Which variables to switch? So setting x 1 =0, S 4 =0 and solve the system of equations would yield an augmented solution correspond to point E. Solving the system of equations at every corner point is not very efficient. Simplex method offers an efficient way to compute the value of each variable by updating the equations incrementally.

E AB C D F