Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

1.1. Formulation of LPP: Chapter One: Linear Programming Problem/LPP

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 54

Chapter One: Linear Programming Problem/LPP

1.1. Formulation of LPP

The term linear implies that all the mathematical relations used in the problem are linear
or straight-line relations, while the term programming refers to the method of determining
a particular program or plan of action, i.e., the use of algorithms that is a well-defined
sequence of steps that will lead to an optimal solution. Taken as a whole, the term
linear programming refers to a family of mathematical techniques for determining the
optimum allocation of resources and obtaining a particular objective when there are
alternative uses of the limited or constrained resources.

Formulating LP models: is to define a problem, careful formulation of the model that will be
used to solve the problem is important. Linear programming algorithms (solution techniques)
are widely used and understood and computer packages are readily available for solving LP
problems. Consequently, obtaining solutions is not the real issue, what is very important to
note is failure to check that all constraints have been accounted for and have been correctly
formulated results in ill-structuring of the model that can easily lead to poor decisions.

Steps in formulating LP models:

1. Identify the decision variables.


2. Determine the objective function.
3. Identify the constraints.
4. Determine appropriate values for parameters and determine whether an upper limit, lower
limit or equality is called for.
5. Use this information to build a model.
6. Validate the model.

Example 1

ABC private limited company is engaged in the production of power and traction transformers.
Both of these categories of transformers pass through three basic processes: core preparation,
core to coil assembly, and vapor phase drying. A power transformer yields a contribution
of Birr 50,000 and traction transformer contributes Birr 10,000. The time required in the
production of these two products in terms of hours for each of the processes is as follows.

Power Transformer Traction Transformer


Core preparation 75 15
Core to Coil Assembly 160 30
Vapor Phase Drying 45 10

If the capacities available are 1000, 1500, and 750 machine hours in each processes respectively,
formulate the problem as LP?

Solution

Step1. Identify decision variables

Since the products to be produced are power and traction transformers using the
available resource to attain the objective set, we consider them as decision variables. This is
because the organization is problem here is how many of each product to produce in
order to attain the objective, which requires the management decision.

Let X1 = the no of power transformers to be produced.

X2 = the no of traction transformer to be produced

Step2. Determine Objective Function

From the problem above, we understand that the problem is maximization problem. Hence,

Z max = 50,000 X1+ 10,000 X2

This is because, each unit of X1 contributes Birr 50,000 and X2 contributes Birr 10,000 to
objective function.

Step3. Identify constraints

Here we have two constraints: structural and non-negativity constraints. The structural constraint
is the amount of machine hours available in each process.

Step4. Determining Parameters

Parameters are already identified in the table of the problem.

 Note: Step 3 and 4 can be performed simultaneously as:


75X1 + 15X2 ≤ 1000 hrs- Core preparation process

160X1 + 30X2 ≤ 1500 hrs - Core to Coil Assembly Machine hour constraint

45X1 + 10X2 ≤ 750 hrs- Vapor Phase Drying

X1 X2 ≥ 0

Step5. Building and validating the model

Z max = 50,000X1+ 10,000X2

Subject to:

75X1 + 15X2 ≤ 1000 hrs

160X1 + 30X2 ≤ 1500 hrs

45X1 + 10X2 ≤ 750 hrs

X1 X2 ≥ 0

1.2. Graphical method for two variables

Graphical linear programming is a relatively straightforward for determining the optimal


solution to certain linear programming problems involving only two decision variables.
Graphical methods provide a visual portrayal of many important concepts. In this method, the
two decision variables are considered as ordered pairs (X1, X2), which represent a point in
a plane, i.e, X1 is represented on X-axis and X2 on Y-axis.

Important Definitions

Solution The set of values of decision variables xj (j = 1, 2, 3… n) which satisfy the constraints
of an LP problem is said to constitute solution to that LP problem.

Feasible solution: The set of values of decision variables xj (j = 1,2,…… n) which satisfy all
the constraints and non- negativity conditions of an LP problems simultaneously is said
to constitute the Feasible solution to that LP problem.
Infeasible solution The set of values of decision variables xj (j = 1,2,Ö, n) which do not satisfy
all the constraints and non- negativity conditions of an LP problems simultaneously is
said to constitute the infeasible solution to that LP problem.

Basic solution For a set of m simultaneous equations in n variables ( n>m), a solution obtained
by setting ( n-m) variables equal to zero and solving for remaining m equations in m
variables is called a basic solution. The (n-m) variables whose value did not appear in this
solution are called non-basic variables and the remaining m variables are called basic
variables.

Basic feasible solution A feasible solution to LP problem which is also the basic
solution is called the basic feasible solution. That is, all basic variables assume non-negative
values. Basic feasible solutions are of two types:

 Degenerate A basic feasible solution is called degenerate if value of at least one


basic variable is zero.
 Non-degenerate A basic feasible solution is called non-degenerate if value of all m
basic variables are non- zero and positive.

Optimal Basic feasible solution A basic feasible solution which optimizes the objective
function value of the given LP problem is called an optimal basic feasible solution.

Unbounded solution A solution which can increase or decrease the value of the LP
problem indefinitely is called an unbounded solution.

