Professional Documents
Culture Documents
Duality is a property of the simplex method that adds further versatility to the
general LP model.
The term dual indicates that there are two ways of looking at each problem.
Associated with every LPP, there is another intimately related LPP.
The original LPP is called the primal problem while the corresponding
intimately related problem is called its dual problem.
Every LPP has another LPP associated with it, which is called its dual.
The first way of starting a linear problem is called the primal of the problem.
The second way of starting the same problem is called the dual.
The dual contains economic information useful to management, and it may also
be easier to solve, in terms of less computation, than the primal problem.
Normal max problem is a problem in which all the variables are required to be
non-negative and all the constraints are ≤ constraints.
If the primal has optimal solution, the dual will have optimal solution.
If the primal has no optimal solution, the dual will not have optimal solution.
Whether we follow the dual or primal system, the optimal solution will
remain equal.
2. Coefficients of the objective function in the dual problem come from the right
hand side of the original problem.
4. The coefficients for the first constraint function for the dual problem are the
coefficients of the first variable in the constraints for the original problem, and
similarly for the other constraints.
5. The right hand sides of the dual constraints come from the objective
function coefficients in the original problem.
In primal the signs of constraints are less In dual the signs of constraints are just the
than or equal to ( ≤ ). reverse, greater than or equal to ( ≥ ).
The non-negativity constraints are as The non-negativity constraints are as
many as the variables in the primal, i.e. 2 many as the variables in the dual, i.e. 3
© 2006 Prentice Hall, Inc. B–7
The economic interpretation of primal and dual problems:
The primal problem: with a given unit of value of each output (Cj) and a given
upper limit for the availability of each input (bi), the value of the total output.
The dual problem: with a given availability of each input (bi) and a given lower
limit of unit value for each output (Cj), what unit values should be assigned to
each input in order to minimize the value of total input.
The optimal values of the dual variables are also called shadow prices,
marginal value or opportunity cost.
Duality Advantage:
Max. Z = 5x1+6x2
2x1+3x2 < 3000
5x1 + 7x2 < 1000
x1 + x2 < 5000
Referring the above table, dual for this LP can be stated as:
Min Z* = 3000 u1 +1000 u2 +5000 u3
St. 2u1+5u2 + u3 > 5
u1+7u2 + u3 > 6
u1, u2 , u3 > 0
Note:
For maximizing, all constraints must be brought to “<” form
For minimizing, all constraints must be brought to “>” form
If they are not, use multiplication factor -1
“=” is an intersection of “>” and “< “
© 2006 Prentice Hall, Inc. B – 10
Example 2: Relationship of Primal- Dual problems
Max. Z = 60x1+50x2 Dual form is Min Z* = 80 u1 + 60u2 +15u3+36u4
St. St.
2x1+4x2 < 80 2u1+3u2 + u3 > 60
3x1 + 2x2 < 60 4u1+2u2 + u4 > 50
x1 < 15 u1, u2 , u3, u4 > 0
2x2 < 36
x1, x2 > 0
Standard Form:
Max. Z = 2X1+ X2 + 0S1 + 0S2 + 0S3
St. - X1+ 2X2 + S1 = 2
X1+ X2 + S2 = 4
X1 + S3 = 3
X1, X2 , S1, S2, S3 > 0
Standard form:
This assumption implies that the coefficients of a LPP are completely known
(determined) and do not change during the period being studied.
That means, Cj (the per unit (profit or cost) contribution of each decision
variable), bi (the availability of resources), and aij is the technical coefficients
(per unit resource consumption or production of each decision variables) are
constants and known with certainty.
However, in realty these coefficients are subject to change with time or error.
If such changes will be occurred, there should be a means to check for
how long the present optimal solution continues as optimal.
o The method of evaluating the degree to which the present optimal solution is
continued as optimal is called sensitivity analysis.
17
© 2006 Prentice Hall, Inc. B – 17
Sensitivity Analysis is concerned with the study of ‘Sensitivity ‘of the optimal
solution of LPP with decision variables (changes) in parameters.
The degree of sensitivity of the solution due to those variations can range from
No change at all to a substantial change in the optimal solution of the given LPP.
19
© 2006 Prentice Hall, Inc. B – 19
Changes of the coefficients of the objective function (cj)
The test of sensitivity of the objective function involves finding the range of
values with in which each Cj can lie without changing the current optimal
solution.
20
© 2006 Prentice Hall, Inc. B – 20
Change in coefficient Cj of non-basic variable Xj
Among the variables included in the LPP some are non - basic variables.
Note: Instead of resolving the entire problem as a new problem with new
parameters, we may take the original optimal solution table as an initial solution
table for the purpose of knowing ranges both lower and upper within which a
parameter may assume value.
The range of optimality is the range over which a basic decision variable
coefficient in the objective function can change without changing the optimal
solution mix.
However, this change will change only the optimal value of the objective
function.
Determine the range of optimality for coefficients of the basic decision variables.
23
© 2006 Prentice Hall, Inc. B – 23
Solution:
The analysis will be conducted on products X1 and X2 which are in the basic
solution. Divide each Cj - Zj row entry for variables not in the solution (for instance,
by S2 and S3 values) by the associated variable aij from X1 or X2 row.
Analysis of X1
S2 S3
Cj – Zj row = A -10 -40/3
X1 row = B 1 -1/3
A/B -10 40
Steps:
1.Take the Cj - Zj row of the optimal solution of the non-basic variables.
2.Take the X1 row of the non-basic variables.
3. Cj - Zj row
X1 row
© 2006 Prentice Hall, Inc. B – 24
25
© 2006 Prentice Hall, Inc. B – 25
Analysis of X2
If there is a variable Cj, not participating in the optimal basis, then, in order for
the variable to be included in the optimal solution, its coefficient in the objective
function will have to change from the existing Cj to a new level Cj (new).
The range of insignificance is the range over which Cj rates for non-basic
variables can vary without causing a change in the optimal solution mix (variable)
is called the range of insignificance.
Where f(x) and the gi(x) are given functions of the n decision variables.
For certain types where the functions have simple forms, problems can be
solved relatively efficiently.
For some other types, solving even small problems is a real challenge.
Because of the many types and the many algorithms, nonlinear programming is a
particularly large subject.
Then one more condition will provide this guarantee, namely, that the
feasible region is a convex set.
For this reason, convex sets play a key role in nonlinear programming.
To find local maximum or minimum, first, the first derivative of the function
needs to be found.
Values of X which makes the first derivative equal to zero are critical points.
Unlike the simplex method for linear programming, no single algorithm can
solve all these different types of problems.
Example: With 2X2 ≤ 14 and a nonlinear constraint (8X1 - X12 + 14X2 - X22 ≤ 49)
replacing the original second and third functional constraints.
Z = 35 =3X1 + 5X2
Z = 27 =3X1 + 5X2
4 X1
When f(x) is a concave function, this condition is also sufficient, then solving
for X* reduces to solving the system of n equations obtained by setting the n
partial derivatives equal to zero.
Unfortunately, for nonlinear functions f(x), these equations often are going to be
nonlinear as well, in which case it is unlikely to be able to solved analytically for
their simultaneous solution.
These procedures also play an important role in solving many of the problem
types described next, where there are constraints.
The reason is that many algorithms for constrained problems are designed so
that they can focus on an unconstrained version of the problem during a portion
of each iteration.
Thus, the only difference between such a problem and a linear programming
problem is that some of the terms in the objective function involve the square
of a variable or the product of two variables.
Maximize f (x) = 24 - 2X - X2
Subject to
X≥0
The example shows how an optimal solution can lie at a point where a derivative
is negative instead of zero, because that point lies at the boundary of a non-
negativity constraint.
20
4 5 x
However, another major reason for its importance is that a common approach to
solving general linearly constrained optimization problems is to solve a sequence
of quadratic programming approximations.
Such a function that is always “curving downward” (or not curving at all) is
called a concave function.
These intuitive definitions are restated in precise terms, along with further
elaboration on these concepts.
Where:
In some instances, risk could relate to the anticipation of an expected event that
does not occur.
This means that an entity's strategy and business objectives may be affected
by potential events.
The lack of predictability of an event occurring (or not) and its related impact
creates uncertainty for an organization.
It is then understood that any uncertainty exists for entities that set out to achieve
future strategies and business objectives.
Different forms of risk such as production risk, price or market risk, institutional
risk, personal or human risk, business risk and financial risk are risks commonly
take place in agricultural activities.
Production risk comes from the unpredictable nature of the weather and
uncertainty about the performance of crops or livestock, eg through the incidence
of pests and diseases or from many other unpredictable factors.
Prices of farms inputs and outputs are seldom known for certain at the time that a
farmer must make decisions about how much of which inputs to use or what and
how much of varies products to produce, but it can be changed due to unexpected
cases.
Most people are risk averse when faced with significantly risky incomes or
wealth outcomes.
A person who is risk averse will be willing to forgo some expected return for a
reduction in risk, the rate of acceptable trade-off depending on how risk averse
that individual is.
The existence of risk aversion means that analysis of risky choices interims of
their average or expected consequences will not always lead to the identification
of the option that will be most preferred.
Down side risk is more relevant in a variety of situations including many analysis
of risk in agriculture.
Downside risk is the shorthand description for those situations in which any
significant deviations from the ‘norm’ lead to worse outcomes.
Downside risk refers to the probability that an asset or security will fall in price.
In the context of the whole farm planning under risk, LP may be used to
maximize the expected profit subject to the farm resource constraints and other
restrictions.
The notion is as follows:
Maximize E = CX - f
St
AX ≤ b ---- Canonical form of Maximization
and
X≥0
E(X) = E = Σ P(Xi)
But different non-linear problems have their own forms that can solve specific
problems fitting with their format.
The individual closely associated with the creation of the theory of games is John
von Neumann, one of the greatest mathematicians of this century. Although
others proceeded him in formulating a theory of games - notably Emile Borel - it
was von Neumann who published in 1928 the paper that laid the foundation for
the theory of two-person zero-sum games.
The theory of Games was born in 1944 with the publication of Theory of Games
and Economic Behaviour by Hungarian-born American mathematician John von
Neumann and his Princeton University colleague Oskar Morgenstern, a German-
born American economist. In their book, . They observed that economics is
much like a game, wherein players anticipate each other’s moves, and
therefore requires a new kind of mathematics, which they called game theory.
Their choice of title was a little unfortunate, since it quickly got shortened to
“Game Theory,”
Nobel Laureate and a Father of Game Theory, Lloyd S. Shapley(92), who shared
the 2012 Nobel Memorial Prize in Economic Science for work on game theory
that has been used to study subjects as diverse as matching couples and
allocating costs.
© 2006 Prentice Hall, Inc. B – 56
Application of Game Theory
Game theory is a branch of applied mathematics that provides tools for analyzing
situations in which parties, called players, make decisions that are interdependent.
This interdependence causes each player to consider the other player’s possible
decisions (or strategies) in formulating strategy.
Game theory is applied for determining different strategies in the business world.
Where two suspects are in police custody (keeping) as accomplices for the same
crime, but there is not enough evidence for a crime conviction (belief).
They are held and interrogated (interviewed) separately.
If one prisoner testifies (witnessed) against the other while the other stays silent,
the testifying prisoner goes free and the silent prisoner is convicted (imprisoned)
and serves ten years.
If both prisoners stay silent, both are imprisoned on a minor charge and serve six
years.
If both prisoners testify against each other, each serves five years.
How should the prisoners act?
The answer is that both prisoners should testify against the other, an outcome that
is known as a Nash equilibrium.
The players in each game depend on each other’s rationality to make the
optimal choices in every situation, thereby maximizing their own utility.
© 2006 Prentice Hall, Inc. B – 59
2. Conflict of sales
Let us assume that the client had a drug with dominant market share in a
therapeutic area that is competitive, yet has few players.
The competitor was in the process of running a clinical trial to improve their
product’s label.
The client wished to know how the competitor might behave depending on the
client’s next price move and the outcome of the clinical trial.
The conclusion of the exercise was that engaging in a price war would not benefit
any of the client or competitors.
Therefore, keeping the price high and trading “market share for peace” would be
the most profitable strategy.
© 2006 Prentice Hall, Inc. B – 60
3. Advertising War:
Coke Vs Pepsi
Without any advertising, each company earns $5b/year from Cola consumers.
Advertising does not increase total sales for Cola, but if one company advertises
while the other does not, it captures $3b from the competitor
Pepsi
No Ad Ad
No Ad 5birr 5 birr 2birr 6birr
Coke
Coke Ad 6 birr 2 birr 3birr 3birr
What will the Cola companies do? Is there a better feasible outcome.
5. Game theory has been used to analyze parlour games, but its applications are
much broader.
It focuses on optimal play in situations where one or more people must make a
decision and the impact of that decision and the decisions of those involved is
known.
It focuses on optimal play in two-player games in which each player takes turns
changing in pre-defined ways.
In other word, combinatorial game theory does not consider games with chance
(no randomness).
It focuses on the analysis of games in which players must make decisions over
time and in which those decisions will affect the outcome at the next moment
in time.
It often relies on differential equations to model the behavior of players over time.
It can help optimize the behavior of unmanned vehicles or it can help you capture
your baby sister who has escaped from her playpen.
Examples: Optimal play in a dog fight, Chasing your brother across a room.
Strategies: what are the options of each player? In what order do players act?
Payoffs: How do strategies translate into outcomes? What are players’ preferences
over possible outcomes?
If in a game sum of the gains to one player is exactly equal to the sum of losses to
another player, so that sum of the gains and losses equal zero, the corresponding
game is said to be zero sum game.
Types of games
Games can be classified according to certain significant features, the most obvious
of which is the number of players.
With no opponents, the player only needs to list available options and then
choose the optimal outcome.
When chance is involved the game might seem to be more complicated, but in
principle the decision is still relatively simple.
Example: Aperson deciding whether to carry an umbrella. While this person may
make the wrong decision, there does not exist a conscious opponent.
The game in which there are exactly two player and the interest of the players
completely opposed are referred as two-person zero sum games.
They are called zero sum games because one player wins whatever the other
player loses.
In short it is denoted by TPZS game.
Example: All parlour game and sports, like Tic-tac-toe, chess, cribbage,
backgammon, and tennis etc., are TPZS games
Two person zero sum game (with more than two players)
1. Team sports with only two sides, but with more than one player in each side.
1. Those parlour games in which the players cannot be clearly separated into two
sides are not TPZS games.
2. Those poker and Monopoly games when played by more than two people are not
TPZS games.
3. Most real economic “games” are not TPZS, because there are too many players,
and also the interests of the players are not completely opposed.
Positive-sum game
In game theory, a term positive sum refers to situations in which the total of
gains and losses is greater than zero.
A positive sum occurs when resources are somehow increased and an approach is
formulated such that the desires and needs of all concerned are satisfied.
Games of perfect information in which each player knows everything about the
game at all times; it is called perfect games.
Example: Chess in which each player knows everything about the game at all times.
In chess exactly one of three outcomes must occur if the players make
optimal choices:
1. White wins (has a strategy that wins against any strategy of black),
2. Black wins
3. White and black draw.
Imperfect games
Example: Poker in which players do not know all of their opponents’ cards.
Games in which each player has a finite number of options, the number of
players is finite, and the game cannot go on indefinitely.
Example: chess, checkers, poker, and most parlour games are finite.
Cooperative games
The outcome of the game resulting from a particular decision (or strategy) is
called pay off.
The pay offs in terms of gains or losses, when players select their particular
strategies, can be represented in the form of matrix is called pay off matrix.
The total number of possible outcomes are m x n and it is assumed that each
player knows not only his own list of possible course of action but also his
opponent.
For our convenience, we assume that player A always a gainer whereas player B
a looser.
Let aij = pay off which player A gain from player B, if player A choose strategy
i and player B chooses strategy j.
Remarks
For the zero sum games, the gain of one player is equal to the loss of other and
vice versa.
i.e one player pay off table would contain the same amounts in pay off table of
other player with the sign changed.
The strategy for a player is the list of all possible actions (moves or course of
action) that he will take for every pay-off (outcome) that might arise.
It is assumed that all course of possible actions are known in advance to the
player.
Types of Strategy
Usually player in game theory uses two types of strategy namely pure and mixed
strategy .
Pure strategy:
Particular course of action that are selected by a player is called pure strategy
(course of action).
i.e: each player knows in advance of all strategies out of which he always selects
only one particular strategy regardless of the other players strategy, and objective
of the player is to maximize gain or minimize loss
© 2006 Prentice Hall, Inc. B – 76
2. Mixed strategy:
In mixed strategy, If there are 'n' number of pure strategies of the player, there
exist a set S ={p1,p2,.....pn}.
Where pj is the probability with which the pure strategy j would be selected
and whose sum is unity.
1. If a player randomly chooses a pure strategy, we say that the player is using a
"mixed strategy."
2. If a particular Pj =1 and all others are zero, then the player is said to select pure
strategy j.
Optimal strategy
The particular strategy (or complete plan) by which a player optimizes his gains
or losses without knowing the competitor's strategies is called optimal strategy.
3. The decisions of both players are made individually prior to the play with no
communication between them.
5. Both the players know not only possible pay offs to themselves but also other.
The objective of the study is to know how these players select their respective
strategy so that they may optimize their pay off.
Remarks
Minmax-Maxmin principle give the best possible selection of strategy for both
players in pure strategy problem.
If the min-max value = max-min value, then the game is said to have a saddle
(equilibrium) point.
Remarks
The amount of pay off at an saddle point is known as the value of the game.
Its name derives from its being the minimum of a row that is also the maximum
of a column in a payoff matrix which corresponds to the shape of a saddle.
© 2006 Prentice Hall, Inc. B – 81
Procedure to determine saddle point
Step 1. Select the minimum (lowest ) element in each row of the pay off matrix and
write them under 'row minima' heading.
Then select the largest element among these elements and enclose it in a
rectangle.
Step 2. Select the maximum (largest) element in each column of the pay of matrix
and write them under 'column maxima' heading.
Then select the lowest element among these elements and enclose it in a circle.
Step 3. Find out the elements which is same in the circle as well as rectangle and
mark the position of such elements in the matrix.
This element represents the value of the game and is called the saddle point.
Suppose if there is no pure strategy solution for a game, then there is no saddle
point exist.
In these situations, to solve the game both the player must determine the
optimal mixtures of strategies to find saddle point.
Fair Game
If the value of the game is zero (i.e. there is no loss or gain for any player), the
game is called fair game.
The simplest type of game is one where the best strategies for both players are
pure strategies.
This is the case if and only if, the pay-off matrix contains a saddle point.
© 2006 Prentice Hall, Inc. B – 83
Strictly determinable
Player B
I II III IV
I -2 0 0 5
Palyer A
II 4 2 1 3
III -4 -3 0 -2
IV 5 3 -4 2
III -4 -3 0 -2 -4
IV 5 3 -4 2 -4
Column Maximum 5 3 1 5
The value of game is 1, which indicates that player A will gain 1 unit and player
B will sacrifice 1 unit.
Since the maximin value = the minimax value =1, therefore the game has saddle
point and the game is not fair game (since value of the game is non zero).
Player B
Player A -1 2 -2
6 4 -6
Determine the best strategies for players A and B and also the value of the game.
Is this game (i) fair (ii) strictly determinable?
Solution:
Player A -1 2 -2 -2
6 4 -6 -6
Column maximum 6 4 -2
Select minimum from the column maximum values. ie. Minimax = -2, (marked as circle ).
Select maximum from the row minimum values. ie. Maximin = -2, ( marked as rectangle).
The value of game is -2, which indicates that player A will gain -2 unit and
player B will sacrifice -2 unit.
Since the maximin value = the minimax value =-2, therefore the game has saddle
point and the game is not fair game (since value of the game is non zero)
The optimal strategies for both players given by pure strategy, Player A must
select strategy II and player B must select strategy III.
Row
Player B
minimum
Player A B1 B2 B3
A1 2 4 5 2
A2 10 7 Q 7
A3 4 P 6 4
Column 10 7 6
Maximum
Here maxmin =7, minmax = 6, i.e the value of the game may be between 6 and 7.
i.e maxmin is not equal to minmax, therefore there is no unique saddle point.
Games with no saddle point should solved using mixed strategy.
Output, or work output, is the total amount of useful work completed with out
accounting for any waste and spoilage.
Efficiency concerned with comparing the inputs with the outputs and determining
how best to maximize outputs for the resources allocated.
Efficiency is the value of output produced to the cost of inputs used in the
production process.
Technical efficiency
Allocative efficiency and
Economic efficiency.
Technical efficiency (TE): It is the attainment of the maximum potential yield from
specified quantities of inputs.
In the case of constant returns to scale, both orientations give similar results.
© 2006 Prentice Hall, Inc. B – 92
TE is defined as producing the maximum amount of output from a given amount
of input, or alternatively, producing a given output with the minimum input
quantities.
Thus, a technically efficient producer could produce the same outputs with less of
at least one input, or could use the same inputs to produce more of at least one
output.
This methodology was used initially to measuring the relative efficiency of a set
of Decision-Making Units (DMUs).
The model distinguishes between pure TE and scale efficiency (SE), identifying
if increasing, decreasing or constant returns to scale are present.
DEA is a relatively new data oriented approach for providing a relative efficiency
assessment and evaluating the performance of a set of peer entities called DMUs
which convert multiple inputs into multiple outputs.
© 2006 Prentice Hall, Inc. B – 98
DEA is thus a multi-criteria decision making method for evaluating effectiveness,
efficiency and productivity of a homogenous group (DMUs).
It’s an extreme point method and it compares each producer with only the
"best" producers.
DEA has been used for both production and cost data.
Using such a function one can show the maximum output which can be achieved
with any possible combination of inputs, that is, one can construct a production
technology frontier.
Some 30 years ago DEA set out to answer the question of how to use this
principle in empirical applications while overcoming the problem that for actual
firms one can never observe all the possible input-output combinations.
Building on the ideas of Farrell (1957), the seminal work "Measuring the
efficiency of decision making units" by Charnes, Cooper & Rhodes (1978)
applies linear programming to estimate an empirical production technology
frontier for the first time.
The main developments of DEA in the 1970s and 1980s are documented by
Seiford & Thrall (1990).
© 2006 Prentice Hall, Inc. B – 100
How it works?
Utilizing the selected variables, such as unit cost and output, DEA software
searches for the points with the lowest unit cost for any given output,
connecting those points to form the efficiency frontier.
b a
h Variable return frontier
k j
f c
o g Inputs
TE = fj / fc
Scale inefficency = 1 – fk / fj = kj / fj
Where:
Yi = is a m x 1 vector of outputs by jth sample
Xj = is a n x 1 vector of inputs utilized
Y = is a k x m matrix of outputs
K = is number of household in sample
X = is a kxn matrix of inputs
Z = is a vector of weights attach to each sample HH when constructing frontier
TE is the ratio of input utilized by the best practice HH to the inputs utilized by
some HHj.
© 2006 Prentice Hall, Inc. B – 105
DEA Case
Data
The data is from the database in CD of
COMPUSTAT running on IBM’s PC which is
offered by Lotus.
The first groups are the most 8 profitable companies in three departments (based
on NI from 1980-1988).
The second groups are the least 6 profitable companies in three departments.
The third groups are consisted with the first seven companies from group 1 and
last four from group 2.
• SALES VOLUME
• EMPLOYEE
• NET INCOME
• CAPITAL
Company • CAPITAL MARGIN
• COST
& STOCK MARGIN
SALES
PROFIT
EMPLOYEE
CAPITAL
The company whose benefit are high doesn’t mean its efficiency is high
Sources of inefficiency can be analyzed and quantified for every evaluated unit
The number of efficient firms on the frontier tends to increase with the number of
inputs and output variables
Transportation problem deals with the distribution of goods from several points
of supplies (sources) to a number of points of demands (destinations).
Distribution cost consists of mainly the transportation cost of items from its
production (manufacturing) center to the warehouses.
Sources or origins: Are the places where goods originate from (like
plants, warehouses etc).
1. Total quantity of the item available at different source is equal to the required at
different stations.
3. The unit transportation cost of the item from all sources to all destination is
precisely and certainly known.
6. All goods are homogenous, so that any origin is capable of supplying to any
destination.
A transportation problem model, which has ‘m’ sending locations (origins) and
‘n’ receiving locations (destinations), provides a framework for presenting all
relevant data.
These are:
Source . . . . . .
or
. . . . . .
Origin
. . . . . .
Sm Xm1 cmi Xm2 cm2 …… Xmn cmn SSm
∑SS
……
Total DD DD1 DD2 DDm ∑DD
SSi is total quantity of commodity available at origin i (total supply of origin i).
Xij is the quantity of commodities transported from ith origin to jth destination.
a. Balanced case: A case where total supply equals total demand (DD = SS).
Note: The transportation algorithm is based on the assumption that the model is
balanced, meaning that the DD = SS.
If the model is unbalanced, we can always add a dummy source or a
dummy destination to restore balance as shown on (b) and (c) above.
The steps of the transportation algorithm are exact parallels of the simplex
algorithm.
Step 2: Use the optimality condition of the simplex method to determine the
entering variable from among all the non basic variables.
Step 3: Use the feasibility condition of the simplex method to determine the leaving
variable from among all the current basic variables, and find the new basic
solution.
Return to step 2.
© 2006 Prentice Hall, Inc. B – 136
There are 3 methods to find the initial feasible solution.
137
© 2006 Prentice Hall, Inc. B – 137
North West Corner method (NWC)
The method starts at the Upper Left-hand (northwest) corner cell (route) of the tableau
(variable X11).
1. Start with the cell at the upper left hand corner, and allocate as much as possible to that
cell.
2.1. If d1 > s1, move down vertically to the second row and make the second allocation of the
magnitude X21= min (s2, d1-X11) in cell (2, 1).
2.2. If d1< s1, move right horizontally to the second column and make the second allocation of
the magnitude X12= min (s1-X11, d2) in cell (1, 2).
2.3. If d1= s1, there is a tie for the second allocation because both the row and column are
exhausted. Therefore, move diagonally to the next row and column and make the second
allocation of the magnitude X22= min (s2, d2) in cell (2, 2).
3. Repeat step 2 until all the rim requirements are satisfied.
4. Check to be sure that all rim conditions are satisfied and the numbers of occupied
cells are equal to m+n-1.
© 2006 Prentice Hall, Inc. B – 138
Example 1: Find the initial basic feasible solution of the following problem whose
cost and rim requirement table is given below.
Destination
Supply
Source N S E W
16 13 22 17
A 200
100 100
14 13 19 15
B 350
40 300 10
9 20 23 10
C 150
150
0 0 0 0
Dummy 90
90
Demand 100 140 300 250 Z = 10770
The method assigns as much as possible to the cell with the smallest unit cost
(ties are broken arbitrarily).
Next, the satisfied row or column is crossed out and the amounts of supply and
demand are adjusted accordingly.
If both a row and a column are satisfied simultaneously, only one is crossed out,
the same as in the northwest-corner method.
Next, look for the uncrossed-out cell with the smallest unit cost and repeat the
process until exactly one row or column is left uncrossed out.
Select (S2, W1). The origin S2 can supply 30 items to W1 and thus origin S2 is
exhausted.
W1 still requires 35 more units. Hence, shade the row S2. Shading S2, we observe
that 5 is the least element in the cell (S1, W1) and examine the supply at S1 and
demand at W1.
Next, we choose 7 as least element corresponding to the cell (S1, W2). We supply
35 units from S1 to W2. Now, only one row is left behind.
The quality of the least-cost starting solution is better than that of the north-
west corner method because it yields a smaller value of transportation cost.
This method is based on the 'difference' associated with each row and column in
the matrix giving unit cost of transportation cij.
This 'difference' is defined as the arithmetic difference between the smallest and
next to the smallest element in that row or column.
This difference in a row or column indicates the minimum unit penalty incurred
in failing to make an allocation to the smallest cost cell in that row or column.
The minimum penalty is given by this difference. So, the procedure repeatedly
makes the maximum feasible allocation in the smallest cost cell of the remaining
row or column, with the largest penalty.
Once an allocation is fully made in a row or column, the particular row or column
is eliminated. Hence and allocation already made cannot be changed.
Repeat the same procedure of finding penalty of all rows and columns, choosing
the highest penalty in a row or column and allotting as much as possible in the
least cost cell in that row or column.
Thus we eliminate another fully allocated row or column. We repeat till all supply
and demand are exhausted.
VAM is an improved version of the Least-Cost Method that generally, but not
always, produces better starting solutions.
© 2006 Prentice Hall, Inc. B – 149
Steps involved in Vogel’s Approximation Method (VAM) are:
1. For each row and column, compute the difference between the lowest cost
element and the next lowest cost element of the row/column.
The difference between the lowest cost and the next lowest cost for a given
row or column is said to be the penalty number for that row or column.
3. Assign (allocate) the maximum number of units to the lowest cost cell in the
corresponding row or column selected in step 2.
And then eliminate a row or column whose supply is exhausted or
requirement is satisfied.
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy 90 0
diff 9 13 19 10
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy 90 0
90
Demand 100 140 300 250
diff 9 13 19 10
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
0 0 0 0
Dummy --- ---
90
Demand 100 140 210 250
diff 5 0 3 5
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 3
14 13 19 15
B 350 1
9 20 23 10
C 150 1
100
0 0 0 0
Dummy --- ---
90
Demand 100 140 210 250
diff 5 0 3 5
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C 50 10
100
0 0 0 0
Dummy --- ---
90
Demand --- 140 210 250
diff --- 0 3 5
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C 50 10
100 50
0 0 0 0
Dummy --- ---
90
Demand --- 140 210 250
diff --- 0 3 5
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
14 13 19 15
B 350 2
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- 140 210 200
diff --- 0 3 2
Destination
Supply diff
Source N S E W
16 13 22 17
A 200 4
140
14 13 19 15
B 350 2
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- 140 210 200
diff --- 0 3 2
Destination
Supply diff
Source N S E W
16 13 22 17
A 60 5
140
14 13 19 15
B 350 4
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- --- 210 200
Destination
Supply diff
Source N S E W
16 13 22 17
A 60 5
140 60
14 13 19 15
B 350 4
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- --- 210 200
Destination
Supply diff
Source N S E W
16 13 22 17
A --- ---
140 60
14 13 19 15
B 350 4
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- --- 210 140
Destination
Supply diff
Source N S E W
16 13 22 17
A --- ---
140 60
14 13 19 15
B ---
210 140
9 20 23 10
C --- ---
100 50
0 0 0 0
Dummy --- ---
90
Demand --- --- --- ---
2. Degeneracy
Test the degeneracy of the solution by checking equality between the number of
allocation and m+n-1.
If number of allocation is less than m+n-1 there is a case of degeneracy
problem.
Once an initial solution is identified, the next step is to check its optimality.
An optimal solution is one in which there is no opportunity cost, that is, there
is no other set of transportation routes (allocations) that will reduce the total
opportunity cost.
Thus, we have to evaluate each unoccupied cell (represents unused route) in the
transportation table in terms of opportunity cost.
The purpose of the optimality test is to see if the proposed solution just
generated can be improved or not.
For each empty cell, the effect of changing it to an occupied cell is examined.
If any of these changes are favourable, the solution is not optimal & a new
solution must be designed.
The SSM is an iterative procedure that exchange one variable that is in the basis
(occupied cell or a cell with positive value), with one variable that is not in the
basis (i.e is non-basic or empty or non-occupied cell or a cell with 0 value) in
such a way that the minimal transportation cost is improved.
It is an efficient method for determining the entering variable from available non
basic variable.
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 150 7 50
B 200
16 12 10 200
C 200
A to F +16-7+10-9 = 10
B to D +11-6+9-10 = 4
C to D +16-6+9-10+7-10 = 6
C to E +12-10+7-10 = -1
The RHS (10, 4, 6 and -1) represent Net evaluation.
© 2006 Prentice Hall, Inc. B – 168
We know that transportation is the minimization problem, thus in minimization;
optimal solution is when net benefit (Δj) is ≥ 0.
For the current problem one of the net benefit is -1 indicates that the current basic
solution is not optimal.
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 - 10 150 + 7 50
B 200
16 + 12 - 10 200
C 200
From 150 (order 2 that is even) and 200 (order 4 that is even) ----- the smallest is 150.
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 7
B 150-150 50+ 150 200
16 12 +150 10
C 200 -150 200
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 7
B 200 200
16 12 150 10 50
C 200
This method is based on the dual of the TP or it uses shadow price Ui for the
source (supply constraint) and Vj for the capacity (demand constraint).
Step 1: From the initial basic solution, calculate Ui and Vj for each row and column
using the occupied cells.
To start with, assign zero for a particular Ui or Vj where there are maximum
number of allocations in a row or column. If there is a tie select arbitrarily.
Then, compute Ui ‘s and Vj ‘s for other rows and columns, respectively, using
the relation Cij = Ui+Vj for all occupied cells (i, j).
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 150 7 50
B 200
16 12 10 200
C 200
Destination
Supply
Source D V1=6 E V2= 9 F V3=6
6 9 16
A U1=0 150 50 200
11 10 150 7 50
B U2=1 200
16 12 10 200
C U3=4 200
Assign any one of the Ui’s or Vj’s the value zero. Here U1= 0.
C11 − U1 − V1 = 0, 6 − U1 − 𝑣1 = 0, let u1 = 0, v1 = 6
C12 − U1 − V2 = 0, 9 − U1 − V2 = 0, V2 = 9
C22 − U2 − V2 = 0, 10 − U2 − V2 = 0, U2 = 1
C23 − U2 − V3 = 0, 7 − U2 − V3 = 0, V3 =6
C33 − U3 − V3 = 0, 10 − U3 − V3 = 0, U3 = 4
© 2006 Prentice Hall, Inc. B – 178
Non basic variables
C13 - U1 - V3 = A to F = 16 – 6 – 0 =10
C21 – U2 – V1 = B to D = 11 – 6 - 1 = 4
C31 – U3 – V1 = C to D = 16 – 6 – 4 = 6
C32 – U3 – V3 = C to F = 12 – 9 - 4 = -1
For the current problem one of the net benefit is -1 indicates that the current basic
solution is not optimal.
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 - 10 150 + 7 50
B 200
16 + 12 - 10 200
C 200
From 150 (order 2 that is even) and 200 (order 4 that is even) ----- the smallest is 150.
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 7
B 150-150 50+ 150 200
16 12 +150 10
C 200 -150 200
Destination
Supply
Source D E F
6 9 16
A 150 50 200
11 10 7
B 200 200
16 12 150 10 50
C 200
There are many situations where the assignment of resources like people or
machines on to different jobs.
Examples:
In assigning salesmen to different regions
Vehicles and drivers to different routes
Products to factories
Jobs to machines
Contracts to binders,
etc.
Subject to :
n
ij
x
j 1
1, i 1,2,..., n (one job is assigned to the i th
facility)
xij
i 1
1, j 1,2,..., n (only one person should be assigned to the j th
job )
Xij: indicates the quantity to be transported Xij: indicates the jth job to be
from ith origin to jth destination and take assigned to ith person and it can take
any possible value. either 1 or 0.
The row and column sum is equal to ssi The row and column sum is exactly1.
and ddj.
Mentor
Supply
Student Snape McGonagall Lupin
5 2 3
Harry 1
1 4 5
Draco 1
2 4 4
Goyle 1
Demand 1 1 1
However, it has a very special structure, such that it can be solved in polynomial
time.
Many such algorithms exist, but the best known (and one of the oldest) is the
Hungarian Method.
5. Otherwise, find the minimum cost that is not covered by any lines.
Subtract it from all uncovered elements
Add it to all elements at intersections (covered by two lines)
6. Back to step 3.
Make the assignments one at a time in positions that have zero elements.
Move on to the rows and columns that are not yet crossed out to select the next
assignment, with preference given to any such row or column that has only one
zero that is not crossed out.
Continue until every row and every column has exactly one assignment and so has
been crossed out.
Subtract the smallest cost element in each row of the cost table from each
element in that row. As a result, there shall be at least one zero in each row of this
new table, called the Reduced Cost Table.
© 2006 Prentice Hall, Inc. B – 192
In the reduced cost table, subtract the smallest cost element in each column from
every other entry in the column. As a consequence of this action, there would be
at least one zero in each of the rows and columns of the second reduced cost
table.
Step 3: Draw the minimum number of horizontal and vertical lines (not the diagonal
ones) that are required to cover all the zero elements.
If the number of lines drawn is equal to n (the number of rows or columns) the
solution is optimal, and proceed to step 6. If the number of lines drawn is smaller
than n, go to step 4.
Step 4: Select the smallest uncovered (by the lines) cost element. Subtract this
element from all uncovered elements including itself and add this element to each
value located at the intersection of any two lines. The cost elements through which
only one line passes remain unaltered.
Step 6: Given the optimal solution, make the job assignments as indicated by the
zero elements. This is done as follows:
(a). Locate a row which contains only one zero element. Assign the job
corresponding to this element to its corresponding person. Cross out the zero’s, if
any, in the column corresponding to the element, which is indicative of the fact that
the particular job and person are no more available.
(b). Repeat (a) for each of such rows which contain only one zero.
If there is no row with only a single zero element, perform similar operation in
respect of each column containing only one zero element, crossing out the zero(s), if
any, in the in which the element lies.
© 2006 Prentice Hall, Inc. B – 194
c. If there is no row or column with only a single zero element left, then select a
row/column arbitrarily and choose one of the jobs (or persons) and make the
assignment. Now cross the remaining zeros in the column and row in respect of
which the assignment is made.
(d). Repeat steps (a) through (c) until all assignments are made.
(e). Determine the total cost with reference to the original cost table.
JOB
1 2 3 4
PERSON A 10 12 19 11
B 5 10 7 8
C 12 14 13 11
D 8 12 11 9
JOB
1 2 3 4
PERSON A 10 12 19 11
B 5 10 7 8
C 12 14 13 11
D 8 12 11 9
JOB
1 2 3 4
PERSON A 0 2 9 1
B 0 5 2 3
C 1 3 2 0
D 0 4 3 1
JOB
1 2 3 4
PERSON A 0 0 7 1
B 0 3 0 3
C 1 1 0 0
D 0 2 1 1
In the reduced cost table, subtract the smallest cost element in each column from
every other entry in the column.
Prepare the modified matrix: the Reduced Cost Table would be as follows.
• Considering rows and columns, the assignments can be made in the following
order:
Select the second row. Assign mechanic B to job 4. Cross out zeros at cells (C, 4)
and (E, 4).
Consider row 4. Assign mechanic D to job 1. Cancel the zero at cell (E, 1).
Since there is A single zero in the 5th row, put mechanic E to job 3 and cross out
the zero at (A, 3).
There being only a single zero left in each of the 1st and 3th rows, we assign job 2
to mechanic A and job 5 to C.
12/10/2023 by: Getachew T.(MSc.) 209
© 2006 Prentice Hall, Inc. B – 209
The optimal job assignment and cost associated with assignment pattern is: