Download presentation

Presentation is loading. Please wait.

Published byEnrique Crosse Modified over 2 years ago

1
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)

2
Algebraic Model for Wyndor Glass Co. LetD = the number of doors to produce W = the number of windows to produce Maximize P = 3 D + 5 W subject to D ≤ 4 2W ≤ 12 3D + 2W ≤ 18 and D ≥ 0, W ≥ 0.

3
Wyndor Glass CPF Edge of Feasible region

4
LP Concepts Corner point feasible solution (CPF solution) – intersection of n (or more; n - number of variables) constraint boundaries; For any LP with n decision variables two CPF solutions are adjacent to each other if they share (n-1) constraint boundaries Edge of feasible region – intersection of the (n-1) constraint boundaries shared by two adjacent CPF solutions Optimality test – for any LP problem that possesses at least one optimal solution, if a CPF solution has no adjacent CPF solutions that are better (as measure by Z) then it must be an optimal solution

5
3D feasible region Edge of feasible region between two CPFS’s the edge is the line that lies at the intersection of the common constraint boundaries of the two CPFS’s

6
Corner Point Solutions Corner-point feasible solution – special solution that plays a key role when the simplex method searches for an optimal solution. Relationship between optimal solutions and CPF solutions: –Any LP with feasible solutions and bounded feasible region (1) the problem must possess CPF solutions and at least one optimal solution (2) the best CPF solution must be an optimal solution f the problem has exactly one optimal solution it must be a CFP solution If the problem has multiple optimal solutions, at least two must be CPF solutions

7
Simplex Method Iterative procedure involving the following steps: 1.Initialization – find initial CPF solution 2.Optimality test if optimal stop if not optimal go to next iteration 3.Iteration – find a better CPF solution; go to 2.

8
Geometric View Point of Simplex Method Iterative procedure involving the following steps: 1.Initialization – find initial CPF solution Whenever possible pick (0,0) as initial solution 2.Optimality test – (check value of Z of adjacent CPF solutions) 3.Iteration – find a better CPF solution; go to 2. 1.Consider edges that emanate from current CPF solution and pick the one that increases Z at a faster rate 2.Stop at the first new constraint boundary

9
Wyndor Glass CPF Edge of Feasible region 0 1 Z=0 Z=30 LetD = the number of doors to produce W = the number of windows to produce Maximize P = 3 D + 5 W 2 Z=36 Z=27 3

10
Simplex – Key Concepts Concept 1 – CPF solutions –Simplex methods focuses only on CPF solutions (finite set) Concept 2 – Flow of simplex method Iterative procedure: 1.Initialization – find initial CPF solution 2.Optimality test if optimal stop if not optimal go to next iteration 3.Iteration – find a better CPF solution; go to 2. Concept 3– Initialization –Whenever possible pick the origin; otherwise special procedure

11
Simplex – Key Concepts (cont.) Concept 4 – Path to optimal solution –Simplex methods always chooses a CPF solution adjacent to the current one –The entire path to the optimal solution is along the edges of the feasible solution Concept 5 – Choice of new CPF solution –From a CPF solution consider all edges emanating from it but it does not solve for each adjacent CPF solution – it simply identifies the rate of improvement in Z along a given edge and than it picks the one with the largest improvement Concept 6– Optimality Test –From a given CPF solution check if there is an edge that gives a positive rate of improvement in Z. If not, current CPF is optimal.

12
Setting up Simplex Method for Algebraic Procedure Algebraic procedure – solving systems of equations converting inequalities into equalities introduction of slack variables Slack variables –x 1 ≤ 4 x 1 + s 1 = 4 ; s 1 = 4 - x 1 –x 1 ≤ 4 x 1 + s 1 = 4 and s 1 ≥ 0 x1x1 04 s1s1 Meaning of Slack variables 0 – the solution lies on the constraint boundary >0 – solution lies on the feasible region <0 – solutions lies on the infeasible region LP Augmented form – standard form + slack variables

13
Augmented Form for Wyndor Glass

14
Graphical Representation Augmented solution – solution for original variables + slack variables Basic solution augmented corner point solution; Basic feasible solution augmented corner point feasible solution;

15
Simplex as an algebraic procedure System of functional constraints n (5) variables (5) and m (3) equations 2 degrees of freedom, (i.e., we can set those two variables to any arbitrary values); they are the nonbasic variables; the other variables are the basic variables; –Simplex chooses to set the non-basic variables to ZERO. –Simplex solves the simultaneous equations to set the values of the basic variables;

16
Properties of Basic Solutions A basic solution is composed of: 1.Non-basic variables – 1.number of non-basic variables equals (total number of variables - number of functional constraints) 2.They are set to ZERO 2.Basic variables – 1. number of basic variables equals number of functional constraints 2.Their values results from solving the system of functional constraints (non-basic variables set to 0) 3.They form the Basic Feasible solution – it is a basic solution that satisfies the non- negativity constraints Adjacent basic feasible solutions – all but one of their basic (non-basic) variables are the same moving from one basic feasible solution to an adjacent one involves switching one variable from non-basic to basic and one variable from basic to non-basic (check graph)