Graphical solution method involves the following steps

Step 1: Plot each of the constraints- First, treat all constraints as equations. Then draw the line
for each constraint equation, including non-negativity constraint equations. That is, the constraint
boundary equation for any constraint is obtained by replacing its ≤, or ≥, signs by an = sign.

Step 2: Identify the feasible region- When we shade the relevant region for each of the
constraints in the problem, we will find a region that satisfies all the constraints in the problem.
This region is called the feasible region. It is from those points in this region that we can choose
to optimize our objective function. In a passing note that it is possible for a problem to have no
feasible region at all, the feasible region consists of feasible solutions.

Step 3: Determine the optimal point- Finally, we will choose the point in the feasible region
that will give us the optimal value for the objective function. Determination of the optimal point
can be done using the following steps:

1. Solve the simultaneous equations at each corner point to find the solution values at each
corner point.
2. Substitute these values into the objective function to find the set of values those results in
the optimum Z value.

Corner points: The points of intersection of the constraint equations in a LP problem are the
corner-point solutions of the problem.

A corner-point feasible (CPF) solution is a solution that lies at a corner of the feasible region.
It is a point that can’t be determined as a convex combination of two other points in the feasible
region.

Example 1: In order to demonstrate the method, let us take a microcomputer problem in


which a firm is about to start production of two new microcomputers, X1 and X2. Each
requires limited resources of assembly time, inspection time, and storage space. The
manager wants to determine how much of each computer to produce in order to maximize the
profit generated by selling them. Other relevant information is given below:-
Type 1 Type 2 Amount available
Profit per unit $60 $50
Assembly time per unit 4hrs 10hrs 100 hrs
Inspection time per unit 2hrs 1hr 22 hrs
Storage space per unit 3 cubic feet 3 cubic feet 39 hrs

Required
1. Develop LP model
2. Solve the model using graphic method

Example 2: Suppose a company produces metal doors and windows using three plants (1, 2, and
3). For a given week the company can operate plant 1 up to 4 hours, plant 2 up to 12 hours, and
plant 3 up to 18 hours. Producing a metal door requires 1 hour of processing in plant 1, 0 hours
in plant 2 and 3 hours in plant 3. Producing a window requires no processing in plant 1, but 2
hours of processing in each of the other plants. The profits per unit of door and window are 3
thousand and 5 thousand birr respectively. Table below shows a summary of the relevant data.

Hours per unit produced


Plants Doors Windows hours available
Plant 1 1 0 4
Plant 2 0 2 12
Plant 3 3 2 18
Unit profit/thousands 3 5

Required
1. Develop LP model
2. Solve the model using graphic method

Example:3

Minimize Z = 10x1 + 4x2

Subject to
3x1 + 2x2 ≥ 60
7x1 + 2x2 ≥ 84
3x1 +6x2 ≥ 72
x1 ≥ 0 , x2 ≥ 0

Solution

The first constraint 3x1 + 2x2 ≥ 60, written in a form of equation

3x1 + 2x2 = 60
Put x1 =0, then x2 = 30
Put x2 =0, then x1 = 20
The coordinates are (0, 30) and (20, 0)

The second constraint 7x1 + 2x2 ≥ 84, written in a form of equation

7x1 + 2x2 = 84
Put x1 =0, then x2 = 42
Put x2 =0, then x1 = 12
The coordinates are (0, 42) and (12, 0)
The third constraint 3x1 +6x2 ≥ 72, written in a form of equation

3x1 +6x2 = 72
Put x1 =0, then x2 = 12
Put x2 =0, then x1 = 24
The coordinates are (0, 12) and (24, 0) The graphical representation is:

The corner points of feasible region are A, B, C and D. So the coordinates for the
corner points are

A (0, 42)
B (6, 21) (Solve the two equations 7x1 + 2x2 = 84 and 3x1 + 2x2 = 60 to get the
coordinates)
C (18, 3) Solve the two equations 3x1 +6x2 = 72 and 3x1 + 2x2 = 60 to get the
coordinates)
D (24, 0)
We know that Min Z = 10x1 + 4x2
At A (0, 42)
Z = 10(0) + 4(42) = 168
At B (6, 21)
Z = 10(6) + 4(21) = 144
At C (18, 3)
Z = 10(18) + 4(3) = 192
At D (24, 0)
Z = 10(24) + 4(0) = 240
The minimum value is obtained at the point B. Therefore Min Z = 144 and x1 = 6, x2
= 21

1.3. Simplex method

In practice, most problems contain more than two variables and are consequently too large to be
tackled by conventional means. Therefore, an algebraic technique is used to solve large problems
using Simplex Method. Simplex method is carried out through different stages systematically
step by step, and finally the maximum or minimum values of the objective function are attained.

The simplex method solves the linear programming problem in different levels to improve the
value of the objective function. The simplex approach not only yields the optimal solution but
also other valuable information to perform economic and 'what if' analysis. To apply simplex
approach there are different conditions

 Conditions for application of simplex method


 The following two conditions have to be satisfied

1. The RHS of each of the constraint should be non-negative. If an LPP has a constraint for
which a negative resource value is given, it should be in the first step converted in to
positive value by multiplying both sides of the constraint by -1.

