Docsity

Linear programming by simplex method, Study notes of Business Mathematics

Toggle sidebar
bg1
6s-1 Linear Programming
Simplex: a linear-programming algorithm that can solve
problems having more than two decision variables.
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 (smallest) rate of profit (cost). This process
continues as long as a positive (negative) rate of profit
(cost) exists.
Simplex Method
Simplex Method
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24

Partial preview of the text

Download Linear programming by simplex method and more Study notes Business Mathematics in PDF only on Docsity!

 Simplex : a linear-programming algorithm that can solve

problems having more than two decision variables.  (^) 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 (smallest) rate of profit (cost). This process continues as long as a positive (negative) rate of profit (cost) exists.

Simplex Method Simplex Method

Simplex Algorithm Simplex Algorithm

The key solution concepts

 Solution Concept 1: the simplex method focuses

on CPF solutions.

 Solution concept 2: the simplex method is an

iterative algorithm (a systematic solution

procedure that keeps repeating a fixed series of

steps, called, an iteration, until a desired result has

been obtained) with the following structure:

Simplex algorithm Simplex algorithm

 (^) Solution concept 3: whenever possible, the initialization of the simplex method chooses the origin point (all decision variables equal zero) to be the initial CPF solution.  (^) Solution concept 4: given a CPF solution, it is much quicker computationally to gather information about its adjacent CPF solutions than about other CPF solutions. Therefore, each time the simplex method performs an iteration to move from the current CPF solution to a better one, it always chooses a CPF solution that is adjacent to the current one.

Simplex algorithm Simplex algorithm

 Solution concept 5: After the current CPF solution

is identified, the simplex method examines each of

the edges of the feasible region that emanate from

this CPF solution. Each of these edges leads to an

adjacent CPF solution at the other end, but the

simplex method doesn’t even take the time to solve

for the adjacent CPF solution. Instead it simply

identifies the rate of improvement in Z that would

be obtained by moving along the edge. And then

chooses to move along the one with largest

positive rate of improvement.

The simplex method in tabular form The simplex method in tabular form

 (^) Steps:

  1. Initialization: a. transform all the constraints to equality by introducing slack, surplus, and artificial variables as follows: Constraint type Variable to be added ≥ + slack (s) ≤ - Surplus (s) + artificial (A) = + Artificial (A)

Simplex method in tabular form Simplex method in tabular form

b. Construct the initial simplex tableau Basic variable

X

1 …

X

n

S

1

…... S

n

A

1

…. A

n

RHS

S

Coefficient of the constraints b 1 A b m Z Objective function coefficient In different signs

Z

value

Simplex method in tabular form Simplex method in tabular form

3. Iteration

Step 1: determine the entering basic variable by

selecting the variable (automatically a nonbasic

variable) with the most negative value (in case of

maximization) or with the most positive (in case

of minimization) in the last row (Z-row). Put a

box around the column below this variable, and

call it the “pivot column”

Simplex method in tabular form Simplex method in tabular form

 (^) Step 2: Determine the leaving basic variable by applying the minimum ratio test as following:

  1. Pick out each coefficient in the pivot column that is strictly positive (>0)
  2. Divide each of these coefficients into the right hand side entry for the same row
  3. Identify the row that has the smallest of these ratios
  4. The basic variable for that row is the leaving variable, so replace that variable by the entering variable in the basic variable column of the next simplex tableau. Put a box around this row and call it the “pivot row”

Simplex method Simplex method

 (^) Example (All constraints are ) Solve the following problem using the simplex method  (^) Maximize Z = 3X 1 + 5X 2 Subject to X 1  4 2 X 2  12 3X 1 +2X 2  18 X 1 , X 2  0

Simplex method Simplex method

 (^) Solution  (^) Initialization

  1. Standard form Maximize Z, Subject to Z - 3X 1 - 5X 2 = 0 X 1 + S 1 = 4 2 X 2 + S 2 = 12 3X 1 +2X 2 + S 3 = 18 X 1 , X 2 , S 1 , S 2 , S 3  0 Sometimes it is called the augmented form of the problem because the original form has been augmented by some supplementary variables needed to apply the simplex method

Initial tableau Initial tableau

  1. Initial tableau Basic variable

X

1

X

2

S

1

S

2

S

3

RHS

S

1

S

2

S

3

Z -3 -5 0 0 0 0

Pivot column Pivot row Pivot number Entering variable Leaving variable

Simplex tableau Simplex tableau

Notes:

 The basic feasible solution at the initial tableau

is (0, 0, 4, 12, 18) where:

X 1 = 0, X 2 = 0, S 1 = 4, S 2 = 12, S 3 = 18, and Z = 0

Where S 1 , S 2 , and S 3 are basic variables

X 1 and X 2 are nonbasic variables

 The solution at the initial tableau is associated to

the origin point at which all the decision

variables are zero.

Iteration Iteration

 Step 1: Determine the entering variable by

selecting the variable with the most negative in the

last row.

 From the initial tableau, in the last row (Z row),

the coefficient of X 1 is -3 and the coefficient of X 2

is -5; therefore, the most negative is -5.

consequently, X 2 is the entering variable.

 X

2 is surrounded by a box and it is called the pivot

column

Iteration Iteration

 (^) Step 2: Determining the leaving variable by using the minimum ratio test as following: Basic variable Entering variable X 2 (1)

RHS

Ratio (2)(1) S 1 0 4 None S 2 Leaving

Smallest ratio S3 2 18 9