Week 9: The Transportation Algorithm

Similar documents
Simplex method summary

Chapter 6. Linear Programming: The Simplex Method. Introduction to the Big M Method. Section 4 Maximization and Minimization with Problem Constraints

4 UNIT FOUR: Transportation and Assignment problems

Special cases in Transportation Problems

Section 3-3 Approximating Real Zeros of Polynomials

Practical Guide to the Simplex Method of Linear Programming

Standard Form of a Linear Programming Problem

Network Models 8.1 THE GENERAL NETWORK-FLOW PROBLEM

Chapter 2 Solving Linear Programs

Applications of linear programming

Linear Programming. March 14, 2014

Special Situations in the Simplex Algorithm

Solving Linear Programs in Excel

Linear Programming. Solving LP Models Using MS Excel, 18

1 Solving LPs: The Simplex Algorithm of George Dantzig

Data Mining Analytics to Minimize Logistics Cost

The Assignment Problem and the Hungarian Method

Sensitivity Analysis 3.1 AN EXAMPLE FOR ANALYSIS

OPRE 6201 : 2. Simplex Method

4.6 Linear Programming duality

Section 3-7. Marginal Analysis in Business and Economics. Marginal Cost, Revenue, and Profit. 202 Chapter 3 The Derivative

Solving Linear Programs

Linear Programming Problems

Polynomial and Synthetic Division. Long Division of Polynomials. Example 1. 6x 2 7x 2 x 2) 19x 2 16x 4 6x3 12x 2 7x 2 16x 7x 2 14x. 2x 4.

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

IEOR 4404 Homework #2 Intro OR: Deterministic Models February 14, 2011 Prof. Jay Sethuraman Page 1 of 5. Homework #2

3. Evaluate the objective function at each vertex. Put the vertices into a table: Vertex P=3x+2y (0, 0) 0 min (0, 5) 10 (15, 0) 45 (12, 2) 40 Max

Section 7.2 Linear Programming: The Graphical Method

Linear Programming II: Minimization 2006 Samuel L. Baker Assignment 11 is on page 16.

Solution of the Transportation Model

Section 1-4 Functions: Graphs and Properties

Unit 1. Today I am going to discuss about Transportation problem. First question that comes in our mind is what is a transportation problem?

Chapter 4. Polynomial and Rational Functions. 4.1 Polynomial Functions and Their Graphs

Nonlinear Programming Methods.S2 Quadratic Programming

Duality in Linear Programming

Pre-Calculus II Factoring and Operations on Polynomials

Section 6-3 Double-Angle and Half-Angle Identities

Chapter 10: Network Flow Programming

A positive exponent means repeated multiplication. A negative exponent means the opposite of repeated multiplication, which is repeated

7.7 Solving Rational Equations

Chapter 15: Dynamic Programming

Dynamic Programming 11.1 AN ELEMENTARY EXAMPLE

1 Determine whether an. 2 Solve systems of linear. 3 Solve systems of linear. 4 Solve systems of linear. 5 Select the most efficient

Linear Programming: Theory and Applications

Linear Programming in Matrix Form

Polynomial Degree and Finite Differences

Circuit Analysis using the Node and Mesh Methods

The number of marks is given in brackets [ ] at the end of each question or part question. The total number of marks for this paper is 72.

FACTORING QUADRATICS through 8.1.4

Polynomials and Factoring

POLYNOMIAL FUNCTIONS

Sensitivity Analysis with Excel

Solving Systems of Linear Equations

Solving Systems of Linear Equations

DATA ANALYSIS II. Matrix Algorithms

1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.

15.053/8 February 26, 2013

Determine If An Equation Represents a Function

Recall the process used for adding decimal numbers. 1. Place the numbers to be added in vertical format, aligning the decimal points.

Linear Programming Supplement E

56:171 Operations Research Midterm Exam Solutions Fall 2001

7 Gaussian Elimination and LU Factorization

1.2 Linear Equations and Rational Equations

Linear Programming. April 12, 2005

Figure 1.1 Vector A and Vector F

Decimals Adding and Subtracting

ROUTH S STABILITY CRITERION

Chapter 6: Sensitivity Analysis

Sensitivity Report in Excel

6. Vectors Scott Surgent (surgent@asu.edu)

Session 7 Bivariate Data and Analysis

Reduced echelon form: Add the following conditions to conditions 1, 2, and 3 above:

What is Linear Programming?

Core Maths C3. Revision Notes

Random variables, probability distributions, binomial random variable

Solution of Linear Systems

Introduction to Matrix Algebra

In this this review we turn our attention to the square root function, the function defined by the equation. f(x) = x. (5.1)

Linear Programming Notes VII Sensitivity Analysis

Zeros of a Polynomial Function

Linear Algebra and TI 89

Roots of Equations (Chapters 5 and 6)

Chapter 5. Linear Inequalities and Linear Programming. Linear Programming in Two Dimensions: A Geometric Approach

10.1. Solving Quadratic Equations. Investigation: Rocket Science CONDENSED

The Point-Slope Form

Unit 6 Direction and angle

. P. 4.3 Basic feasible solutions and vertices of polyhedra. x 1. x 2

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

Solving Quadratic Equations by Graphing. Consider an equation of the form. y ax 2 bx c a 0. In an equation of the form

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

1.5 SOLUTION SETS OF LINEAR SYSTEMS

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

Section 9.1 Vectors in Two Dimensions

5.3 The Cross Product in R 3

Linear Programming for Optimization. Mark A. Schulze, Ph.D. Perceptive Scientific Instruments, Inc.

Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

The Graphical Method: An Example

Fractions to decimals

FACTORING ax 2 bx c WITH a 1

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Transcription:

Week 9: The Transportation Algorithm 1

1. Introduction The transportation algorithm follows the eact steps of the simple method, However, instead of using the regular simple tableau, we take advantage of the special structure of the transportation model to organize the computations in a more convenient form. Summary of the Transportation Algorithm. The steps of the transportation algorithm are eact parallels of the simple algorithm. Step 1. Determine a starting basic feasible solution, and go to step 2. Step 2. Use the optimality condition of the simple method to determine the entering variable from among all the non-basic variables. If the optimality condition is satisfied, stop. Otherwise, go to step 3. Step 3. Use the feasibility condition of the simple method to determine the leaving variable from among all the current basic variables, and find the new basic solution. Return to step 2. 2. Determination of the Starting Solution A general transportation model with m sources and n destinations has m + n constraint equations, one for each source and each destination. However, because the transportation model is always balanced (sum of the supply = sum of the demand), one of these equations is redundant. Thus, the model has m + n - 1 independent constraint equations, which means that the starting basic solution consists of m + n- 1 basic variables. Thus, in Eample below, the starting solution has 3 + 4-1 = 6 basic variables. The special structure of the transportation problem allows securing a non-artificial starting basic solution using one of three methods: 1. Northwest-corner method 2. Least-cost method 3. Vogel approimation method 2.1 Northwest Corner Method We begin in the upper left corner of the transportation tableau and set 11 as large as possible (clearly, 11 can be no larger than the smaller of s1 and d1). If 11=s1, cross out the first row of the tableau. Also change d1 to d1-s1. If 11=d1, cross out the first column of the tableau. Change s1 to s1-d1. If 11=s1=d1, cross out either row 1 or column 1 (but not both!). o If you cross out row, change d1 to 0. o If you cross out column, change s1 to 0. 2

Continue applying this procedure to the most northwest cell in the tableau that does not lie in a crossed out row or column. 2.2 The Least-cost Method The least-cost method finds a better starting solution by concentrating on the cheapest routes. The method assigns as much as possible to the cell with the smallest unit cost. Net, the satisfied row or column is crossed out and the amounts of supply and demand are adjusted accordingly. 2.3. Vogel Approimation Method (VAM) V AM is an improved version of the least-cost method that generally, but not always, produces better starting solutions. Step 1. For each row (column), determine a penalty measure by subtracting the smallest unit cost element in the row (column) from the net smallest unit cost element in the same row (column). Step 2. Identify the row or column with the largest penalty. Break ties arbitrarily. Allocate as much as possible to the variable with the least unit cost in the selected row or column. Adjust the supply and demand, and cross out the satisfied row or column. If a row and a column are satisfied simultaneously, only one of the two is crossed out, and the remaining row (column) is assigned zero supply (demand). Step 3.(a) If eactly one row or column with zero supply or demand remains Uncrossed out, stop (b) If one row (column) with positive supply (demand) remains uncrossed out, determine the basic variables in the row (column) by the least-cost method. Stop. (c) If all the uncrossed out rows and columns have (remaining) zero supply and demand, determine the zero basic variables by the least-cost method. Stop. (d) Otherwise, go to step 1. Eample :(SunRay Transport) SunRay Transport Company ships truckloads of grain from three silos to four mills. The supply (in truckloads) and the demand (also in truckloads) together with the unit transportation costs per truckload on the different routes are summarized in the transportation model in Table below. The unit transportation costs, cij, (shown in the northeast corner of each bo) are in hundreds of dollars. The model seeks the minimum-cost shipping schedule ii between silo i and mill j (i = 1,2,3;j = 1,2,3,4). 3

demand supply 2 20 11 X11 X12 X13 X14 1 2 1 1 1 a-northwest-corner Method supply demand 2 20 11 X11 X12 X13 X14 1 2 1 1 1 2 20 11 X12 X13 X14 1-= 2 X 1 1 1 2 20 11 X13 X14 1-= 1 1 2 4

2 20 X13 X14 12 7 9 X21 X23 X24 4 14 16 1 1 11 20 18 2-=20 2 20 X13 X14 12 7 9 X21 1 X24 4 14 16 X 1 11 20 18 20-1= 2 20 11 X13 X14 X21 1 1-= 2 20 X13 X14 12 7 9 X21 1 4 14 16 X31 X32 X33 11 20 18

b-least-cost Method 2 20 11 X11 X12 X13 X14 1 2 1 1 1 (start) 2 20 11 X11 1 X13 X14 1-1=0 2 1 1 (start) 2 20 11 X11 1 X13 X14 0 2 X32 X33 X34 -= 1 1 (start) 2 20 11 X11 1 X13 X14 0 X21 X22 1 X24 2-1= X32 X33 X34 1 6

(start) 2 X11 20 11 1 X13 0 0 X21 X22 1 X24 X32 X33 X34 1 (start) 2 20 11 X11 1 X13 0 0 X21 X22 1 X24 X32 X33 1-= (start) 2 X11 20 11 1 X13 0 0 X21 X22 1 X32 X33 c-vam 2 20 11 X11 X12 X13 X14 1 2 1 1 1 7

supply 2 20 11 X11 X12 X13 X14 1 2 X32 X33 X34 Demand - 1 1 1 row-penalty -2=8 9-7=2 14-4= Column penalty -4=6 7-2= 16-9=7 18-11=7 supply 2 20 11 X11 1 X13 X14 1-1=0 2 X32 X33 X34 Demand - 1 1 1 row-penalty 11-2=9 9-7=2 16-14=2 Column penalty 7-2= 16-9=7 18-11=7 supply row-penalty 2 20 11 X11 1 X13 X14 0 20-11=9 X21 X22 1 X24 X32 X33 X34 2-1= 20-9=11 16-14=2 Demand - - 1 1 Column penalty 16-9=7 20-18=2 After this step only one column stay and we used step3. Item (b), Only column 4 is left, and it has a positive supply of 1 units. Applying the least-cost method to that column. 8

supply 2 20 11 X11 1 X13 0 - X21 X22 1 X24 X32 X33 X34 Demand - - - 1 row-penalty Column penalty supply 2 20 11 X11 1 X13 0 - X21 X22 1 X32 X33 X34 - Demand - - - 1-= row-penalty Column penalty 2 20 X11 1 X13 12 7 9 X21 X22 1 4 14 16 X32 X33 Demand - - - - supply 11 0-20 - 18 - row-penalty Column penalty 9

3.Iterative Computations of the Transportation Algorithm After determining the starting solution we use the following algorithm to determine the optimum solution: Step 1: Use the simple optimality condition to determine the entering variable as the current nonbasic variable that can improve the solution. If the optimality condition is satisfied, stop. Otherwise, go to step 2. Step 2: Determine the leaving variable using the simple!easibility condition. Change the basis, and return to step 1. Eample Solve the transportation model of Eample (SunRay Transport), starting with the northwest-comer solution which appear in the table below 2 20 X13 X14 12 7 9 X21 1 4 14 16 X31 X32 X33 11 20 18 X And to determine entering variables from among the current non basic variables (those that are not part of the starting basic solution) is done by computing the nonbasic coefficients in the z-row, using the method of multipliers. In the method of multipliers, we associate the multipliers ui and vi with row i and column j of the transportation tableau. 1- For each basic variable compute u and v value as: ui+vj=cij for each basic ij Basic variable (u,v)equation Solution X11 u1+v1= Set u1=0 v1= X12 u1+v2=2 u1=0 v2=2 X22 u2+v2=7 v2=2 u2= X23 u2+v3=9 u2= v3=4 X24 u2+v4 u2= v4=1 X34 u3+v4=18 v4=1 u3=3 2-use u and v; to evaluate tile nonbasic variables by computing as: ui+vi-cij for each nonbasic ij