2. Each of the decision variables of the problem should be non-negative. Sometimes, a


problem might have a variable which is “unrestricted in sign” or free, so that it can
assume negative values as well as non-negative. This situation is handled by treating such
a variable as the difference of two variables which are both non-negative, because such a
difference may be positive, negative or zero.

Consider the following example

Max z = 5x1 + 7x2 – 2x3


s.t 2x1 + 5x2 + 3x3 <= 80
5x1 + 2x2 – 2x3 <= 30
x2 + 6x3 <= 42
x1, x2 >= 0, x3 unrestricted in sign
Since x3 is unrestricted in sign, we can represent it by a difference of two non-negative variables,
say x4 and x5. Substituting x3 = x4 – x5, in the above and simplifying it, we will get

Max Z = 5x1 + 7x2 – 2x4 + 2x5


Subject to 2x1 + 5x2 + 3x4 - 3x5 <= 80
5x1 + 2x2 – 2x4 + 2x5 <= 30
x2 + 6x4 - 6x5 <= 42
x1, x2, x4, x5 >= 0

After the solution is obtained, we shall substitute the difference of the values of x4 and x5 as the
value of x3.

ADDITIONAL VARIABLES USED IN SOLVING LPP

Three types of additional variables are used in simplex method such as,

(a) Slack variables (S1, S2, S3..…Sn): Slack variables refer to the amount of unused resources like
raw materials, labor and money.

(b) Surplus variables (-S1, -S2, -S3..…-Sn): Surplus variable is the amount of resources by which
the left hand side of the equation exceeds the minimum limit.

(c) Artificial Variables (a1, a2, a3.. …an): Artificial variables are temporary slack variables which
are used for purposes of calculation, and are removed later.

The above variables are used to convert the inequalities into equality equations, as given in the
Table next slide.

Types of Additional Variables

Constraints Type Varaibles added Format

A Less than or equal to ≤ Add slack variables +S

B Greater than or equal to ≥ Subtract surpluss variables -S + a


and add artificial varables

C Equal to = Add artificial variables +a


Procedure of simplex Method

Step 1: Formulate the LP problem.

Step 2: Introduce slack /auxiliary variables.

if constraint type is ≤ introduce + S

if constraint type is ≥introduce – S + a and

if constraint type is = introduce a

Step 3: Find the initial basic solution.

Step 4: Establish a simplex table and enter all variable coefficients.

Step 5: Take the largest coefficient in the objective function, Zj to identify the key column (the
corresponding variable is the entering variable of the next table).

Step 6: Find the ratio between the solution value and the coefficient of the key column. Enter
the values in the minimum ratio column.

Step 7: Take the minimum positive value available in the minimum ratio column to identify the
key row. (The corresponding variable is the leaving variable of the table).

Step 8: The intersection element of the key column and key row is the pivotal element.

Step 9: Construct the next table by eliminating the leaving variable and introducing the entering
variable.

Step 10: Convert the pivotal element as 1 in the next table and compute the other elements in
that row accordingly. This is the pivotal equation row (not key row).

Step 11: Other elements in the key column must be made zero. For simplicity, form the
equations as follows: Change the sign of the key column element, multiply with pivotal
equation element and add the corresponding variable.

Step 12: Check the values of objective function. If there are positive values, the solution
is not an optimal one; go to step 5. Else, if all the values are negative, optimality is
reached.

Solution to Maximization Problem

• Consider the LPP given below


Max Z = 40x1 +35x2

subject to 2x1 + 3x2 <= 60 raw materials constraints

4x1 + 3x2 <= 96 Labor Hours constraints

x1, x2 >= 0

The solution in step wise is

1. Standardization of the problem: The first step in applying simplex method is to


standardize the problem. For this inequalities of the constraints are converted into
equations. To convert it into an equation, we need to add a variable S 1, on the LHS of the
first equation and S2 on the second equation

Thus, the equations are

2x1 + 3x2 + s1 = 60

4x1 + 3x2 + s2 = 96

The value of S1, depends on the value of 2x1 + 3x2 = 60. It may vary from the rang 0 to 60.

The value of S2 depends on the value of 4x1 + 3x2 = 96 and it may vary from the range 0 to 96.

The value of S1 and S2 indicates the amount of unused resources.

• The objective function should also modified. Because objective function for the simplex
method should contains every variables in the system including slack or other variables.

• Then, the objective function is expressed as

Max Z = 40x1 + 35x2 + 0S1 + 0S2

2. Obtaining the initial tableau and solution using the standardized form. The initial simplex
tableau is as follow

Max Z = 40x1 + 35x2 + 0S1 + 0S2

S.T 2x1 + 3x2 + S1 = 60

4x1 + 3x2 + S2 = 96
1.4. Big „m‟ method

Minimization linear programming problems /Charnes Penalty Method/

The Big-M Method is a technique, which is used in removing artificial variables from the basis.
In this method; we assign coefficients to artificial variables, undesirable from the
objective function point of view. If objective function Z is to be minimized, then a very
large positive price (called penalty) is assigned to each artificial variable. Similarly, if Z
is to be maximized, then a very large negative cost (also called penalty) is assigned to
each of these variables.

Following are the characteristics of Big-M Method:

 High penalty cost (or profit) is assumed as M


 M as a coefficient is assigned to artificial variable A in the objective function Z.
 Big-M method can be applied to minimization as well as maximization problems
with the following distinctions:
I. Minimization problems -Assign +M as coefficient of artificial variable A in the
objective function Z of the minimization problem.
II. Maximization problems: -Here -M is assigned as coefficient of artificial variable
A in the objective function Z of the maximization problem.
 Coefficient of S (slack/surplus) takes zero values in the objective function Z
 For minimization problem, the incoming variable corresponds to the highest negative
value of Cj -Zj.
 The solution is optimal when there is no negative value of Cj-Zj.(For
minimization LPP case)

The various steps involved in using simplex method for minimization problems are:

Step 1. Formulate the linear programming model, and express the mathematical model of L.P.
problem in the standard form by introducing surplus and artificial variables in the left
hand side of the constraints. Assign a 0 (zero) and +M as coefficient for surplus and
artificial variables respectively in the objective function. M is considered a very large
number so as to finally drive out the artificial variables out of basic solution.

Step 2. Next, an initial solution is set up. Just to initiate the solution procedure, the initial basic
feasible solution is obtained by assigning zero value to decision variables. This solution is
now summarized in the initial simplex table. Complete the initial simplex table by adding two
final rows Z, and Cj - Zj. These two rows help us to know whether the current solution is
optimum or not.

Step 3. Now; we test for optimality of the solution. If all the entries of Cj- Zj, row are positive,
then the solution is optimum. However, this situation may come after a number of iterations.
But if at least one of the Cj- Zj values is less than zero, the current solution can be
further improved by removing one basic variable from the basis and replacing it by some non-
basic one.

Step 4. (i) Determine the variable to enter the basic solution. To do this, we identify the
column with the largest negative value in the Cj- Zj row of the table.
(ii) Next we determine the departing variable from the basic solution. If an artificial variable
goes out of solution, then we discard it totally and even this variable may not form part
of further iterations. Same procedure, as in maximization case, is employed to determine the
departing variable.

Step 5. We update the new solution now. We evaluate the entries for next simplex table in
exactly the same manner as was discussed earlier in the maximization case.

Step 6. Step (3-5) are repeated until an optimum solution is obtained. So the following are the
essential things to observe in solving for minimization problems:

 The entering variable is the one with the largest negative value in the Cj-Zj row
while the leaving variable is the one with the smallest non-negative ratio.
 The optimal solution is obtained when the Cj-Zj row contains entirely zeros and positive
values.
Example

Assume the following minimization problem.

Min Z = 7X1+9X2
Subject to 3X1+6X2 ≥ 36
8X1+4X2 ≥ 64
X1 X2 ≥ 0
We introduce both surplus and artificial variables into both constraints as follows.

Min Z = 7X1+9X2+0S1+0S2+MA1+MA2
Subject to 3X1+6X2 - S1+A1 = 36
8X1+4X2 -S2+A2 = 64
X1, X2 > = 0
So the subsequent tableaus for this problem are shown below. To remind in these tableaus is in
transforming from one tableau to another, we perform elementary row operations to obtain
the unit vector in the pivot column for the entering variable into the solution.

Initial Simplex Tableau


Second Simplex Tableau

Third Simplex Tableau

The third tableau represents a final tableau since it is the optimal solution with entirely
zeros and non-negative values in the Cj-Zj row. Therefore, the optimal solution is X1 = 20/3
and X2 = 8/3 and value of objective function is 212/3.
Chapter two
2. Some Advanced Topics in LPP

2.1. Degeneracy/Tie for leaving and entering variables/

Two Incoming Variables /Tie for Entering Variables/


In order to break this tie, the selection for the key column (entering variable) can be made
arbitrary. However; the number of solution can be minimized by adopting the following rules:
1. If there is a tie between two decision variables, then the selection can be made arbitrary.
2. If there is a tie between a decision variable and a slack (or surplus) variable, then select
the decision variable to enter into basis first.
3. If there is a tie between slack or surplus variable, then selection can be made arbitrary.

Example:

If the equation is max Z:


Cj
SV X1 X2 S1 Q
S2
: : : : :
Zj
Cj - Zj 5 2 5 0

In such a case, X1 is the entering variable

Degeneracy/Tie for leaving basic variable (key row)/

The tie occurs when two or more net evaluation row elements of variables are equal. In
maximization problem, we select the highest positive element to indicate incoming variable and
in minimization we select lowest element to indicate incoming variable (or highest numerical
value with negative sign). When two or more net evaluation row elements are same, to break the
tie, we select any one of them to indicate incoming variable and in the next iteration the problem
of tie will be solved.

To select the outgoing variable, we have to select the lowest ratio or limiting ratio in the
replacement ratio column. Here also, some times during the phases of solution, the ratios may be
equal. This situation in linear programming problem is known as degeneracy. To solve
degeneracy, the following methods are used:

