12
Section 4.1 The Simplex Method: Standard Maximization Problems

Section 4.1 The Simplex Method: Standard Maximization Problems

Embed Size (px)

Citation preview

Page 1: Section 4.1 The Simplex Method: Standard Maximization Problems

Section 4.1

The Simplex Method: Standard Maximization Problems

Page 2: Section 4.1 The Simplex Method: Standard Maximization Problems

The Simplex Method

The simplex method is an iterative process. Starting at some initial feasible solution (a corner point – usually the origin), each iteration moves to another corner point with an improved (or at least not worse) value of the objective function. Iteration stops when an optimal solution (if it exists) is found.

Page 3: Section 4.1 The Simplex Method: Standard Maximization Problems

A Standard (maximization) Linear Programming Problem:

1. The objective function is to be maximized.

2. All the variables involved in the problem are nonnegative.

3. Each constraint may be written so that the expression with the variables is less than or equal to a nonnegative constant.

Page 4: Section 4.1 The Simplex Method: Standard Maximization Problems

Maximize P = 4x + 5y

Subject to 3 5 20

6

0, 0

x y

x y

x y

Ex. A standard maximization problem:

First introduce nonnegative slack variables to make equations out of the inequalities:

3 5 20

6

x y u

x y v

Next, rewrite the objective function Set = 0 with a 1 on P:

–4x – 5y + P = 0

Page 5: Section 4.1 The Simplex Method: Standard Maximization Problems

3 5 20

6

4 5 0

x y u

x y v

x y P

Form the system:

Write as a tableau:

constant

3 5 1 0 0 20

1 1 0 1 0 6

4 5 0 0 1 0

x y u v P

Nonbasic variables

Basic variables

Variables in non-unit columns are given a value of zero, so initially x = y = 0.

Page 6: Section 4.1 The Simplex Method: Standard Maximization Problems

Choose a pivot:

1. Select column: select most negative entry in the last row (to left of vertical line).

2. Select row: select smallest ratio: constant/entry (using only entries from selected column)

constant

3 5 1 0 0 20

1 1 0 1 0 6

4 5 0 0 1 0

x y u v P

20 / 5 4

6 /1 6

Ratios:

Next using the pivot, create a unit column

Page 7: Section 4.1 The Simplex Method: Standard Maximization Problems

constant

3/5 1 1/5 0 0 4

1 1 0 1 0 6

4 5 0 0 1 0

x y u v P

11

5R

constant

3/5 1 1/5 0 0 4

2/5 0 1/5 1 0 2

1 0 1 0 1 20

x y u v P

2 1

3 15

R R

R R

Page 8: Section 4.1 The Simplex Method: Standard Maximization Problems

constant

3/5 1 1/5 0 0 4

2/5 0 1/5 1 0 2

1 0 1 0 1 20

x y u v P

25

2R

Repeat steps

Ratios:4

20 / 33/ 5

25

2 / 5

constant

3/5 1 1/5 0 0 4

1 0 1/2 1 0 5

1 0 1 0 1 20

x y u v P

Page 9: Section 4.1 The Simplex Method: Standard Maximization Problems

1 2

3 2

3

5R R

R R

constant

0 1 1/2 3/5 0 1

1 0 1/2 1 0 5

0 0 1/ 2 1 1 25

x y u v P

All entries in the last row are nonnegative therefore an optimal solution has been reached:

Assign 0 to variables w/out unit columns (u, v).

Notice x = 1, y = 5, and P = 25 (the max).

Page 10: Section 4.1 The Simplex Method: Standard Maximization Problems

The Simplex Method:

1. Set up the initial simplex tableau.

2. If all entries in the last row are nonnegative then an optimal solution has been reached, go to step 4.

3. Perform the pivot operation: convert pivot to a 1, then use row operations to make a unit column. Return to step 2.

4. Determine the optimal solution(s). The value of the variable heading each unit column is given by the corresponding value in the column of constants. Variables heading the non-unit columns have value zero.

Page 11: Section 4.1 The Simplex Method: Standard Maximization Problems

Multiple Solutions

There are infinitely many solutions if and only if the last row to the right of the vertical line of the final simplex tableau has a zero in a non-unit column.

No SolutionA linear programming problem will have no solution if the simplex method breaks down (ex. if at some stage there are no nonnegative ratios for computation).

Page 12: Section 4.1 The Simplex Method: Standard Maximization Problems

Minimization with Constraints

3 5 20

6

0, 0

x y

x y

x y

Ex. Minimize C = –4 x – 5ySubject to

Notice if we let P = –C = 4x + 5y we have a standard maximization problem.

If we solve this associated problem we find P = 25, therefore the minimum is C = –25.