The results of these evaluations are shown in the following table: Nonbasic variable X13 X14 X21 X31 X32 X33 ui+vi-cij u1+v3-c13=0+4-20=-16 u1+v4-c14=0+1-11=4 u2+v1-c21=+-12=3 u3+v1-c31=3+-4=9 u3+v-c32=3+2-14=-9 u3+v3-c33=3+4-16=-9 Because the transportation model seeks to minimize cost, the entering variable is the one having the most positive coefficient in the z-row. Thus, 31 is the entering variable. To determine leave variable we applied 1-construct a closed loop that starts and ends at the entering variable cell (3, 1). The loop consists of connected horizontal and vertical segments only (no diagonals are allowed). Ecept for the entering variable cell, each comer of the closed loop must coincide with a basic variable. V 1= v2=2 v3=4 v4=1 supply 2 20 11 1 - ϕ + ϕ -16 4 u1=0 1 u2= 1 - ϕ + ϕ 3 u3=3 ϕ -9-9 - ϕ 9 Demand 1 1 1 2- we assign the amount to the entering variable cell (3, 1). For the supply and demand limits to remain satisfied, we must alternate between subtracting and adding the amount II at the successive corners of the loop, For ϕ 0, the new values of the variables then remain nonnegative if 11=- ϕ 0 22=- ϕ 0 11

34=- ϕ 0 The corresponding maimum value of ϕ is, which occurs when both 11and 22 reach zero level Because only one current basic variable must leave the basic solution, we can choose either 11 Or 22 as the leaving variable and The selection of 31 (= ) as the entering variable and 11 as the leaving variable. Second iteration 1-entering variable determine Basic variable (u,v)equation Solution X12 u1+v2=2 Set u1=0 v2=2 X22 u2+v2=7 v2=2 u2= X23 u2+v3=9 u2= v3=4 X24 u2+v4=20 u2= v4=1 X31 u3+v1=4 u3=3 v1=1 X34 u3+v4=18 v4=1 u3=3 Nonbasic variable X11 X13 X14 X21 X32 X33 ui+vi-cij u1+v1-c11=0+1-=-9 u1+v3-c13=0+4-20=-16 u1+v4-c14=0+1-11=4 u2+v1-c21=+1-12=-6 u3+v2-c32=3+2-14=-9 u3+v3-c33=3+4-16=-9 Entering variable is cell(1,4) u1=0 u2= V 1=1 v2=2 v3=4 v4=1 supply 2 20 11 1-9 1- ϕ -16 ϕ 4 1 1 0+ ϕ - ϕ -6 u3=3 4 14 16-9 -9 demand 1 1 1 18 2-leaving variable determine 12=1- ϕ 0 24=- ϕ 0 12

Given the new basic solution, we repeat the computation of the multipliers" and v, as Table below shows. The entering variable is 14. The closed loop shows that 14 = and that the leaving variable is 24.. V 1=-3 v2=2 v3=4 v4=11 supply 2 20 11 u1=0 1-9 -16 u2= 1 0 1-6 u3=7-9 -9 demand 1 1 1 Third iteration 1-entering variable determine Basic variable (u,v)equation solution X12 u1+v2=2 Set u1=0 v2=2 X14 u1+v4=11 u1=0 v4=11 X22 u2+v2=7 v2=2 u2= X23 u2+v3=9 u2= v3=4 X31 u3+v1=4 u3=7 v1=-3 X34 u3+v4=18 v4=11 u3=7 Nonbasic variable X11 X13 X21 X24 X32 X33 ui+vi-cij u1+v1-c11=0+(-3)-=-14 u1+v3-c13=0+4-20=-16 u2+v1-c21=+(-3)-12=- u2+v4-c24=+11-20=-3 u3+v2-c32=7+2-14=- u3+v3-c33=7+4-16=- All value of nonbasic variable is negative and stop. 13