1. Select any one row as you please. If you are lucky, you may get optimal solution, otherwise
the problem cycles. OR
2. Identify the rows, which are having same ratios. Say for example, S1and S3rows having
equal ratio. In such case select the row, which contains the variable with smaller subscript.
That is select row containing S1as the key row. Suppose the rows of variable x and z are
having same ratio, and then select the row-containing x as the key row.
3. (a) Divide the elements of unit matrix by corresponding elements of key column. Verify the
ratios column-wise in unit matrix starting from left to right. Once the ratios are unequal, the
degeneracy is solved. Select the minimum ratio and the row containing that element is the
key row. (This should be done to the rows that are in tie). (b) If the degeneracy is not solved
by 3 (a), then divide the elements of the main matrix by the corresponding element in the key
column, and verify the ratios. Once the ratios are unequal, select the lowest ratios. (This
should be done only to rows that are in tie).

Problem: A company manufactures two products A and B. These are machined on machines X
and Y. A takes one hour on machine X and one hour on Machine Y, Similarly product B takes 4
hours on Machine X and 2 hours on Machine Y. Machine X and Y have 8 hours and 4 hours as
idle capacity. The planning manager wants to avail the idle time to manufacture A and B. The
profit contribution of

A is Rs. 3/– per unit and that of B is Rs.9/– per unit. Find the optimal product mix.
Now to select the outgoing variable, we have to take limiting ratio in the replacement ratio
column. But both the ratios are same i.e. = 2. Hence there exists a tie as an indication of
degeneracy in the problem. To solve degeneracy follow the steps mentioned below:

i. Divide the elements of identity column by column from left to right by the corresponding key
column element. Once the ratios are unequal select the lowest ratio and the row containing
that ratio is the key row. In this problem, for the first column of the identity (i.e. the
S1column) the ratios are: 1/4, and 0/2. The lowest ratio comes in row of S2. Hence S2 is the
outgoing variable. In case ratios are equal go to the second column and try.

2.2. Duality in LPP


• Every linear programming model can have two forms.

• The original formulation of the problem is referred to primal form. The other form is called the
dual.

• The dual is the mirror image of the primal.


• Solution of the primal problem contains solution of the dual and vice versa

Formulating the Dual

The following rules which guide the formulation of the dual problem will
give you the summary of the general relationship between primal and dual
LP problems.

If the primal objective is to minimize, the dual’s will be to maximize; and


the vice versa

If the constraints of the primal are >= that of dual will be <= or vice versa

The coefficients of the primal’s objective function become the RHSV


for the duals constraints.

The primal’s RHS values become the coefficients of the dual’s objective
function.

The coefficients of the first row of the primal’s constraints become the
coefficients of the first column of the duals constraint …

Number of decision variables become number of constraints and vice versa


Formulate a dual of:
Minimize 40X1 + 44X2 + 48X3
Subject to
X1+ 2X2+ 3X3 ≥ 20
4X1+4X2+4X3 ≥ 30
X1, X2, X3 ≥ 0
Maximize 20y1+30y2
Subject to:
1Y1+4Y2 ≤ 40
2y1+ 4Y2 ≤ 44
3Y1+ 4Y2 ≤ 48
Y1, Y2 ≥ 0
Formulate the dual of:
Maximize 50X1 + 80X2
Subject to
3X1+ 5X2≤ 45
4X1+ 2X2≥ 16
6X1+ 6X2=30
Minimize 45y1-16y2+30y3-30y4
Subject to
3y1-4y2+6y3-6y4≥ 50
5y1-2y2+6y3-6y4≥ 80
y1, y2, y3, y4 ≥ 0
Comparing primal and dual simplex solution

 The solution quantities of the dual are equal to shadow prices of the primal
 The values of the solution quantities of the primal can be found in the bottom
row of the dual.
 A firm, that assembles computers and computer equipment, is about to start
production of two new microcomputers. Each type of microcomputer will
require assembly time inspection time and storage space. The amount of each of
these resources that can be devoted to the production of the micro computers is
limited. The manager of the firm would like to determine the quantity of each of
the microcomputers to produce in order to maximize the profit generated by
sales of these microcomputers. The following additional information is
provided.

Type 1 Type 2
Profit per unit 60 50
Assembly time/unit 4hrs 10hrs
Inspection time/unit 2hrs 1hrs
Storage space/ unit 3 cubic feet 3 cubic feet
Resources available
Assembly time 100hrs
Inspection time 22 hrs
Storage space 39 cubic feet
Required

 Formulate the problem as LLP


 Solve using graphical method
 Solve using simplex method
 Find duality of the problem
 Compare the primal and dual
 Construct the range of optimality and feasibility for the objective function
coefficient and right hand side values.
 Interpret the shadow prices.
 Assume that type the profit of type one product is 100 birr and that of type two
product is 50 birr per unit. Will the optimal solution change?
 What if the profit contribution of type one and type are 50 and 50 birr each.
CHAPTER THREE

3. Transportation and Assignment Problems

3.1. Introduction

The Transportation problem is to transport various amounts of a single homogeneous commodity


that are initially stored at various origins, to different destinations in such a way that the total
transportation cost is a minimum.

It can also be defined as to ship goods from various origins to various destinations in
such a manner that the transportation cost is a minimum. The availability as well as the
requirements is finite. It is assumed that the cost of shipping is linear.