17
Getting ready for the Simplex Standard form –<= constraints –Non-negativity constraints on all variables –Positive right hand sides (if these assumptions are not valid additional adjustments need to be done) Transform the objective function and constraints into equalities (introduction of slack variables) maximize 3x 1 + 2x 2 - x 3 + x 4 x 1 + 2x 2 + x 3 - x 4 5; -2x 1 - 4x 2 + x 3 + x 4 -1; x 1 0, x 2 0 What’s wrong with this format? not equality x 3 may be negative not equality/negative not equality

18
Simplex Procedure Initialization – origin whenever possible (decision variables 0) (okay if standard form with positive RHS’s; basic feasible solution (BFS): each equation has a basic variable with coefficient 1 (slack variable = RHS) and the variable does not appear in any other eq; the decision variables are the non-basic variables set to 0) Optimality test – is current BFS optimal? ( the coefficients of the objective function of the non-basic variables gives the rate of improvement in Z )

19
Iteration – move to a better adjacent BFS a)Variable entering the basis –Consider non-basic variables (Graphically - Consider edges emanating from current CPF solution) –Pick the variable that increases Z at a faster rate b)Variable leaving the basis –One of the basic variables will become non-basic; write all the basic variables as a function of the entering variable; the most stringent value (i.e., smallest) will be the value for the new entering variable; the basic variable associated with the most stringent constraint will become non-basic, leaving the basis. (Graphically – where to stop? As much as possible without leaving the feasible region) c)Solving for the new BFS –Objective of this step: convert the system of equations into a more convenient form: (1) to perform optimality test and (2) to perform next iteration if necessary –New basic variable should have coefficient 1 in the equation of the leaving variable and 0 in all the other equations, including the objective function; –Valid operations: Multiplication (or division) of an equation by a non-zero constant Addition (or subtraction) of a multiple of an equation to (from) another eqution Simplex Procedure (cont.)

20
Simplex Procedure – Wyndor Glass

21
Simplex Method in Tabular Form Tabular form – more compact form – it records only the essential information namely: 1.Coefficients of variables 2.The constants on the right hand sides 3.Basic variable in each equation Note: only x j vars are basic and non-basic – we can think of Z as the basic var. of objective function.

23
Simplex Method in Tabular Form Assumption: Standard form max; only <= functional constraints; all vars have non-negativity constraints; rhs are positive Initialization –Introduce slack variables –Decision variables non-basic variables (set to 0) –Slack variables basic variables (set to corresponding rhs) –Transform the objective function and the constraints into equality constraints Optimality Test –Current solution is optimal iff all the coefficients of objective function are non-negative

24
Simplex Method in Tabular Form (cont.) Iteration: Move to a better BFS –Step1 Entering Variable – non-basic variable with the most negative coefficient in the objective function. Mark that column as the pivot column. –Step2 Leaving basic variable – apply the minimum ratio test: Consider in the pivot column only the coeffcients that are strictly positive Divide each of theses coefficients into the rhs entry for the same row Identify the row with the smallest of these ratios The basic variable for that row is the leaving variable; mark that row as the pivot row; The number in the intersection of the pivot row with the pivot column is the pivot number

25
Simplex Method in Tabular Form (cont.) Iteration: Move to a better BFS –Step3 Solve for the new BFS by using elementary row operations to construct a new simplex tableau in proper form Divide pivot row by the pivot number for each row (including objective function) that has a negative coefficient in the pivot column, add to this row the product of the absolute value of this coefficient and the new pivot row. for each row that has a positive coefficient in the pivot column, add to this row the product the new pivot row.multiplied by the negative of the coefficient.

26
Wyndor Glass 1 st Simplex Tableau Optimal? Entering Variable?

27
What variable will enter the basis? Why? What variable will leave the basis? Why? What transformations do we need to perform to the tableau to get the new basic variable into the right format?

28
What operations did we perform? 1 – divide the pivot row by 2; 2 – multiplied the new pivot row by (-2) and added it to eq. 3 3 – multiplied the new pivot row by (5) and added it to eq. 0 What are the new basic / non-basic variables?

29
Optimal? Entering Variable?

30
What operations did we perform? 1 – divide the pivot row by ; 2 – multiplied the new pivot row by ( ) and added it to eq. 1 3 – multiplied the new pivot row by ( ) and added it to eq. 0 What are the new basic / non-basic variables?

31
Optimal?

32
Simplex Method in Tabular Form

Similar presentations

Presentation is loading. Please wait....

OK

Linear Inequalities and Linear Programming Chapter 5

Linear Inequalities and Linear Programming Chapter 5

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on sources of energy for class 8th sample Ppt on central excise duty Ppt on south african culture videos Ppt on water resources in india Ppt on centre of gravity Ppt on microsoft excel 2010 Ppt on forward rate agreement pricing Ppt on standing order act fee Ppt on tamper resistant packaging Ppt on holographic technology health