Workshop on Labor Turnover Session 1: Introduction

Download Report

Transcript Workshop on Labor Turnover Session 1: Introduction

Algebraic Simplex Active Learning – Module 4

J. René Villalobos and Gary L. Hogg Arizona State University Paul M. Griffin Georgia Institute of Technology

Time required for the module: 50 Min.

Reading

Most of the introductory/intermediate textbooks in Operations Research have a chapter that covers the fundamentals of the simplex algorithm. The students should read this chapter before coming to class. Two suggestions:

Chapter 3 of

Operations Research, by Hamdy A. Taha, Prentice Hall

, 7 th Edition

Chapter 4 of Introduction to Operations Research by Hillier and Liberman, 7 th Edition

The student should also read the self-contained module on the standard form of an LP problem. This module can be downloaded from: http://enpc2675.eas.asu.edu/lobos/iie476/stdform.doc

While not required, it is recommended that the active learning module on the Simplex Tableau is read before reading this module

Lecture objectives

At the end of the lecture each student should be able to:

Explain the logic behind the algorithmic steps of the Simplex Algorithm

Find the optimal solution of a Linear Programming problem by using the algebraic approach of the Simplex Algorithm

Time Management

Introduction 3 minutes

RAT 5 minutes

Lecturing on the mechanics of the Simplex Algorithm 20 minutes

Team exercise 7 minutes

Lecturing on Simplex algorithm 10 minutes

Wrap up 5 minutes

Total lecture time 50 minutes

Individual Exercise Readiness Assessment test(3 minutes)

Setup the following problem as a standard LP Problem: Minimize z = 3x + 5y – 3z Subject to: -3x - 2y + 5z

x + y

z

4 10 -20

At the end of the exercise turn in your solution

Solution

Minimize z = 3x + 5y – 3z Subject to: +3x + 2y - 5z

x + y

10 y

4 20 Maximize -z = -3x - 5y + 3z Subject to: +3x + 2y - 5z +S 1 = 20 x + y + S Y- S 3 = 4 2 =10

Solution of a Linear Programming Problem

Once a problem can be expressed as a linear programming problem the next step is to find its optimal solution

For trivial 2 and 3 decision variable problems their optimal solution can be found graphically

For more complex problems the simplex algorithm is traditionally used.

In this lecture we use illustrate the algebraic operations of the Simplex Algorithm

In order to use the simplex algorithm it is necessary to:

Express the problem in a standard form

Represent the objective function as an equation z

 

j c j

j

 0 ;

where z is the value of the objective function and the x j ’s the decision variables

Standard Form

We define the standard form of a linear programming problem as:

 

One whose objective function is maximization One whose constraints are expressed as equations and whose right hand side is non-negative (after the

introduction of slack and surplus variables) One in which all the decision variables are non negative

Example: Setting up the Reddy Mikks Problem

 For Instance the Reddy-Mikks Problem: Maximize z = 3

X E

+ 2

X I

Subject to:

X E

+ 2

X I

 6 (1)

2X E

+

X I

 8 (2)

-X E

+

X I

 1 (3)

X I

 2 (4)

X E

,

X I,

 0  Is expressed as: z - 3

X E

- 2

X I

- 0

S

1 - 0

S

2 - 0

S

3 - 0

S

4 Subject to:

X E

+ 2

X I

+

S

1

2X E

+

X -X E

+

X I I

+

S

2 +

S

3 = 6 (1) = 8 (2) = 1 (3)

X I

+

S

4 = 2 (4)

X E

,

X I,

,

S

1

,

,

S

2

,

,

S

3

,

,

S

4  0

Maximization is implied by the (+1)z since it is the objective function of the standard form.

Conceptual Outline of the Steps of the Simplex Algorithm

Step 0:

Using the standard form determine a starting basic feasible solution by setting

n-m

non-basic variables to zero.

Step 1

: Select an entering variable from among the current non-basic variables, which gives the largest per-unit improvement in the value of the objective function. If none exists stop; the current basic solution is optimal. Otherwise go to Step 2.

Step 2

: Select a leaving variable from among the current basic variables that must now be set to zero (become non-basic) when the entering variable becomes basic.

Step 3

: Determine the new basic solution by making the entering variable, basic; and the leaving variable, non-basic, and return to Step 1.

Example 1: Reddy-Mikks Problem

Step 0

.- Since we have four equations representing the constraints we can have at most four linearly independent variables to get the solution of the system of equations.

 We set

X E

,

X I,

to zero (non-basic variables) and solve for

S

1

,

,

S

2

,

,

S

3

,

,

S

4 (basic variables). Notice that we easily get a feasible solution. In particular a

basic feasible solution

.

z -3X E -2X I X E +2X I - 0S + S 1 1 2X E + X I -X E + X I - 0S + S 2 2 - 0S + S 3 3 - 0S 4 = 6 (1) = 8 (2) = 1 (3) X I X E , X I, , S 1, , S 2, , S 3, , S 4

0 + S 4 = 2 (4) z -3X E -2X I X E +2X I - 0S + S 1 1 2X E + X I -X E + X I - 0S + S 2 2 - 0S + S 3 3 - 0S 4 = 0 (0) = 6 (1) = 8 (2) = 1 (3) X I X E , X I, , S 1, , S 2, , S 3, , S 4

0 + S 4 = 2 (4)

Current Solution: X E X I S 1 =0 =0 =6 S 2 S 3 S 4 =8 =1 =2

Example 1: Reddy-Mikks Problem

8

x I

6 4 2 2 4 6

x E

Example 1: Reddy-Mikks Problem (Cont.)

Step 1

.- Select an entering variable from among the current non-basic variables which can improve the value of the objective function.

Current non-basic variables:

X E

,

X I,

Objective function: z -3

X E

- 2

X I

+ 0

S

1 + 0

S

2 + 0

S

3 + 0

S

4  Thus increasing the value of either of the non-basic variables will improve the current solution (

z

=0). Since the per-unit contribution of

X E

(3) is higher than

X I

the entering (new basic) variable. (2) we select

X E

as (Note that these per-unit contributions are the partial derivatives of the Objective Function)

Increasing X I by unit results in an increase of Z of 2 units X E X I S 1 S 2 =0 =0 =6 =8 S 3 S 4 =1 =2

Example 1: Reddy-Mikks Problem

8

x I

6 4 2 2 4 6

Increasing X E by unit results in an increase of Z of 3 units x E We select to increase the value of X E How much can we increase X E ?

The amount of the increase is limited by the constraints (One of the slack variables becomes zero or non-basic)

Example 1: Reddy-Mikks Problem (Cont.)

Step 2

: Select a leaving variable from among the current basic variables that must be set to zero (become non-basic) when the entering variable becomes basic.

 Since we want to increase the value of

X E

as much as possible we increase it until one of the slack variables becomes zero (it then becomes non-basic). In this case

S

2 (when the value of

X E

is increased to 4) is the one that that becomes non-basic. (To see this use the original equations and ask how big

X E

can be before the slack variable is driven to zero in each equation.)  Note that by doing a single pair wise exchange of basic(leaving) and non-basic (entering) variables result in moving to an adjacent corner)

Example 1: Reddy-Mikks Problem (Cont.)

Step 3

: Determine the new basic solution by making the entering variable, basic; and the leaving variable, non-basic.

z -3X E -2X I X E +2X I - 0S + S 1 1 2X E + X I -X E + X I - 0S 2 - 0S + S 2 + S 3 3 - 0S 4 = 0 (0) = 6 (1) = 8 (2) = 1 (3) X I X E , X I, , S 1, , S 2, , S 3, , S 4

0 + S 4 = 2 (4) We need to solve this system of equations

Use elementary row operations to the get the proper form. Apply this to all the variables z-0X E - 0.5X

I - 0S 1 +1.5S

2 -0S 3 -0S 4 = 12(0) 1.5X

I + S 1 –0.5S

2 = 2 (1) X E +0.5X

1.5 X I +0.5S

2 X I I +0.5S

X E , X I, , S 1, , S 2, , S 3, , S 4

2 0 + S 3 = 4 (2) = 5 (3) + S 4 = 2 (4)

 We return to step 1.

Example 1: Reddy-Mikks Problem

x I

We have moved from the original corner-point feasible solution to another with a higher objective function

6 4

Z = 12 X E X I S 1 S 2 =4 =0 =2 =0 S 3 S 4 =5 =2 Z=0 X E X I S 1 S 2 S 3 S 4 =0 =0 =6 =8 =1 =2

2 2 4 6

x E

Example 1: Reddy-Mikks Problem

Step 1

.- Select an entering variable from among the current non basic variables which gives the greatest per-unit improvement in the value of the objective function.

Current non-basic variables:

X I ,

,

S

2 We select

X I

since it is the only one that will improve the current value of objective function

z-0X E - 0.5X

I - 0S 1 +1.5S

2 -0S 3 -0S 4 = 12(0) 1.5X

I + S 1 –0.5S

2 = 2 (1) X E +0.5X

1.5 X I +0.5S

2 X I I +0.5S

X E , X I, , S 1, , S 2, , S 3, , S 4

2 0 + S 3 = 4 (2) = 5 (3) + S 4 = 2 (4)

Team Exercise (5 min)

In Step 1 of the previous iteration we decided to use the variable X E as the entering variable because of its marginal contribution to the improvement of the objective function (3 units) over the marginal contribution of the variable X I (2 units).

In the current solution the marginal contribution of X I to the improvement of the objective function is only 0.5 units, why?

Give a plausible explanation to the difference in the marginal contribution of X I

 

In words Graphically

The instructor will randomly select the members of two teams to give their solutions

Solution

Since X E is bound by a constraint that is a function of I X E and X I ,if we increase X I we need to reduce X E by an amount dictated by the constraint. Thus, increasing X I by one unit will not result in an increase of z by the original marginal contribution

6

of X I .

4

With the constraint increasing a unit of X I results in an increase of z of 0.5 0.5

2

Without constraints increasing a unit of X I resulted in an increase of z of 2

4

2

2 6

x E

Example 1: Reddy-Mikks Problem (Cont.)

Step 1

.- Select an entering variable from among the current non basic variables which gives the greatest per-unit improvement in the value of the objective function.

Current non-basic variables:

X I ,

,

S

2 We select

X I

since it is the only one that will improve the current value of objective function 

Step 2

: Select a leaving variable from among the current basic variables that must be set to zero (become non-basic) when the entering variable becomes basic.

Since we want to increase the value of

X I

as much as possible we do that until one of the current basic variable becomes zero (non basic). In this case

S

1 (when the value of

X I

the one that that becomes non-basic.

is increased to 4/3) is

Example 1: Reddy-Mikks Problem (Cont.)

Step 3

: Determine the new basic solution by making the entering variable basic; and the leaving variable, non-basic.

z-0X E - 0.5X

I - 0S 1 +1.5S

2 -0S 3 -0S 4 = 12(0) 1.5X

I + S 1 –0.5S

2 = 2 (1) X E +0.5X

1.5 X I +0.5S

2 X I I +0.5S

X E , X I, , S 1, , S 2, , S 3, , S 4

2 0 + S 3 = 4 (2) = 5 (3) + S 4 = 2 (4) z-0X E +0X I +0.33S

1 +1.33S

2 -0S 3 -0S 4 = 12.66 (0) X I +0.66S

1 –0.33S

2 = 1.33 (1) X E -0.33S

1 +0.66S

2 = 3.33 (2) - 1.0S

1 +1.0S

2 + S 3 = 3 (3) -0.66S

1 +0.33S

2 X E , X I, , S 1, , S 2, , S 3, , S 4

0 + S 4 = 0.66 (4)

 When we now return to step 1 no further improvement is indicated so we stop; this is the optimum (maximum).

Summary

The simplex starts from a basic feasible solution

By exchanging one basic for one non-basic variables it moves from one corner point solution to an adjacent, more promising, corner point solution

It continues with this process until it reaches the optimal solution of the LP problem

Assignment

Find the optimal solution of the

Report Strategy Problem

by using the algebraic simplex method. As part of the assignment show the corner points visited in the 2D graph of the problem.