The problem of finding the minimum-cost distribution of a given commodity from a group of
supply centers (sources) i=1… m to a group of receiving centers (destinations) j=1… n

 Each source has a certain supply (Si)


 Each destination has a certain demand (dj)
 The cost of shipping from a source to a destination is directly proportional to the number
of units shipped

Transportation network representation


The Transportation Model
Decision: How much to ship from each origin to each destination?

Objective: Minimize shipping cost

Sources and destinations

Decision Variables
Xij = number of products shipped from factory i to warehouse j

Objective Function: (in birr of transportation cost)

Subject to the constraints: (Supply considerations!)


Demand considerations

Objective Function: (in birr of transportation cost)

Subject to the constraints:

Can we apply a simple method to the above problem?


 The above problem can be solved using a simplex algorithm.
 But it will be so lengthy procedure to arrive at a solution.
Why?
 Because of large no. of decision and artificial variables.
 The transportation method is an alternative method which is more efficient to arrive at an optimal
solution.
The Transportation Model
A very common supply chain involves the shipment of goods from suppliers at one set of
locations to customers at another set of locations.

The classic transportation model is characterized by:

1) a set of supply sources (each with known capacities),


2) a set of demand locations (each with known requirements) and
3) the unit costs of transportation between supply-demand pairs.

Methods of solving transportation problem

 North west corner (NWC)


 Least cost method (LCM)
 Vogel’s approximation method (VAM)

A. The Northwest-Corner Method

The northwest corner method is a systematic approach for developing an initial feasible
solution. Its chief advantages are that it is simple to use and easy to understand. Its
chief drawback is that it does not take transportation costs into account. Consequently,
such a solution may require much additional effort to obtain the optimal solution.

The northwest corner method gets its name because the starting point for the allocation process is
the upper left-hand (Northwest) corner of the transportation table. For the Harley problem, this
would be the cell that represents the route from Farm A to Project #1. The following set of
principles guides the allocation:

I. Begin with the upper left-hand cell, and allocate as many units as possible to that cell.
This will be the smaller of the row supply and the column demand. Adjust the
row and column quantities to reflect the allocation.
II. Remain in a row or column until its supply or demand is completely
exhausted or satisfied, allocating the maximum number of units to each cell in turn,
until all supply has been allocated (and all demand has been satisfied because we
assume total supply and demand are equal).
Initial Feasible Solution for Harley using Northwest-corner method

The total cost is found by multiplying the quantities in completed (i.e. nonempty) cells by the
Cell’s unit cost and, then, summing those amounts. Thus:

Total cost = 50(4) + 50(2) + 100(1) + 100(9) + 200(3) = $1900

As noted earlier, the main drawback of the northwest-corner method is that it does not consider
cell (route) costs in making the allocation. Consequently, if this allocation is optimal, that can be
attributed to chance rather than the method used.

B. Least cost method (LCM)


Minimum-Cost Method

Step 1: Select the cell with the least cost. Assign to this cell the minimum of its remaining row
supply or remaining column demand.

Step 2: Decrease the row and column availabilities by this amount and remove from
consideration all other cells in the row or column with zero availability/demand.

(If both are simultaneously reduced to 0, assign an allocation of 0 to any other unoccupied cell in
the row or column before deleting both.) GO TO STEP 1.

Initial solution using the LCM:

Ship from 1 to B= 25*8=200


Ship from 1 to C=125*10=1250
Ship from 2 to C=175*11=1925
Ship from 3 to A=200*4=800
Ship from 3 to B= 75*5= 375

Or 200+ 1250+1925 + 800 + 375= birr 4550


Minimum cost from the initial tableau using the least cost approach is:

=Birr 8(25) + 10(125) + 11(175) + 4(200) + 5(75)


=200+ 1250+1925 + 800 + 375
= Birr 4,550
Checking for optimality
But.. Is this an optimal solution to the above transportation problem?
Solution methods
We need a method, like the simplex method, to check and obtain the optimal solution
 Two methods:
1. Stepping-stone method
2. Modified distributed method (MODI) (Self reading is a must)

Checking for optimality

1. The Stepping-Stone Method


I. Select any unused square to evaluate.
II. Begin at this square. Trace a closed path back to the original square via squares that are
currently being used (only horizontal or vertical moves allowed).
III. Place + in unused square; alternate - and + on each corner square of the closed path.
IV. Calculate improvement index: add together the unit cost figures found in each square
containing a +; subtract the unit cost figure in each square containing a -.
V. Repeat steps 1 - 4 for each unused square.
Empty (non-basic) cells Occupied (basic) cells

 Empty (non-basic) cells


 Occupied (basic) cells

Empty cells in the above case:


Empty cells in the above case:
DB=
DC=
EC=
FA=
How can we construct paths for these empty cells?

C. Stepping-stone method

Let consider the following initial tableau from the Min Cost algorithm
Total cost of LCM at the initial solution was birr 8(25) + 10 (125) + 11(175) + 4(200) + 5(75)=
birr 4,550

Introduce a non-basic variable (empty cells) into basic variables (occupied cells)

Empty cells are:

A1= +6-8+5-4= -1 (there is a cost saving if reshuffling is made on the shipment levels)

