Visit:: Join Telegram To Get Instant Updates: Contact: MAIL: Instagram: Instagram: Whatsapp Share
Visit:: Join Telegram To Get Instant Updates: Contact: MAIL: Instagram: Instagram: Whatsapp Share
Visit:: Join Telegram To Get Instant Updates: Contact: MAIL: Instagram: Instagram: Whatsapp Share
io
INSTAGRAM: www.instagram.com/hemanthraj_hemu/
INSTAGRAM: www.instagram.com/futurevisionbie/
Np scienNets ENS
. af
: j i 5
ahi
hy AMee
” fe
€' i 3:
hy *
>
. me mot ,
1 P / j
nn
FES ne _ tie tog " =
ee —_— oi i ie '
hit 0 eR ee, ae
Ul Gat ‘ Garfaes ‘ &
04 p ; ‘
Wao ih: ae
‘ i ‘ ipie
hy
‘be al Meatty , ’ reeks dy aihe i
1 ones TITroe aT At
4 Fe om RAE PALPei AC LA Wala
Zz ; i ye fy SN
7 "|
ier cee, et |, 2 at
Beer
vette)
oy bp 4 . Oy my rT
re _* 4s =e wit aye
Ties. acs ow ) oteres aU rrkemehy ‘ Pere EtJs “AP fal\FE veil
; Te ft < Nee eeeS” ne“ ‘aR aupd.Ary? -
os piaui
icsHat Cac‘aurea
oh Not a
Aa Jace = Oewor E
Fy
agus; é Oe
"i 44 SerSo
BOs.SoH
e ey
=9 r 4
PalF 4 + oh
eae b>
40 Dead c tots
my =Ae
gi eS ae Pets AE SA eT EM Tel ge
Snk
t r ¥ "Yre
4 re Lf FY ra r oO6. rar Tt Se Papas we
keg i
wg. ; a Yeee eee
pi Pieiy | hal Bs J
baa ‘
f OSs
iad é
hh H) ba‘ eyo MT
TA
‘bh , 4 hee Me Ms
‘ rey ee Mae
y
i> 1 BA FL h Peerigy
maam AY.Penne
metodo
mT, ye aeS s ey !
# ADYEi .
ee *<tr: ~~ .
2. y “i
; Abt ykaooe
wesleyoe LS
https://hemanthrajhemu.github.io
xiv
Operati'ONS RegSearey
i
2 Simplex Method - 1
2.1 Introduction
The Essence of Simplex Method 5]
Ww
WW
5]
Basic Terms / Definitions
iw
Nm
S2
Standard Formofan LP Problem (Characteristics of LPP)
in
NON
33
The Setting up and Algebra of Simplex Method
55
2.5.1 Steps of Simplex Methodin Brief
a7
2.5.2 Steps in Performing row Operations 58
2.6 Special cases of simplex method 78
2.6.1 Unbounded Solution 78
2.6.2 Tie Breaking in Simplex Method (Degeneracy) 80
85
2.7.1 Big-M Method (Penalty Method)
86
2.7.2. Two Phase Method
101
ReviewQuestions
102
Problems
https://hemanthrajhemu.github.io
Tuble of Contents
Transportation an
d Assignment Prob
lems
4.1 Introduction
4.2 Formulation of
a Transportation
Problem
133
4,3 Initial Basic Feasible
Solution (IBFS)
134
4.4 Applications of Tr
ansportation Proble 134
ms
4.5 Optimality Check 134
4.6 Steps in solving a Tr
ansportation Proble 140
m
4.7 Variations (special Case
s) in a Transportation Prob
142
lem
4.7.1 Unbalanced Tran 152
sportation Problem
4.7.2 Degenerate Transp 153
ortation Problem
4.7.3 Restricted route (Prohibited 157
transportation problem).
4.7.4 Maximization Problem 160
4.8 The Assignment Problem 164
4.9 Applications of Assignment Problems 175
4.10 176
Algorithm for an Assignment Problem (Hun
garian Method)
4.11 Types of Assignment Problem 176
4.11.1 Unbalanced Assignment Pro 188
blem
4.11.2 Maximization Problem 188
4.11.3 192
Prohibited route (restricted assignment prob
lem) 197
4.11.4
Alternative Optimal Solution
4.12 Differences Between a Transportati 200
on Problem and an Assignment Problem
205
4.13 The Traveling Salesman Problem (Routing
Problem) 206
4.13.1 Formulation ofthe Traveling sales man
problem 206
Review Questions
210
Problems
211
5 Game Theory and Metaheuristics
5.1 Introduction
oan Basic Terms used in Game Theory
5.3 Formulation of Two Persons-Zero Sum Game
5.4 Properties (characteristics) of a Game
5.5 Assumptions made in game theory
5.6 Applicatons of Game Theory
5.7 Max. MinPrinciple
5.8 Min. max Principle
https://hemanthrajhemu.github.io
simplex method - 2, Duality Theory
/
ie ;
Learning objectives
=.
After Studying this chapter, you should be able to
© appreciate the significance of duality concept
| © understand the relationship between the primal and dual LP
| problems
© convert a primal to dual problem and vice-versa
© interpretation of the duality
( © use dual.simplex method to solve LP problems i
3.1. INTRODUCTION
In the preceding chapters we have seen how complex and
cumbersometheiterative procedure in the simplex method can be. Every time a variable departs and
new variable enters, complicated calculations requiring large space (computer memory) have to be
performedto get the new element values. Successive iterations are carried out by using number of
row operations using simplex method and its variants (Big M method and Two Phase Method.
If a LPP with large number of variables and constraints (whichis in real life problems) has
to be solved by the simplex method, it will need a lot of time and computer space asall the tables
and data will have to be stored and retrieved repeatedly. In this chapter we discuss about a new
approachand variant of simplex method duality theory and dual simplex method.
https://hemanthrajhemu.github.io
Dr
110 Operations R esearch
et
the original form is associated with another LPP called dual LPP or in short dual}.The two problems
are replica of each other, The dual ofthe primal problem is unique. The simplex procedureis such
that if the primal is solved it is equivalent to solving the dual.) Thus 4f the optimal solution to dual
can be obtained, if we knowthe optimal solution to primal, |
Food
Vitamins a I, Daily requirement
Vy 6 8 100
V 7 12 120
Cost per unit 12 20
Thelast column of the table represents the numberof units of the minimum daily requirement forthe
two vitamins whereas the last rowrepresents the cost per unit for the two foods. The problemis to
determine the minimum quantities of the two foods f, and f, so that the minimum daily requirement
of the two vitamins is met and that at the same time, the cost of purchasing these quantities of f,
and f, is minimum.
To formulate the problem mathematically let x, be the numberof units of food f, (J = 1, 2) to
be purchased, then the above problem is to determine two real numbers X, and x,, so as to
Minimize Z = 12x, + 20 x, subject to the constrains
6x, + 8 x, 2 100, 7x, + 12 x, 2 120, x,, x, 20 :
Nowlet us consider a different problem, associated with the above problem. Supposethere is
a wholesale dealer who sells the two vitamins V, and V, along with some other commodities.
The local shopkeepers purchase the vitamins from him and from the two foodsf, and f, (the details
are same as in the given table). The dealer knows very well that the food f, and f, have their market
values only because of their vitamins contents, the problem ofthe dealer is to fix the maximum per
unit selling prices for the two vitamins V, and V,, in such a waythat the resulting prices for food
f, and f, do not exceed their existing marketprices.
The selling prices are generally known as dual prices or shadowprices.
To formulate the problem mathematically, let the dealer decideto fix up the twoprices at W,
and W,per unit respectively.
Then the dealer’s problem can be stated mathematically as to determine two real numbers
W, and W, soasto
https://hemanthrajhemu.github.io
—
WH
Simplex method - 2, Duality Theory
https://hemanthrajhemu.github.io
Operations Research,
12 Sa,
; ' : coat
Subject to a), X, +4), %, 4.7 aX, S b,
a,, X, + aX; +-.-ta,,%, Sb,
. ae .
Ba x, + 4.3 X; ose ra, <,,
https://hemanthrajhemu.github.io
Simplex method- 2, Duality Theory 113
Worked Examples
7) Write the dual of the following LPP
Max Z =x, + 2x, + x,
Subject to 2x, + %,-X,52
— 2x, + x,— 5x,2-6
dx + %,+ %, 5 6X, X,,%,20
Solution:
Max Z =x, + 2x,+ x,
Note: Put the second constraint in the standard form (< form)
2x, —X,+ 5x, < 6, 4x, + x, + x,< 6 and x,, x,, x,20
Dual; Let w,, w,, w, be the dual variables
Subject to 2w, + 2w, + 4w,> 1, w, —w,+ w,2 2,-w, +5 w y+ w,? and w,, W,,Ww, > 0
Solution:
Put the second constraint in the standard form (< form) i.e., — 8x, — x, — 3x, $12
Dual; Min Z* = 8w, — 12 w,+ I3w,
https://hemanthrajhemu.github.io
il
Operatians Research
———Seareh
Solution:
Let w,, w, and w, be the dual variables
Min Z* = I4w + 16 w, + 18w,
Subject to w, + 0 w,+3w,>6
Ow, + w+ 2w.> 10 and Wi.
W., Ww, 20
4. Write the dual of the following LPP
Min Z = 0.4x, +0.5 x,
Subject to 0.3 X, + 0.2 x, 2.7, 0.5 x, +
0.5 x, =6
0.6 x, + 0.4 x, 26 and x,, x,2 0
Solution:
Max Z*= 2.7w, +6 w, + 6w,
Subject to 0.3 Ww, + 0.5 w,+ 0.6 w, 5 0.4
0.1 w+ 0.5 W,+ 0.4 w, < 0.6
W, S 0, w is unconstrained asit is equation,
w, > 0
5. Construct the dual problem for the following LPP
Maximize Z = 16x, +14x, + 36x,+6x,
Subject 14x, + 4x, + 14x, +8x, = 21: 13x, +17x, +80x,
+ 2x, < 48
Xj, X2 20; x3; X; to unrestricted
Solution:
Dual problem for the given primal problem
Minimize Z*=21 w,+48w,
Subject to
l4w, + I3w, 2 16,4w, + l7w, 2 14
https://hemanthrajhemu.github.io
—lex
Simp —method - 2, Duality Theory Hs
Solution:
Zin = 1OW, — ISw,
Subject to the constraints
w,- 4w, 25, w, + w,2 5
3w — 2w, = 7, — 3w, + 2w, 2-7 or
3w, — 2w, < 7, w,, W, 2 0.
0 ||
https://hemanthrajhemu.github.io
116 Operations Researey,
—
Solution:
Transform the ‘<* type constraint to a ‘>" type constraint by multiplying the constraints
by —1. Also write *=" type constraint equivalent to the constraint of the type “2’ and *<”’, then
the given primal problem can be written as,
Z__ min
= 40x, +120x,
«
Let w = w,- w,, the above dual problem reducesto the form.
Z_.. = 8w, + 90w — 660w,
Here, it may be noted that the second constraint in the primal is equality. Therefore the
corresponding second dual vanable w, should be unrestricted in sign.
https://hemanthrajhemu.github.io
Simplex method - 2, Duality Theory 7
—_—
Step 2
Express the above problem in the form of a simplex tableau. If the optimality condition is satisfied
and one or more basic variables have negative values, the dual simplex method is applicable.
Step 3
Feasibility condition: The basic variable with the most negative value becomes the departing /
leaving variable (LV). Call the row in which this value appears as pivot row. If more than one
element for LV exists, choose one.
Step 4
Optimality condition: Form ratios by dividing all C, -Z values by the corresponding pivotal row,
the entering variable is the one having mminimumratio. If no element in the pivot row is negative,
the problem has nofeasible solution . c Y= O-k ~otey
-
mi FV
CE inthe cre jer & © ges
Step 5
Use elementary row operations to convert the pivot element to | and then reduce all the other
elements in the key/pivot column to zero.
Step 6
Repeat steps 3 through 5 until there are no negative values for the basic variables.
Note: The advantage ofdual simplex methodis, it can avoid theartificial variables introducedin the
constraints along with the surplus variablesas all ‘> constraints are convertedinto ‘<"type.
Solution:
The given problem is of maximization type hence,it is in standard form. Converting ‘>’ as
‘<" of first constraint.
“XX, — X, 2-2
https://hemanthrajhemu.github.io
a
Operations Research
—_—__ ee
2x, + x, + u,= 10
x, +x, tu, =8
[-1] PE ~] 1 0 o |-2<_PR
LV+u,| 0
“2 © 7 1} Oo 1 0 |10
1 l 0 0 g
u.| 0
C, -2 -3/0 oOo 0 |-
Z, 0 0}/0 oO 0 fo
-2 -3 0 0 0 |-
G-Z
T
PC
Since all the (C — Z) values are < 0, the above solution is optimal. However,it is infeasible
because it has a non positive value for the basic variable u, (= — 2). Since u, is the only non
positive variable, it becomesthe leaving variable (LV).
x, x, uy u, uM,
C-Zrow -2 =. 0 0 0
Pivot row =| =i l 0 0
Ratio 2 3 an - -
https://hemanthrajhemu.github.io
Simplex method - 2, Duality Theory 119
—_
u, 0 0 0 1 0 1 6
5 —2 =3]) © 0 0 |-
Z, —2 —2 2 0 0 |-4
Cc -Z 0 -1]-2 0O o i}-
Since all the (C — Z) values are < 0, the above optimal! solution is feasible. The optimal and
feasible solution is x, = 2, x, = 0 with Z.. = - 4.
Solution:
Since the objective function of LP problem is of maximisation, therefore all the constraints should be
of < type. Thus convert the constraints of the < type by multiplying both sides by —1] and re-wmitting
the LP problem.
https://hemanthrajhemu.github.io
Operations Research
——__.,
Simplex Table - 1
Basis Cy x, x, x. u, u, B
u, 0 -l -] ] I 0 -5
PR«L_: 0 -l 2 —-f 0 I -S L. pr
C -3 0 -l 0 0
Z 0 0 0 0 0 0
C-Z -2 0 -l 0 0
The solution is infeasible as u, = —5 and u, = —8, but it is optimal as all C, - Z, < 0. Thus we need to
apply the dual simplex method to get both feasible as well as on optimal solution.
Iteration - 1
x, x, x, u, u,
C-Z row —2 0 —] 0 0
Pivot row 1 2 4 0 1
Ratio 2 - WA = -
As x, has the smallest ratio, it becomesthe entering variable (EV). The intersection element of PR and
column corresponding to EV is PE = 2
Making the PE as unity and other element of PC as 1 bysuitable row operations we get
Simplex Table - 2
Basis G. x, x, a u, u, B
u, 0 5/4 -1/2 0 i 1/4 -7
Ij %, -1 1/4 -1/2 I 0 -1/4 2 te—PR
C -2 0 -] 0 0
Zz -1/4 1/2 —I 0 1/4
C-Z -7/4 -1/2 0 0 -1/4
So we proceed to seconditeration.
Iteration - 2
Since, the variable u, = —7 is the only variable having negative value, we should select the
variable u, to leave the basis.
https://hemanthrajhemu.github.io
oo
y Theory
Simplex method - 2, Dualit
——
x, x, - u, Mu,
C ~ Z row -7/4 -I/2 0 0 -1/4
Pivot row -5/4 —-I/2 0 ! 1/4
Ratio 35/4 / — - =
The least ratio is | which corresponds to x, and hence x, enters into the basis. Making the
corresponding PEas | in the Simplex Table - 2 we get,
Simplex Table - 3
Basis C, Cs x, Xx, u, u, B
Ne 0 I/2 1 0 -2 -1/2 14
x, —I 3/2 0 I -l1 1/2 9
C —2 0 —I 0 0 _
Zz —3/2 0 -1 I 1/2
C-Z —1/2 0 0 -I ~1/2
From the abovetable, all C — Z < 0 and also all the basic variables are positive. Hence, the
solution is feasible and optimal.
Thus, x = 0, x5> 14,x,=9
Zam = 2 (0)-9=-9
‘11. Solve the following LPP using dual simplex method.
Zin = 8X, + X, Subjectto:
m.
Solution:
| Converting the minimisation problem to maximization problem and the constraints of = type
to < type weget,
Zin = —3x,- %
subject to —x, —x, S—l, —2x, -3x, < -2
x, and x, 20
Adding the slack variables to the constraints,
Zmax = —3x, — X, + ou, + Ou,
Such that -x, — x, + u, = —l
—2x, — 3x, + u, = -2
XX U,, U, 2 0
https://hemanthrajhemu.github.io
Operations Research
—t
Simple Table - 1
Basts % x,
1
x, u, u, B
; 0 -] —] 1 0 -I
LV< 0 -2 -3 0 ] —2 |«—PR
C -3 -] 0 0 -
Z 0 0 0 0 0
C-Z —3 —1 0 0 =
From the table, we can notice that the solution is infeasible as u, = —1, u, = —2 but it is op-
timal as all C — Z< 0. Thus, we need to apply dual simplex method to get both feasible as
well as optimal solution.
u, is the leaving variable as it has most negative value. To determine the entering variableit
is required to obtain theratio.
OS
C - Z row
Pivot row
a
Ratio 3/2 1/3
The least positive ratio is 1/3 which corresponds to column 2 and hence x, enters into the basis.
Replacing u, with x, weget,
Simple Table - 2
Basis C, x, Xe u, u, B
Ive ou, 0 -1/3 0 I -1/3 -1/3 |}*«—-PR
: -l 2/3 ] 0-1/3 2/3
C 3 -I 0 0
Z -2/3 -l 0 1/3
C-Z -7/3 0 0 -1/3
Solution is still infeasible as u, = —1/3 but optimal so proceedingto the next iteration.
Asu, is non - positive it becomes the LV,to determine the EV determinethe ratio as shown
below.
x, x, u, u,
C - Z row -7/3 0 0) -1/3
Pivol row -1/3 0 I -1/3
Ratio 8/3 - - 1
https://hemanthrajhemu.github.io
123
ory
Simplex method- 2, Duality The
—_—_—
The min. ratio is 1 which corresponds to Column IV hence, u, becomes the entry variable.
Replacing u, with u, making PE as | in the Simplex Table - 2 we get,
Basis C, A ts u, i, B
u, 0 I 0 -3 1 I
x, -I ] -! 0 I
C -3 -1 0 0 -
Z, I -I 1 0
C-Zz —2 0 -1 0
As all C — Z < 0 andthe variables (of basis) are positive the solution is feasible and
optimal.
Hence, the optimal solution is
x, =0,; x,=1
7—=4
Note:
i. The least ratlo may corresponds to the slack variable also, in such cases the slack
variables becomesthe entering variable replacing the existing variable in the basis.
ii. In dual simplex method, the solution will be declared as final only when it is optimal
and feasible and i.e., only when all C, - Zz, < 0 and all the variables of the basis are
positive.
ti = 2x,+ Xs
Solution:
Converting the given objective function to maximization type
Zaan TO 2X — X
Converting all the constraints into < type.
—3x, -x, 3-3
— 4x, — 3x, s— 6.
—x,-2x,$-3 and x,,x,20.
Introducing the slack variables we get,
Zmax = — 2x, — x, + Ou, + Ou, + Ou,
https://hemanthrajhemu.github.io
Operations Research
—.
As all C — Z< 0, the solution is optimal. However, it is not feasible asit is having non-
positive basic variables.
The most negative basic variable is u, and henceit will be leaving variable.
Table to obtain the ratio.
x, = u, u, u,
C - Zrow -2 —] 0 0 0
Pivot row + —3 0 I 0
Ratio 1/2 1/3 - - -
Basis Ge x, x uy u, u, B
IVa ou, 0 pe|-5/3 0 I -1/3 0 -1 |<—PR
x, -1 4/3 I 0 -1/3 0 2
u, 0 5/3 0 0 —-2/3 I 1
C -2 -1 0 0 0
Z -~4/3 -1 0 1/3 0)
C-Z -2/3 0 0 -1/3 0
https://hemanthrajhemu.github.io
simplex method - 2, Duality Theory 125
50
Since all C, — Z, < 0 the solution is optimal but u, = —1 is the only negative value hence u,
becomes the leaving variable.
x, x, u, u, u,
C,-Zrw -2/3 0 0 -I/3 O
Pivot row -5/3 0 1 -1/3) (OO
Ratio 5 = 0 1 -
x, is the entering variable asit's ratio is least/minimum.
Simple Table - 3
Replacing u, with x, and making PE as | by rowoperations
Basts Cy x, Xx, u, u, u, B
x, —2 1 0 —3/5 1/5 0 3/5
ms -l 0 I 4/5 -3/5 0 6/5
u, 0 0 0 I -1 1 0
C —2 -l 0 O 0
Z, —2 -1 2/5 1/5 0
C.— Z, 0 0 -2/5 —-1/5 0
Sinceall C, — Z, < 0 and the variables of the basis > 0 (non-negative) the solution ts optimal
and feasible.
Hence, x, = 3/5, x, = 6/5
Zax = 12/5 or f= 12/5 is the solution.
Solution:
Expressing the constraints in < form and adding the slack variables; the problem becomes
a Ou,
Zmax — 2x, = Xx, — 3x, a Ou, + Ou,
https://hemanthrajhemu.github.io
126 Operations Researeh
rc,
x x x, u
C -Z.row| -2 -3 0
Pivot row -] -] l 0
Ratio 2 - 3 - = =
As x, has the smallest ratio, it becomes the entering variable (EV).
Thus, the element — 1 becomes the pivot element. Using the elementary row operations, we
gel,
Basis Cc. x, xy % u, ut, uy B
a -2|{1]peE -2 1] -1 0 O —PR4
MN, 0 0 5 -1] 2 1 0 0
u, 0 0 -2 2 /]-1 0 1 4
c -2 -1l -3 0 0 ~
Z, -2 4 -2] 2 0 0 -8
C-Z 0 -5 -] -2 0 0 =
https://hemanthrajhemu.github.io
is
ory
Simplex method - 2, Duality The
—_
f
smnice all the variables have non negative values (x, = 4, u, = 0, u, = 4), the above solution
is optimal and feasible. The optimal and feasible solution is, x, = 4, x,= 0, x, = 0 with
Z min. = 8
[Substituting the values of x,, x, and x,, in the original objective function]
Solution:
Interchanging the = inequality of the constraints into <, the given LPP becomes.
Max. Z = — 3x, — 2x,
Subject to—x,-—x,<- 1
ot Xo 7
—K, ZX, 5 10
x, S3
Byintroducing the slack variables u,, u,, u,, u,, the standard form of the LPP becomes
Max Z = — 3x, — 2x, +0u, + Ou, +Ou, +0u,
Subject to — xX, —X, + u, =—-
X, +x, +u,=7
~4 $ 2x, +t: 10
Ox, +x, +u, =3
https://hemanthrajhemu.github.io
- 128
ee
Operations Research
—r
Since all (C,— Z,) < 0 the solution is optimal but as x,, < 0 it is not feasible. u, = — 10 is the
most negative, the basic variable u, leaves the basis,
Table to obtain the ratio
[ x, x, u ny uy u,
—3 —2 0 0 0 0
C-Z.row|
Pivot row - | 2 0 0 0
Ratio 3 1 - - ~ ~
As x, has the smallest ratio, it becomes the entering variable (EV). The element — 2 is the
pivot element, using elementary rowoperations, we get,
| Basis C. x, X, ua, u, u, B
u| O -1/2 O} 1 O -1/2 044
u,| 0 1/2 0 |0 1 1/2 0} 2
x,| -2 1/2 | 0 O -1/2 045
x x, u, u, u, u,
C - Zrow ae 0 0 0 md 0
Pivotrow -— 1/2 0 0 0 1/2 0
Ratio 4 0 = - = 7
https://hemanthrajhemu.github.io
- 2, Duality Theory
Siimplex method
eT
129
ble
Third Simplex Ta
Basis Co “1 *) My Hy u, uy B
ut, 0 0 0 1 0 -1 -4 19
u, 0 0 01lo 4 \ t lo
Max Z = — 18 with x, = 4, x, =3
Review QUESTIONS
Give the characteristics of a dual problem.
S
https://hemanthrajhemu.github.io
130 Operations Researey
arch
PROBLEMS
i. Write the dual of the following LPP
7. =3x,-%, TX,
mana
https://hemanthrajhemu.github.io
hod - 2, Duality Theory
Simp lex met 137
https://hemanthrajhemu.github.io