E N D
5. Transportation Problems • The transportation problem is a special type of linear program that arises in planning the distribution of goods and services from several supply points to several demand locations. • Transportation probleminvolve determining how to optimally (minimum shipping cost) transport goods from the sources to destinations. • Usually we are given the capacity of goods at each source and the requirements at each destination • Typically the objective is to minimize total transportation and production costs • The transportation model can also be optimally solved by Linear Programming.
The LP Formulation . Supply Constraints (rows) . Demand Constraints (columns)
Consider the case given below. There are sources (Albuquerque, Boston and Cleveland) and there are destinations (Des Moines Evansville and Fort Lauderdale) with costs, and constraints for capacity and demand.
As a result, we can minimize the total project cost (normal costs plus crashing costs) by minimizing the crashing costs. Thus, the linear programming objective function becomes This simply states that the start time for the following activity must be at least as great as the finish time for each immediate predecessor with crashing applied. The maximum allowable crash-time constraints follow
Basic feasible solution can be obtained by three methods, they are • North - west corner method, • Least - cost cell method, • Vogel's Approximation Method, generally known as VAM. After getting the basic feasible solution, do optimality test to check whether the solution is optimal or not. There are two methods of doing optimality test, they are • Stepping Stone Method, • Modified Distribution Method, generally known as MODI method.
Step1Start from the left hand side top corner or cell and make allocations depending on the availability and requirement constraint. Step 2 By satisfying availability and requirement constraints fill the other cells. Z=1005 + 2008+1004+1007+2005=500+1600+400+700+1000=4200 $
Initial Solution with LEAST COST method • Identify the lowest cost cell in the given matrix. In this particular example it is 3. Make allocations to this cell. After filling search for lowest cost cell. Proceed this way until all allocations are made. Z=3009+2004+1003+1003=2700+800+300+300=4100 $
Initial Solution with Vogel’s Approximation Method (VAM) • Step 1: For each row and column find the difference between the two lowest unit shipping costs.
Step 2 Assign as many units as possible to the lowest-cost square in the row and column selected.
Z= 1005+2004+1003+2009+1005=500+800+300+1800+500=3900 $
STEPPING STONE METHOD of optimality test Once, we get the basic feasible solution for a transportation problem, the next duty is to test whether the solution we got is an optimal solution or not? • Steps to test unused squares; • Select an unused square, • Allocate +①unit to unused square and locate -① and +① alternatively to corners of the selected closed path, • Calculate the improvement index , • If improvement index is negative allocate as much as you can to that unused square, • Repeat the allocation till the improvement index is ≥0 for all unused squares.
Since there is a decrease in the cost, we will allocate as much as we can to Fort Lauderdale – Albuquerque. The amount is the minimum of the numbers that we are assigning -① in the cycle. Z=1005 + 1008+2004+1009+2005=500+800+800+900+1000=4000 $
An improvement can be done by allocating to EC, since the minimum number in the square is 100; we allocate 100 to EC square.
Z=1005 + 2009+2004+1003+1005=500+1800+800+300+500=3900 $ We will check the Improvement index in each cell again. In the table, no more negative improvement index, so the solution is optimal.
Example A company has three factories X, Y, and Z and three warehouses A, B, and C. It is required to schedule factory production and shipments from factories to warehouses in such a manner so as to minimize total cost of shipment and production. Unit variable manufacturing cost (UVMC) and factory capacities and warehouse requirements are given below: a) Load the table with North-west method. b) Load the table with least cost method. c) Load the table with Vogel’s approximation method, (VAM). d) Solve the question by stepping stone algorithm.
Example The demand and capacity are given. a) Load the table with North-west method. b) Load the table with least cost method. c) Load the table with Vogel’s approximation method, (VAM). d) Solve the question by stepping stone algorithm.
Assignment Model • Allocating one person to one job and minimizing the time or cost of problem is solved by ASSIGNMENT MODEL. • The assignment problemrefers to the class of LP problems that involve determining the most efficient assignment of resources to tasks • The objective is most often to minimize total costs or total time to perform the tasks at hand
There are n!=4!=432 1=24 number of solutions. If there is 5 assignment there will be 5!=120 different combinations.Therefore , instead of writing all the combinations, an algorithm (Hungarian Method) will be used to find the solution.
Hungarian Method • The Hungarian method is an efficient method of finding the optimal solution to an assignment problem without having to make direct comparisons of every option • It operates on the principle of matrix reduction • By subtracting and adding appropriate numbers in the cost table or matrix, we can reduce the problem to a matrix of opportunity costs • Opportunity costs show the relative penalty associated with assigning any person to a project as opposed to making the best assignment • We want to make assignment so that the opportunity cost for each assignment is zero
Step4. If the lines drawn are less than the number of rows or columns, then we cannot make assignment. Hence the following procedure is to be followed: - The cells covered by the lines are known as Covered cells. - The cells, which are notcovered by lines, are known as uncovered cells. - The cells at the intersection of horizontal line and vertical lines are known as Crossed cells. (a) Identify the smallest element in the uncovered cells. (i)Subtract this element from the elements of all other uncovered cells. (ii) Add this element to the elements of the crossed cells. (iii) Do not alter the elements of covered cells. (b) Once again cover all the zeros by minimum number of horizontal and vertical lines. (c) Once the lines drawn are equal to the number of rows or columns, assignment can be made.
Example There are 3 jobs A, B, and C and three machines X, Y, and Z. All the jobs can be processed on all machines. The time required for processing job on a machine is given below in the form of matrix. Make allocation to minimize the total processing time.
Example 1: Powerco Formulation • Powerco has three electric power plants that supply the electric needs of four cities. • The associated supply of each plant and demand of each city is given in the table 1. • The cost of sending 1 million kwh of electricity from a plant to a city depends on the distance the electricity must travel.
Ex. 1 - continued • A transportation problem is specified by the supply, the demand, and the shipping costs. Relevant data can be summarized in a transportation tableau.
Example 1: Solution • Decision Variables • Powerco must determine how much power is sent from each plant to each city so xij = Amount of electricity produced at plant i and sent to city j • x14 = Amount of electricity produced at plant 1 and sent to city 4 • Constraints • A supply constraint ensures that the total quality produced does not exceed plant capacity. Each plant is a supply point. • A demand constraint ensures that a location receives its demand. Each city is a demand point. • Since a negative amount of electricity can not be shipped all xij’s must be non negative
Ex. 1 – Solution continued • LP Formulation of Powerco’s Problem Min Z = 8x11+6x12+10x13+9x14+9x21+12x22+13x23+7x24 +14x31+9x32+16x33+5x34 S.T.: x11+x12+x13+x14 <= 35 (Supply Constraints) x21+x22+x23+x24 <= 50 x31+x32+x33+x34 <= 40 x11+x21+x31 >= 45 (Demand Constraints) x12+x22+x32 >= 20 x13+x23+x33 >= 30 x14+x24+x34 >= 30 xij >= 0 (i= 1,2,3; j= 1,2,3,4)
Example 4: Machine Assignment Problem • Machineco has four jobs to be completed. • Each machine must be assigned to complete one job. • The time required to setup each machine for completing each job is shown. • Machineco wants to minimize the total setup time needed to complete the four jobs.
Exercise 4: Solution • Machineco must determine which machine should be assigned to each job. • i,j=1,2,3,4 • xij=1 (if machine i is assigned to meet the demands of job j) • xij=0 (if machine i is not assigned to meet the demands of job j)
Ex. 4 – Solution continued • In general an assignment problem is balanced transportation problem in which all supplies and demands are equal to 1. • The assignment problem’s matrix of costs is its cost matrix. • All the supplies and demands for this problem are integers which implies that the optimal solution must be integers. • Using the minimum cost method a highly degenerate bfs is obtained.