A2=+7-11+10-8+5-4=22-23= -1
B2= +11-11+10-8= +2
C3= +12-10+8-5= +5 (reshuffling will bring increases in costs)

There will be cost minimization for A1 and A2. But for B2 and C3 cost will increase if
reshuffling is exercised!

Introduce a non-basic variable into basic variables

 Here, we can select any non-basic variable as an entry and then using the “+ and –” steps
to form a closed loop as follows:
Stepping stone

The above saying that, we add min value of all –ve cells into cell that has “+” sign, and subtracts
the same value to the “-ve” cells. Thus, max –ve is min (200, 25) = 25 and we add 25 to cell A1
and B3, and subtract it from B1 and A3

Net saving in cost= A1= +6-8+5-4= -1


= -1 (there is a cost saving if reshuffling is made on the shipment levels)

A2=+7-11+10-8+5-4=22-23= -1
B2= +11-11+10-8=+2
C3= +12-10+8-5= +5
Stepping stone

The above tableau gives min cost = 25*6 + 120*10 + 175*11 175*4 + 100* 5 = birr 4,525

We can repeat this process to all possible non-basic cells in that above tableau until one has the
min cost!

Stepping stone

The above tableau gives min cost = 25*6 + 120*10 + 175*11175*4 + 100* 5 =
birr 4,525
We can repeat this process to all possible non-basic cells in that above tableau until one has the
min cost!

 Total cost of LCM at the initial solution was birr 8(25) + 10 (125) + 11(175) + 4(200) +
5(75) = birr 4,550
 The optimal tableau gives min cost ==25*6 + 120*10 + 175*11 + 175*4 + 100* 5 = birr
4,525
 The total cost of LCM in the optimal solution is= Birr 4,525

D. Vogel’s approximation method

Operational steps using Vogel’s method:

Step 1: for each column and row, determine its penalty cost by subtracting their two of their least
cost

Step 2: select row/column that has the highest penalty cost in step 1

Step 3: assign as much as allocation to the selected row/column that has the least cost

Step 4: Block those cells that cannot be further allocated

Step 5: Repeat above steps until all allocations have been assigned

Step 1
Subtracting their two of their least cost

Step 1

Steps 2 & 3
Step 4

Step 5 Second Iteration


3rd Iteration of VAM

Initial tableau for VAM


Optimal solution?
Initial solution from:
The min cost, total cost = birr 4,550
VAM, total cost = Birr 5,125
Northeast cost, total cost = birr 5,925
(note: here, we are not saying the second one always better!)
It shows that the second one has the min cost, but is it the optimal
solution?
Optimal solution?
Initial solution from:
VAM (TC) = birr 10(150) + 7(175) + 4(25) + 5(100) + 12 (150)

VAM, total cost = Birr 5,125

But is it the optimal solution?


VAM optimal level minimum cost will be= 5,025 birr There is an alternative solution with
the 0 difference in the stepping stone but it doesn’t minimize the TC

3.4. Variation in Transportation


3.4.1. Unbalanced supply and demand
 In real-life problems, total demand is frequently not equal to total supply.
 These unbalanced problems can be handled easily by introducing dummy sources or
dummy destinations.
 If total supply is greater than total demand, a dummy destination (warehouse), with
demand exactly equal to the surplus, is created.
 If total demand is greater than total supply, we introduce a dummy source (factory) with a
supply equal to the excess of demand over supply.
Unbalanced Transportation Problems:

 In either case, shipping cost coefficients of zero are assigned to each dummy location
or route as no goods will actually be shipped.
 Any units assigned to a dummy destination represent excess capacity.
 Any units assigned to a dummy source represent unmet demand.

Example: Unbalanced case

A company has orders for 80 tons of bricks at three locations as follows: Warehouse1
(25 tons), Warehouse2 (45 tons), and Warehouse3 (10 tons). The company has two factories
that can produce 50 tons per week. The company can use the factories as a source for its
demand for bricks.

How should the week shipments be made to fill the above orders given the following delivery
cost per ton in birr:

• Initial Transportation Tableau


• Total supply (factories production) is 100
• Total demand (warehouse capacity) is 80
• A dummy destination is created with demand of 20 and 0 unit costs.
Unbalanced transportation problem Iteration 1
Total cost of the initial table=880 birr

• Total cost of the initial solution is birr 880


 But is there any improvement in costs?

Stepping stone and evaluating empty cells.

We have three empty cells= F1w3, F2W1, and F2Dummy.

 F1w3= +14-10+12-15

= +1 (No further improvement in cost)

F2w1= +10-8+10-12= 0 (No improvement but there is alternative route without cost change)

F2Dummy= 0-0+14-15=-1 there will be improvement if we move to F1dummy


Make reallocation with the smallest value!!

Unbalanced transportation problem Iteration 2

Total cost of the second table is birr 870

 But is there any improvement in costs?

Stepping stone and evaluating empty cells.

We have two empty cells= F2W1, and F2w3.

 F2w1= +10-8+10-12= 0 (No improvement but there is alternative route without cost change)
 F2w3= +15-12+10-14=-1

There is further improvement in cost

F2w3= +15-0+0-14= = +1 (cost will increase)


Unbalanced transportation problem Iteration 2

Unbalanced transportation problem Iteration 2

Optimal solution
 Total cost of the second table is birr 865
 But is there any improvement in costs?

Stepping stone and evaluating empty cells.

We have only one empty cells= F2W1.

 F2w1= +10-8+10-12= 0 (No improvement but there is alternative route without


cost change)
No negative value using the stepping stone!!
The solution will be an optimal one!

Optimal solution
Solution to the shipment:
F1 to W1= 25 tons*8= birr 200
F1 to W2= 10 tons*10= Birr 100
F1 to W3= 5 tons*14= Birr 70
F2 to W2= 35 tons*12= Birr 420
F2 to W3= 5 tons*15= Birr 75
Total cost of shipment = Birr 865

3.4.2. Degeneracy
A solution is degenerate if the number of occupied cells is less than the number of rows plus the
number of columns minus one. i.e., there are too few occupied cells to enable all the
empty cells to be evaluated. In the case of the stepping-stone method, this means that
there will be at least one empty cell for which an evaluation path cannot be constructed.
Obviously, some modification has to be made to determine if such a degenerate solution
is optimal. The modification is to treat some of the empty cells as occupied cells. This is
accomplished by placing a delta () in one of the empty cells. The delta represents an extremely
small quantity (e.g., 0.001 unit); it is so small that supply and demand for the row and
column involved will be unaffected even without modifying other quantities in the row or
column, and so small that total cost will not change.

The purpose of the delta is to enable evaluation of the remaining empty cells. The
choice of location for the delta can be somewhat tricky: some empty cells may be
unsuitable if they do not enable evaluations of the remaining empty cells. Moreover, the
delta cannot be placed in a cell which later turns out to be in a negative position of a
cell path involved in reallocation because delta will be the smallest quantity in a negative
position and shifting that minute quantity around the cell path will leave the solution
virtually unchanged. Consequently, a certain amount of trial and error may be necessary
before a satisfactory location can be identified for delta.
The technique can be demonstrated for the degenerate alternate solution of the Harley problem.

Suppose that after some experimentation, cell A-1 has been selected for the location of
delta. The resulting index numbers generated using MODI and the improvement potential
for empty cells based on delta in cell A-1 are shown in the following table. This confirms that
the solution is optimal

Harley Alternate Solution Modified for Degeneracy

3.5. Solution method for Assignment problem


 An assignment problem seeks to minimize the total cost assignment of m workers to m jobs,
given that the cost of worker i performing job j is Cij
 It assumes all workers are assigned and each job is performed.
 An assignment problem is a special case of a transportation problem in which all supplies
and all demands are equal to 1; hence assignment problems may be solved as linear
programs.
 The network representation of an assignment problem with three workers and three jobs is
shown on the next slide.

The Assignment Problem (AP); It is a special case of TP with m=n and Si = Dj for all i, and
j.
The Hungarian Algorithm e.g. solving the assignment problem of a least cost assignment of m
workers to m jobs

Assumptions:

1. There is a cost assignment matrix for the m “people” to be assigned to m “tasks.” (If
necessary dummy rows or columns consisting of all 0’s are added so that the numbers of
people and tasks are the same.)
2. All costs are nonnegative.
3. The problem is a minimization problem.

The Hungarian Algorithm

Initialization

1. For each row, subtract the minimum number from all numbers in that row.
2. In the resulting matrix, subtract the minimum number in each column from all numbers
in the column.

Iterative Steps

1. Make as many 0 cost assignments as possible. If all workers are assigned, STOP; this is
the minimum cost assignment. Otherwise draw the minimum number of horizontal and
vertical lines necessary to cover all 0’s in the matrix. (A method for making the
maximum number of 0 cost assignments and drawing the minimum number of lines to
cover all 0’s follows.)
2. Find the smallest value not covered by the lines; this number is the reduction value.
3. Subtract the reduction value from all numbers not covered by any lines. Add the
reduction value to any number covered by both a horizontal and vertical line. GO TO
STEP 1.

For small problems, one can usually determine the maximum number of zero cost assignments
by observation. For larger problems, the following procedure can be used:

Determining the Maximum Number of Zero-Cost Assignments


1. For each row, if only one 0 remains in the row, make that assignment and eliminate the row
and column from consideration in the steps below.
2. For each column, if only one 0 remains, make that assignment and eliminate that row and
column from consideration.
3. Repeat steps 1 and 2 until no more assignments can be made. (If 0’s remain, this means that
there are at least two 0’s in each remaining row and column. Make an arbitrary assignment
to one of these 0’s and repeat steps 1 and 2.) Again, for small problems, the minimum
number of lines required to cover all the 0’s can usually be determined by observation. The
following procedure, based on network flow arguments, can be used for larger problems:

Drawing the Minimum Number of Lines to Cover All 0’s

1. Mark all rows with no assignments (with a “‧”).


2. For each row just marked, mark each column that has a 0 in that row (with a “‧”).
3. For each column just marked, mark each row that has an assignment in that column
(with a “‧”).
4. Repeat steps 2 and 3 until no more marks can be made.
5. Draw lines through unmarked rows and marked columns.
Example:

You might also like