Professional Documents
Culture Documents
Mathematical Programming
Mathematical Programming
net/publication/337367019
MATHEMATICAL PROGRAMMING
CITATIONS READS
0 4,971
1 author:
S. M. Shahidul Islam
Hajee Mohammad Danesh Science and Technology University, Dinajpur, Bangladesh
23 PUBLICATIONS 45 CITATIONS
SEE PROFILE
All content following this page was uploaded by S. M. Shahidul Islam on 19 November 2019.
S. M. Shahidul Islam
Mathematical Programming
Dr. S. M. Shahidul Islam teaches Mathematics including
mathematical programming in many universities such as Including Theories and Applications
Hajee Mohammad Danesh Science and Technology
University, Asian University of Bangladesh, University
Brunei Darussalam, etc. His books “Business
Mathematics” & “Linear Programming” and many
journal papers are appreciated by the academicians.
Islam
MATHEMATICAL
PROGRAMMING
Including Theories and Applications
Publisher:
LAP LAMBERT Academic Publishing
is a trademark of
International Book Market Service Ltd., member of OmniScriptum
Publishing Group
17 Meldrum Street, Beau Bassin 71504, Mauritius
Printed at:
KS OmniScriptum Publishing, Brivibas gatve 197, LV-1039 Riga,
Latvia, European Union
ISBN: 978-620-0-46432-3
ii
DEDICATED TO
Author’s wife
&
Their affectionate daughter
iii
PREFACE
The book entitled Mathematical Programming has been
written with the blessings of Almighty Allah. The use of
mathematical programming has been increasing day by day in
many fields of science, socio-economics & commerce. Nowadays
mathematical programming is a compulsory course in many
disciplines. But the fact is that our students are always afraid of
mathematical programming as well as mathematics, and they need
proper guidance and dependable books. There are textbooks
available in the market on Mathematical Programming but most of
them are inadequate in meeting the requirements of the students. In
order to gear up the students in Mathematical Programming and
Operations Research we have attempted to write the book using
easy language and techniques.
The book consists of some preliminaries, topics of linear
programming, transportation problem and assignment problem. We
have included here a large number of examples, mostly collected
from question papers of different universities. We have verified
every questions and their solution minutely, and if there is any
error yet, we beg apology for that.
We are grateful and indebted to Professor Dr. A.A.K.
Majumdar, Ritsumeikan Asia-Pacific University, Japan; Professor
Dr. Md. Abdul Hoque, North South University, Bangladesh; and
many of our colleagues who encouraged and helped us in writing
the book. We are also grateful to the authors whose books we have
freely consulted in the preparation of the manuscript. Finally,
special recognition should go to the endless co-operation of
author’s wife Mst. Bakul Nahar Parveen without which the book
could not have seen the light of the day.
Constructive criticisms, corrections, and suggestions towards
the improvement of the book will be thankfully received.
iv
CONTENTS
Page
Chapter 1 Setting the Scene 1 – 66
1.1 Linear programming 1
1.2 What is optimization 2
1.3 Summation symbol 3
1.4 General LP problem 3
1.5 Standard form of LP problem 5
1.6 Canonical form of LP problem 7
1.7 Advantages of LP 10
1.8 Limitations of LP 11
1.9 Some definitions 11
1.10 Some done examples 26
1.11 Exercises 57
Chapter 2 Convex Sets 67 – 102
2.1 Line segment 67
2.2 Convex set 68
2.3 Convex combination of a set of vectors 68
2.4 Extreme point 69
2.5 Convex cone 69
2.6 Convex hull 70
2.7 Convex polyhedron 70
2.8 Simplex 71
2.9 Hyper plane 71
2.10 Half space 73
2.11 Supporting hyper plane 76
2.12 Separating hyper plane 77
2.13 Convex function 77
2.14 Convex hull of a set 79
2.15 Closure, Interior and Boundary of a
convex set 80
2.16 Some done examples 92
2.17 Exercises 100
v
Chapter 3 Formulation and Graphical Methods 103 – 150
3.1 Formulation 103
3.2 Algorithm to formulate a linear
programming problem 103
3.3 Graphical method 107
3.4 Limitation of the graphical method 113
3.5 Some done examples 113
3.6 Exercises 145
Chapter 4 Simplex Methods 151 – 284
4.1 Simplex 151
4.2 Simplex method 151
4.3 Generating extreme point solution 154
4.4 Formation of an initial simplex table 165
4.5 Some definitions 169
4.6 Development of simplex algorithm 171
4.7 Simplex algorithm 175
4.8 Artificial basis technique 187
4.9 Some done examples 213
4.10 Exercises 277
Chapter 5 Duality in Linear Programming 285 – 422
5.1 Introduction 285
5.2 Different type of primal-dual problems 292
5.3 Primal-dual tables 306
5.4 Some theorems on duality 311
5.5 Complementary slackness conditions 347
5.6 Economic interpretation of primal-dual
problems 350
5.7 Shadow price 352
5.8 Dual simplex method 362
5.9 Dual simplex algorithm 362
5.10 Some done examples 366
5.11 Exercises 415
vi
Chapter 6 Sensitivity Analysis 423 – 486
6.1 Sensitivity analysis 423
6.2 An analytic example 423
6.3 Variation in the objective function
coefficients (c) 436
6.4 Variation in the right hand side
constants (b) 444
6.5 Variation in the coefficients matrix (A) 454
6.6 Some done examples 460
6.7 Exercises 483
Chapter 7 Integer Linear Programming 487 – 596
7.1 Integer linear programming 487
7.2 Some related definitions 488
7.3 Form of integer linear programming
problem (ILP) 493
7.4 Cutting plane for ILP problem 505
7.5 Algebraic description of cutting plane 506
7.6 Cutting plane algorithm for solving all
ILP problem 508
7.7 Cutting plane algorithm for solving
mixed ILP problem 528
7.8 Branch and bound algorithm for solving
ILP problem 538
7.9 Additive algorithm for solving 0–1
problem 545
7.10 Some done examples 551
7.11 Exercises 591
Chapter 8 Transportation Problem 597 – 646
8.1 Introduction 597
8.2 Transportation problem 598
8.3 North-west corner rule 604
8.4 Least cost method 606
8.5 Vogel’s approximation method 606
vii
8.6 Optimality criterion 612
8.7 Loop 613
8.8 Generating optimal solution 614
8.9 Modified distribution (MODI) method 616
8.10 Degeneracy case 622
8.11 Multiple solutions 632
8.12 Total supply exceeds total demand
(unbalanced problem) 636
8.13 Maximization problem 640
8.14 Exercises 643
Chapter 9 Assignment Problem 647 – 670
9.1 Introduction 647
9.2 Assignment problem 647
9.3 Algorithm of the Hungarian method 648
9.4 Dual of the assignment problem 653
9.5 Justification of Hungarian method 653
9.6 Some done examples 657
9.7 Exercises 668
Appendices 671 – 684
1 Classical Optimization 671
2 Model Exam Paper 679
3 Bibliography 683
viii
Chapter 1
Setting the Scene
Highlights
1.1 Linear programming 1.7 Advantages of LP
1.2 What is optimization 1.8 Limitations of LP
1.3 Summation symbol 1.9 Some definitions
1.4 General LP problem 1.10 Some done examples
1.5 Standard form of LPP 1.11 Exercises
1.6 Canonical form of LPP
2
Mathematical Programming
i
i 1
2
= 1 + 4 + 9 + 16 + 25 = 55,
3
(i
i 1
2
1) = (12 – 1) + (22 – 1) + (32 – 1) = 0 + 3 + 8 = 11,
4
p = p + p + p + p = 4p,
i 1
n
p = np,
i 1
4
x
i 1
i = 𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 .
3
Setting the Scene
𝑥𝑗 ≥ 0 ; j = 1, 2, 3, . . ., n
(b) Minimize (or, maximize) f(X) = C.X
Subject to A.X ≥ (or, = or, ) b
X ≥0
where A = (𝑎𝑖𝑗 )𝑚×𝑛 is an m n matrix, C = (𝑐1 , 𝑐2 , … , 𝑐𝑛 ) is
a row vector, X = (𝑥1 , 𝑥2 , … , 𝑥𝑛 ) is a column vector, b =
(𝑏1 , 𝑏2 , … , 𝑏𝑚 ) is a column vector and 0 is an n-
dimensional null column vector.
4
Mathematical Programming
a
j 1
ij x j (or or )bi ; i = 1, 2, 3, . . ., m
𝑥𝑗 ≥ 0; j = 1, 2, 3, . . ., n
Example 1.2
Minimize z = 420𝑥1 + 300𝑥2
Subject to 4𝑥1 + 3𝑥2 ≥ 240
2𝑥1 + 𝑥2 100
𝑥1 , 𝑥2 ≥ 0
is a linear programming problem.
1.5 Standard form of LP problem
The characteristics of a standard LP problem are as below.
(i) The objective function is of the minimization or maximization
type.
(ii) All constraints are expressed in the form of equations, except
the non-negativity constraints which remain in inequality (≥)
form.
5
Setting the Scene
6
Mathematical Programming
7
Setting the Scene
8
Mathematical Programming
Example 1.5
Following LP problem is in canonical form.
Minimize z = 420x1 + 300x2
Subject to 4x1 + 3x2 ≥ 240
2x1 + x2 ≥ 100
x1, x2 ≥ 0
Example 1.6
Maximize z = 420x1 + 300x2
Subject to 4x1 + 3x2 240
2x1 + x2 100
x1, x2 ≥ 0
This is the canonical form of a LP problem.
Example 1.7
Transform the following linear programming problem to canonical
form.
Maximize z = x1 + 4x2 + 3x3
Subject to 2x1 + 2x2 – 5x3 2
3x1 – x2 + 6x3 1
x1 + x2 + x3 = 4
x1 3, x2 0 and x3 is unrestricted.
Solution: Given problem can be written as follows.
Maximize z = x1 + 4x2 + 3x3
Subject to 2x1 + 2x2 – 5x3 2
3x1 – x2 + 6x3 1
x1 + x2 + x3 4
x1 + x2 + x3 4
x1 3, x2 0 and x3 is unrestricted.
Or, Maximize z = x1 + 4x2 + 3x3
Subject to 2x1 + 2x2 – 5x3 2
–3x1 + x2 – 6x3 –1
–x1 – x2 – x3 – 4
x1 + x2 + x3 4
9
Setting the Scene
x1 3, x2 0 and x3 is unrestricted.
Putting x1 = x + 3, x2 = – x 2/ , x3 = x3/ – x3// ; x1/ 0, x 2/ 0, x3/ 0,
/
1
10
Mathematical Programming
11
Setting the Scene
12
Mathematical Programming
13
Setting the Scene
3x1 + x2 10
x1, x2 ≥ 0.
1.9.4 Solution
An n-tuple X = (x1, x2, ..., xn) of real numbers that satisfies all the
constraints of the general linear programming problem is called the
solution of the general linear programming problem. As for
example, X = (x1, x2) = (4, 0) is a solution to the following linear
programming problem
Maximize z = 3x1 + 5x2
Subject to 5x1 + 3x2 ≥ 15
x1 + 2x2 7
x1, x2 ≥ 0.
1.9.5 Feasible solution
A feasible solution to a linear programming (LP) problem is a
solution, which satisfies the constraints (equality or inequality
constraints and the non-negativity constraints). As for example, X
= (1, 1, 0, 0) is a feasible solution of the following linear
programming problem.
Maximize z = x1 + 2x2 + x3 + 2x4
Subject to 4x1 + 2x2 + 3x3 – 8x4 = 6
3x1 + 5x2 + 4x3 – 6x4 = 8
x1, x2, x3, x4≥ 0.
1.9.6 Basic solution
A basic solution to a linear programming (LP) problem with m
constraints in n variables is a solution obtained by setting (n – m)
variables equal to zero and solving for the remaining m variables,
provided that the determinant of the coefficients of these m
variables is non-zero. These m variables are called basic variables.
Basic solution may or may not be feasible solution and conversely
feasible solution may or may not be a basic solution. As for
example, X = (0, 1, 0, – ½) is a basic non-feasible solution of the
following linear programming problem
14
Mathematical Programming
15
Setting the Scene
16
Mathematical Programming
2 3
(iii) For basis matrix B4 = (a2,a3)= , basic variables are x2, x3
5 4
and non-basic variables are x1, x4. Putting x1 = x4 = 0, the system
reduce to
2x2 + 3x3 = 6
5x2 + 4x3 = 8
Solving this system we get, x2 = 0, x3 = 2. Hence the basic solution
is X3 = (0, 0, 2, 0).
2 8
(iv) For basis matrix B5 = (a2, a4) = , basic variables are
5 6
x2, x4 and non-basic variables are x1, x3. Putting x1 = x3 = 0, the
system reduce to
2x2 – 8x4 = 6
5x2 – 6x4 = 8.
Solving this system we get, x2 = 1, x4 = –½. Hence the basic
solution is X4 = (0, 1, 0, – ½).
3 8
(v) For basis matrix B6 = (a3, a4) = , basic variables are x3,
4 6
x4 and non-basic variables are x1, x2. Putting x1 = x2 = 0, the system
reduce to
3x3 – 8x4 = 6
4x3 – 6x4 = 8.
Solving this system we get, x3 = 2, x4 = 0. Hence the basic solution
is X5 = (0, 0, 2, 0).
Note: The solutions X1 = (1,1,0,0), X2 = (0,0,2,0), X3 = (0,0,2,0), X5
= (0,0,2,0) are basic feasible solutions and X4 = (0,1,0,– ½) basic
non-feasible solution. Also (0,0,2,0) is degenerate basic feasible
solution, (1,1,0,0) is non-degenerate basic feasible solution and
(0,1,0,– ½) is non-degenerate basic solution.
17
Setting the Scene
18
Mathematical Programming
19
Setting the Scene
a
j 1
ij x j bi ; i = 1, 2, 3, . . ., m,
a
j 1
ij x j x n i bi ; i = 1, 2, 3, ..., m
are called slack variables. That is, when the constraints are
inequalities connected by the sign ‘ ’, in each inequality an extra
non-negative variable is to be added to the left hand side of the
inequality to convert it into an equation. The variables which are
added to convert the inequalities to equations are known as slack
variables. As for example, we add a non-negative variable x3 to the
left hand side of the inequality
2x1 + 3x2 4
to convert it an equation
2x1 + 3x2 + x3 = 4.
Thus x3 is a slack variable. This variable is called slack variable,
because
Slack = Requirement – Production.
1.9.14 Surplus variables
Let the constraints of a general LP problem be
n
a j 1
ij x j bi ; i = 1, 2, 3, . . ., m,
a
j 1
ij x j x n i bi ; i = 1, 2, 3, ..., m
are called surplus variables. That is, when the constraints are
inequalities connected by the sign ‘ ’, in each inequality an extra
non-negative variable is to be subtracted from the left hand side of
20
Mathematical Programming
21
Setting the Scene
p p p
= ( x1/ , x 2/ , ..., x k/ , 0, 0, ..., 0)
is a solution to the system of linear equations A.X = b.
22
Mathematical Programming
si
Since p ≥ [equality holds for at least one i because p =
xi
s s s
Max i ], we have xi ≥ i xi – i ≥ 0 xi/ ≥ 0 and for at
i
xi p p
/
least one i, xi = 0. Thus, X = ( x1 , x 2/ , ..., x k/ , 0, 0, ..., 0) with
/ /
23
Setting the Scene
24
Mathematical Programming
1 5
=( , 0, ).
2 2
We form the submatrix B1 by using the coefficients of positive
variables in the new solution, i.e., B1 is the matrix consisting of
first and third columns of the matrix A. Thus,
2 4
B1 = (a1, a3) = and |B1| = – 2 0.
3 5
So, vectors a1, a3 are linearly independent and hence, X1= (1/2,
0, 5/2) is a basic feasible solution corresponding to the given
feasible solution.
Again we can rewrite equation (ii) as follows:
–a1 – 2a2 + a3 = 0 and so s1 = –1, s2 = –2, s3 = 1.
s
Let p = Max i for xi > 0
i
xi
s s s 1 2 1
p = Max ( 1 , 2 , 3 ) p = Max ( , , ) = 1.
x1 x 2 x 3 2 3 1
Hence we get another feasible solution as follows:
s s s 1 2 1
X2 = x1 1 , x2 2 , x3 3 = 2 , 3 , 1
p p p 1 1 1
= (3, 5, 0).
Submatrix formed by using the column vectors of A corresponding
to positive variables of the solution (3, 5, 0) is
2 1
B2 = (a1, a2) = and |B2| = –1 0.
3 1
So, vectors a1, a2 are linearly independent and hence X2 = (3,
5, 0) is another basic feasible solution corresponding to the given
feasible solution. Therefore, (1/2, 0, 5/2) and (3, 5, 0) are required
basic feasible solutions corresponding to the given feasible
solution.
25
Setting the Scene
= 3 + 12 + 27 + 48 + 75
= 165
4
(ii) (3 2 x) = (3 + 2.1) + (3 + 2.2) + (3 + 2.3) + (3 + 2.4)
x 1
= 5 + 7 + 9 + 11 = 32
Example 1.13
Write a linear programming (LP) problem consisting of two
variables.
Solution: Following LP problem consists of two variables namely
x and y.
Minimize z = 5x – 4y
Subject to 3x + 2y 10
6x – 3y 2
x, y 0
Example 1.14
Convert the following minimization LP problem to maximization
type.
Minimize z = 7x1 – 3x2 + 5x3
Subject to 2x1 – 3x2 + 2x3 – 5
5x1 + 2x2 + 3x3 2
3x1 + 2x3 = 20
26
Mathematical Programming
x1, x2, x3 0
Solution: Minimization LP problem usually convert to
maximization LP problem just multiplying the objective function
by –1. Thus the required maximization LP problem is
Maximize (–z) = – 7x1 + 3x2 – 5x3
Subject to 2x1 – 3x2 + 2x3 – 5
5x1 + 2x2 + 3x3 2
3x1 + 2x3 = 20
x1, x2, x3 0.
Example 1.15
Transform the following linear programming problem to the
standard form.
Minimize 2x + y + 4z
Subject to –2x + 4y 5
x + 2y + z 5
2x + 3z 5
x, y, z 0
Solution: Adding slack variable u 0, v 0 to the left hand side of
the first and third constraints respectively and also subtracting
surplus variable w 0 from the left hand side of the second
constraint, we get the following standard LP problem of the given
problem.
Minimize 2x + y + 4z + 0u + 0v + 0w
Subject to –2x + 4y + u = 5
x + 2y + z – w = 5
2x + 3z + v = 5
x, y, z, u, v, w 0
Example 1.16
Make the standard form of the following LP problem.
Maximize z = 3x1 + 2x2 + 5x3
Subject to 2x1 – 3x2 3
x1 + 2x2 + 3x3 5
27
Setting the Scene
3x1 + 2x3 2
x1, x2, x3 0
Solution: Adding slack variables x4 0 and x5 0 to the left hand
sides of first and third constraints respectively and subtracting
surplus variable x6 0 from the left hand side of second constraint,
we get
Maximize z = 3x1 + 2x2 + 5x3 + 0x4 + 0x5 + 0x6
Subject to 2x1 – 3x2 + x4 = 3
x1 + 2x2 + 3x3 – x6 = 5
3x1 + 2x3 + x5 = 2
x1, x2, x3, x4, x5, x6 0.
This is the required standard form.
Example 1.17
Transform the following maximization LP problem to
minimization type and then reduce it to standard form.
Maximize z = 2x1 + 2x2 + 5x3
Subject to 2x1 – 3x2 + x3 – 3
x1 + 2x2 + 3x3 5
5x1 + 2x3 = 8
x1, x2, x3 0
Solution: Changing the sign of the objective function, we get the
minimization form of the given LP problem as below.
Minimize (–z) = – 2x1 – 2x2 – 5x3
Subject to 2x1 – 3x2 + x3 – 3
x1 + 2x2 + 3x3 5
5x1 + 2x3 = 8
x1, x2, x3 0
Adding slack variable x4 0 to the LHS of the first constraint and
subtracting surplus variable x5 0 from the
LHS of second constraint, we get
Minimize (–z) = – 2x1 – 2x2 – 5x3
Subject to 2x1 – 3x2 + x3 + x4 = – 3
28
Mathematical Programming
x1 + 2x2 + 3x3 – x5 = 5
5x1 + 2x3 = 8
x1, x2, x3, x4, x5 0.
Multiplying first constraint by –1, we have
Minimize (–z) = – 2x1 – 2x2 – 5x3
Subject to –2x1 + 3x2 – x3 – x4 = 3
x1 + 2x2 + 3x3 – x5 = 5
5x1 + 2x3 = 8
x1, x2, x3, x4, x5 0.
This is the required standard form.
Example 1.18
Reduce the linear programming (LP) problem given below to
standard form.
Maximize z = 2x1 + 3x2 + 5x3
Subject to 2x1 – 5x2 5
3x1 + 2x2 + 3x3 – 3
5x1 + x2 + 2x3 10
x1, x2, x3 0
Solution: Adding slack variables x4 0 and x5 0 to the left hand
sides of first and third constraints respectively and subtracting
surplus variable x6 0 from the left hand side of second constraint,
we get
Maximize z = 2x1 + 3x2 + 5x3 + 0x4 + 0x5 + 0x6
Subject to 2x1 – 5x2 + x4 = 5
3x1 + 2x2 + 3x3 – x6 = – 3
5x1 + x3 + 2x5 = 10
x1, x2, x3, x4, x5, x6 0.
Multiplying second constraint by –1, we have
Maximize z = 2x1 + 3x2 + 5x3 + 0x4 + 0x5 + 0x6
Subject to 2x1 – 5x2 + x4 = 5
–3x1 – 2x2 – 3x3 + x6 = 3
5x1 + x3 + 2x5 = 10
29
Setting the Scene
30
Mathematical Programming
31
Setting the Scene
3x + 2y + z = 8
2x + 5z 11
x, y, z 0
Solution: Introducing both of the slack variable u 0, and the
surplus variable v 0 to the left hand side of the third constraint,
we have the following standard LP form of the given problem:
Minimize 5x + 2y + 4z + 0u + 0v
Subject to – 2x + 3y = 7
3x + 2y + z = 8
2x + 5z + u – v = 11
x, y, z, u, v 0.
Example 1.22
Reduce the following linear programming (LP) problem to the
standard form of an LP problem:
Minimize z = 5x1 + 4x2 + x3
Subject to 6x1 + 2x2 – 5x3 3
9x1 – x2 + 6x3 5
2x1 + 3x2 + x3 1
x1 2, x2 0, x3 unrestricted.
Solution: Putting x1 = x1/ + 2, x2 = – x 2/ , x3 = x3/ – x3// ; x1/ 0, x 2/ 0,
x3/ 0, x3// 0 and adding slack variable s1 0 to the left hand side
of the first constraint and subtracting surplus variable s2 0 from
left hand side of the second constraint and adding s3 – s4 (here, s3
0 is slack variable and s4 0 is surplus variable) to the left hand
side of the third constraint, we get the problem as follows:
Minimize z = 5( x1/ +2)+ 4(– x 2/ )+( x3/ – x3// )
Subject to 6( x1/ + 2) + 2(– x2/ ) – 5( x3/ – x3// ) + s1 = 3
9( x1/ + 2) – (– x 2/ ) + 6( x3/ – x3// ) – s2 = 5
2( x1/ + 2) + 3(– x2/ ) + ( x3/ – x3// ) + (s3 – s4) = 1
x1/ , x 2/ , x3/ , x3// , s1, s2, s3, s4 0.
32
Mathematical Programming
33
Setting the Scene
34
Mathematical Programming
x + 2y + z 4
2x + 3z 5
x, y, z 0
to canonical form.
Solution: Multiplying second constraint by –1, we get
Maximize 2x + 3y + 4z
Subject to – 2x + 4y 3
– x – 2y – z – 4
2x + 3z 5
x, y, z 0
This is the required canonical form.
Example 1.26
Reduce the following LP problem into canonical form:
Minimize z = 2x1 + x2
Subject to 3x1 + 2x2 = 15
–3x1 + x2 2
x1, x2 0.
Solution: We can convert the equality constraint 3x1 + 2x2 = 15
into two inequalities 3x1 + 2x2 15 and 3x1 + 2x2 15. Thus, the
given LP problem becomes
Minimize z = 2x1 + x2
Subject to 3x1 + 2x2 15
3x1 + 2x2 15
–3x1 + x2 2
x1, x2 0
Multiplying second constraint by –1, we have
Minimize z = 2x1 + x2
Subject to 3x1 + 2x2 15
–3x1 – 2x2 –15
–3x1 + x2 2
x1, x2 0.
This is the required canonical form of the given LP problem.
35
Setting the Scene
Example 1.27
Reduce the following LP problem into canonical form:
Maximize z = x1 + x2
Subject to x1 + 2x2 5
–3x1 + x2 3
x1 0, x2 is unrestricted in sign.
Solution: Taking x2 = x 2/ – x 2// ; x 2/ , x 2// 0, we have
Maximize z = x1 + x 2/ – x 2//
Subject to x1 + 2( x 2/ – x 2// ) 5
–3x1 + x 2/ – x 2// 3
x1, x 2/ , x 2// 0
Multiplying second constraint by –1, we have the canonical form
of the given LP problem as below:
Maximize z = x1 + x 2/ – x 2//
Subject to x1 + 2 x 2/ – 2 x 2// 5
3x1 – x 2/ + x 2// –3
x1, x 2/ , x 2// 0.
Example 1.28
Convert the following linear programming problem to canonical
form:
Minimize z = 2x1 + 3x2 + 4x3
Subject to 2x1 + 2x2 – 5x3 2
3x1 – x2 + 6x3 1
x1 + x2 + x3 = 4
x1 –3, x2 0, x3 is unrestricted.
Solution: Replacing the equality constraint by two inequalities, we
have
Minimize z = 2x1 + 3x2 + 4x3
Subject to 2x1 + 2x2 – 5x3 2
3x1 – x2 + 6x3 1
36
Mathematical Programming
x1 + x2 + x3 4
x1 + x2 + x3 4
x1 –3, x2 0, x3 unrestricted.
Because this is a minimization type LP problem, all constraints
must be greater equal ( ) type in the canonical form. So,
multiplying first and fourth constraints by –1, we have
Minimize z = 2x1 + 3x2 + 4x3
Subject to –2x1– 2x2+ 5x3 –2
3x1 – x2 + 6x3 1
x1 + x2 + x3 4
– x1 – x2 – x3 – 4
x1 –3, x2 0, x3 unrestricted.
All variables must be non-negative. So we replace x1 by x1/ –3, x2
by – x 2/ and x3 by x3/ – x3// where x1/ 0, x 2/ 0, x3/ 0, x3// 0,
and then we have
Minimize z = 2 x1/ – 3 x 2/ + 4 x3/ – 4 x3// – 6
Subject to – 2 x1/ + 2 x2/ + 5 x3/ – 5 x3// – 8
3 x1/ + x 2/ + 6 x3/ – 6 x3// 10
x1/ – x 2/ + x3/ – x3// 7
– x1/ + x 2/ – x3/ + x3// –7
x1/ , x 2/ , x3/ , x3// 0
This is the required canonical form.
Example 1.29
Convert the following LP problem in canonical form:
Maximize z = 2x1 + 3x2 + 4x3
Subject to 2x1 + 2x2 – 5x3 2
3x1 – x2 + 6x3 1
x1 + x2 + x3 = 4
x1 3, x2 0, x3 unrestricted.
37
Setting the Scene
38
Mathematical Programming
39
Setting the Scene
40
Mathematical Programming
x1
4 2 3 8 x 12
AX = b, where A = , X = 2 and b = .
3 5 4 6 x
3 16
x
4
The column vectors of the coefficient matrix A are
4 2 3 8
a1 = , a2 = , a3 = and a4 = .
3 5 4 6
Since the rank of A is 2, the given system is consistent. We find
4
c 2 = 6 square sub matrices taking two at a time from a1, a2, a3, a4
and they are
4 2 4 3
B1 = (a1, a2) = , B2 = (a1, a3) = , B3 = (a1,
3 5 3 4
4 8 2 3
a4) = , B4 = (a2, a3) = ,
3 6 5 4
2 8 3 8
B5 = (a2, a4) = , B6 = (a3, a4) = .
5 6 4 6
Values of the determinants formed by the above sub matrices are
|B1| = 14, |B2| = 10, |B3| = 0, |B4| = – 7, |B5| = 28, |B6| = 14.
Since |B3| = 0, B3 is a singular matrix. So, only five basic solutions
will be found corresponding to five basis matrices B1, B2, B4, B5
and B6.
4 2
(i) For basis matrix B1= (a1, a2) = , basic variables are x1, x2
3 5
and non-basic variables are x3, x4. Putting x3 = x4 = 0, the
system reduce to
4x1 + 2x2 = 12
3x1 + 5x2 = 16.
41
Setting the Scene
42
Mathematical Programming
3x3 – 8x4 = 12
4x3 – 6x4 = 16.
Solving this system, we get x3 = 4, x4 = 0. Thus, a fifth basic
solution is X5 = (0, 0, 4, 0).
Note: Solutions X1 = (2, 2, 0, 0), X2 = (0, 0, 4, 0), X3 = (0, 0, 4, 0),
X5 = (0, 0, 4, 0) are basic feasible solution but X4 = (0, 2, 0, –1) is
not a basic feasible solution. (0, 0, 4, 0) is a degenerate basic
feasible solution, (2, 2, 0, 0) is a non-degenerate basic feasible
solution and (0, 2, 0, –1) is a non-degenerate basic solution.
Example 1.32
X/ = (x1, x2, x3) = (1, 3, 2) is a feasible solution to the system of
linear equations
2x1 + 4x2 – 2x3 = 10
10x1 + 3x2 + 7x3 = 33.
Reduce the feasible solution to a basic feasible solution.
Solution: We can write the given system in the matrix form as
follows.
x1
2 4 2 10
A.X = b where, A = , X = x 2 and b =
10 3 7 x 33
3
Rank of A is 2 and hence the given equations are linearly
independent. The given solution X/ = (1, 3, 2) is feasible as all
components are non-negative, but it is not basic feasible because
basic feasible solution to a system of two equations cannot have
more than 2 non-zero components.
Let the column vectors of the coefficient matrix of A are
2 4 2
a1 = , a2 = and a3 =
10 3 7
43
Setting the Scene
and they are not linearly independent because more than two
vectors of two components cannot be independent. Therefore, there
exist three scalars s1, s2, s3 which all are not zero, so that
s1a1 + s2a2 + s3a3 = 0 (i)
2 4 2
s1 + s2 + s3 = 0
10 3 7
2s1 4s 2 2s3 0
=
10s1 3s 2 7 s3 0
2s1 4s 2 2s3 0
10s1 3s 2 7 s3 0
s1 s2 s3
(say)
28 6 20 14 6 40
s s s 1
1 2 3 (say)
34 34 34 34
s1 = –1, s2 = 1, s3 =1
So form (i) we get,
–a1 + a2 + a3 = 0 (ii)
s
Let p = Max i for xi > 0
i
xi
s1 s 2 s 3 1 1 1 1
p = max ( , , ) p = max ( , , )=
x1 x 2 x 3 1 3 2 2
Hence, we get new feasible solution as follows:
s s s 1 1 1
X1 = x1 1 , x2 2 , x3 3 = 1 1 , 3 1 , 2 1
p p p 2 2 2
= (3, 1, 0).
Submatrix formed by taking the column vectors of A
corresponding to the positive variables in the new solution is B1 =
44
Mathematical Programming
2 4
(a1, a2) = and |B1| = – 34 0. So, a1, a2 are linearly
10 3
independent and hence X1 = (3, 1, 0) is the required basic feasible
solution corresponding to the given feasible solution.
Again we can write equation (ii) as follows:
a1 – a2 – a3 = 0 and so s1 = 1 , s2 = –1, s3 = –1.
s
Let p = Max i for xi > 0
i
xi
s1 s 2 s 3 1 1 1
p = max ( , , ) p = max ( , , )=1
x1 x 2 x 3 1 3 2
Hence, we get another feasible solution as follows:
s s s 1 1 1
X2 = x1 1 , x2 2 , x3 3 = 1 ,3 ,2
p p p 1 1 1
= (0, 4, 3).
Submatrix formed by taking the column vectors of A
corresponding to the positive variables in the new solution is B2 =
4 2
(a2, a3) = and |B2| = 34 0. So, a2, a3 are linearly
3 7
independent and hence X2 = (0, 4, 3) is another required basic
feasible solution corresponding to the given feasible solution.
Therefore, (3, 1, 0) and (0, 4, 3) are required basic feasible
solutions corresponding to the given feasible solution.
Example 1.33
If x1 = 1, x2 = 1, x3 = 1, x4 = 1 is a feasible solution to the system of
linear equations
2x1 + 2x2 – x3 + 4x4 = 7
x1 + 3x2 – 2x3 + 6x4 = 8.
Reduce the feasible solution to a basic feasible solution.
45
Setting the Scene
46
Mathematical Programming
47
Setting the Scene
48
Mathematical Programming
2 4
and |B1| = 8 0. Thus, a1, a4 are linearly independent and
1 6
5 9
hence the solution (x1, x2, x3, x4) = ( , 0, 0, ) is a required basic
4 8
feasible solution corresponding to the given feasible solution.
Again we can write equation (iv) as follows:
0a1 – 2a2 + a4 = 0 and so r1 = 0 , r2 = –2, r4 = 1.
r
Again let q = Max i for xi > 0
i
xi
r1 r2 r4
q = Max ( , , )
x1 x 2 x 4
0 2 1 8
q = Max ( 5 , , 5 )= .
4 1 8 5
Hence, we get another feasible solution as follows:
r r r
(x1, x2, x4) = x1 1 , x2 2 , x4 4
q q q
5 0 2 5 1 5 9
= 8 , 1 8 , 8 = ( , , 0).
4 5 5 8 5 4 4
That is, (x1, x2, x3, x4) = (5/4, 9/4, 0, 0) is a new feasible solution to
the given system.
Submatrix formed by taking column vectors of A corresponding to
positive variables of the new feasible solution is B2 = (a1, a2) =
2 2
and |B2| = 4 0. Thus, a1, a2 are linearly independent and
1 3
hence the solution (x1, x2, x3, x4) = (5/4, 9/4, 0, 0) is another
required basic feasible solution corresponding to the given feasible
solution.
49
Setting the Scene
Branch –2
We can write equation (ii) as follows:
2a1 – 8a3 – 3a4 = 0 (v)
s
Let p = Max i for xi > 0
i
xi
s1 s 2 s 3 s 4
p = Max ( , , , )
x1 x 2 x 3 x 4
2 0 8 3
p = Max ( , , , ) = 2.
1 1 1 1
Hence, we get a new feasible solution as follows:
s s s s
X2 = x1 1 , x 2 2 , x3 3 , x 4 4
p p p p
2 0 8 3
= 1 , 1 , 1 , 1
2 2 2 2
5
= (0, 1, 5, ) which is not a basic solution.
2
Now the given system of linear equations becomes as follows:
2x2 – x3 + 4x4 = 7
3x2 – 2x3 + 6x4 = 8
where x2 = 1, x3 = 5, x4 = 5/2 is a feasible solution.
Now we apply the above procedure again. There exist three scalars
r2, r3, r4 (all of them are not zero) such that
r2a2 + r3a3 + r4a4 = 0 (vi)
2 1 4
r2 + r3 + r4 = 0
3 2 6
2r2 r3 4r4 0
=
3r2 2r3 6r4 0
50
Mathematical Programming
2r2 r3 4r4 0
3r2 3r3 6r4 0
r2 r3 r4
(say)
6 12 12 12 6 3
r2 r3 r 1
4 (say)
6 0 3 3
r2 = – 2, r3 = 0, r4 = 1.
So form (vi), we have
–2a2 + 0a3 + a4 = 0 (vii)
r
Let q = Max i for xi > 0
i
xi
r2 r3 r4
q = Max ( , , )
x 2 x3 x 4
2 0 1 2
q = Max ( , , 5 )=
1 5 2 5
Hence we get new feasible solution as follows:
r r r
(x2, x3, x4) = x2 2 , x3 3 , x4 4
q q q
2 0 5 1
= 1 2 , 5 2 , 2 = (6, 5, 0).
5 5 2 5
That is, (x1, x2, x3, x4) = (0, 6, 5, 0) is a new feasible solution of the
given system.
Submatrix formed by taking column vectors of A corresponding to
positive variables of the new feasible solution is B3 = (a2, a3) =
2 1
and |B3| = –1 0. Thus, a2, a3 are linearly independent
3 2
and hence the solution (x1, x2, x3, x4) = (0, 6, 5, 0) is a required
basic feasible solution corresponding to the given feasible solution.
51
Setting the Scene
52
Mathematical Programming
53
Setting the Scene
2 6
(i) For basis matrix B1=(a1, a2)= , basic variables are x1, x2
6 4
and non-basic variables are x3, x4. Putting x3 = x4 = 0, the constraint
equations reduce to
2x1 + 6x2 = 3
6x1 + 4x2 = 2.
Solving the system of linear equations, we have x1 = 0, x2 = ½.
Hence, a basic solution is X1 = (0, ½, 0, 0) which is also feasible.
2 2
(ii) For basis matrix B2 = (a1, a3) = , basic variables are x1,
6 4
x3 and non-basic variables are x2, x4. Putting x2 = x4 = 0, the
constraint equations reduce to
2x1 + 2x3 = 3
6x1 + 4x3 = 2.
Solving this system, we get x1 = –2, x3 = 7/2. Hence, a second
basic solution is X2 = (–2, 0, 7/2, 0) which is non-feasible.
2 1
(iii) For basis matrix B3 = (a1, a4)= , basic variables are x1,
6 6
x4 and non-basic variables are x2, x3. Putting x2 = x3 = 0, the
constraint equations reduce to
2x1 + x4 = 3
6x1 + 6x4 = 2.
Solving this system, we get x1 = 8/3, x4 = 7/3. Hence, a third
basic solution is X3 = (8/3, 0, 0, –7/3) which is non-feasible.
6 2
(iv) For basis matrix B4 = (a2, a3) = , basic variables are x2,
4 4
x3 and non-basic variables are x1, x4. Putting x1 = x4 = 0, the
constraint equations reduce to
6x2 + 2x3 = 3
4x2 + 4x3 = 2.
54
Mathematical Programming
55
Setting the Scene
Example 1.35
Reduce the LP problem into canonical form:
Maximize z = 2x1 – 3x2 + x3
Subject to 2x1 + 3x2 5
x1 – x3 3
x1 + 2x2 = 1
x3 0, x1, x2 are unrestricted in sign.
Solution: Expressing 3rd constraint by using the symbols of " "
and " ", we have the given problem as follows:
Maximize z = 2x1 – 3x2 + x3
Subject to 2x1 + 3x2 5
x1 – x3 3
x1 + 2x2 1
x1 + 2x2 1
x3 0, x1, x2 are unrestricted in sign.
Multiplying 2nd and 3rd constraints by –1, we get
Maximize z = 2x1 – 3x2 + x3
Subject to 2x1 + 3x2 5
–x1 + x3 –3
–x1 – 2x2 –1
x1 + 2x2 1
x3 0, x1, x2 are unrestricted in sign.
Considering x1 = x1 – x1// , x2 = x 2/ – x 2// ; x1/ 0, x1// 0, x 2/ 0, x 2//
/
0, we have
Maximize z = 2 x1/ –2 x1// – 3 x 2/ –3 x 2// + x3
Subject to 2 x1/ – 2 x1// + 3 x 2/ – 3 x 2// 5
– x1 + x1
/ //
+ x3 –3
– x1 + x1 – 2 x 2 + 2 x 2//
/ // /
–1
x1 – x1 + 2 x 2 – 2 x 2
/ // / //
1
x1 , x1 , x 2 , x 2 , x3 0.
/ // / //
56
Mathematical Programming
1.11 Exercises
1.1 What do you mean by optimization?
1.2 Define with example objective function, constraints and non-
negativity condition of a linear programming problem.
1.3 Discuss the characteristics of the standard form and canonical
form of a linear programming problem.
1.4 What are the advantages and limitations of linear programming?
1.5 Define with examples feasible solution, basic solution, basic
feasible solution, non-degenerate basic feasible solution and
optimum solution of a linear programming problem.
1.6 Define slack and surplus variables with examples.
1.7 Find the numerical values of
5 n
(i) a
a 1
[Ans: 14] (ii) a if
a 1
n is 6 [Ans: 20]
5 10
(iii) 3i
i 1
[Ans: 45] (iv) p
p 5
2
[Ans: 355]
57
Setting the Scene
x1, x2 0
ii) Maximize z = 3x1 + x2
Subject to 8x1 + 2x2 4
–3x1 + 2x2 3
x1 0, x2 is unrestricted in sign.
iii) Minimize z = 9x1 + 6x2
Subject to 5x1 + 3x2 + x3 = 10
–3x1 + x2 + 2x3 3
x1, x2, x3 0
iv) Maximize z = 2x1 + x2
Subject to 2x1 + 3x2 5
–3x1 + x2 3
x1 0, x2 is unrestricted in sign.
v) Maximize z = 3x1 + 6x2 + 2x3
Subject to 8x1 + 3x2 + x3 = 4
–3x1 + x2 + 2x3 3
x1, x2, x3 0
vi) Maximize z = 3x1 + x2 + 3x3
Subject to 8x1 + 2x2 – x3 4
–3x1 + 2x2 + 2x3 3
x1, x2 0, x3 is unrestricted in sign.
vii) Maximize z = 3x1 + x2 + 3x3
Subject to 8x1 + 2x2 – x3 4
–3x1 + 2x2 + 2x3 3
x1 + 5x2 – 3x3 7
x1, x2 0, x3 is unrestricted in sign.
viii) Maximize z = 2x1 + 6x2 + 5x3
Subject to 20x1 + 3x2 + x3 = 4
–3x1 + x2 + 2x3 8
x1, x2, x3 0
ix) Minimize z = x1 + 7x2 + 5x3
Subject to 2x1 + 3x2 + x3 = 4
–3x1 + 8x2 + 2x3 –3
58
Mathematical Programming
x1, x2, x3 0
x) Minimize z = 10x1 + 11x2
Subject to 2x1 + 3x2 5
–3x1 + x2 3
x1 0, x2 0
xi) Minimize z = 10x1 + 11x2
Subject to 2x1 + 3x2 5
–3x1 + x2 3
x1 4, x2 is unrestricted in sign.
xii) Maximize z = 3x1 + x2
Subject to 8x1 + 2x2 4
–3x1 + 2x2 3
x1 0, x2 is unrestricted in sign.
xiii) Maximize z = 3x1 + x2 + 3x3
Subject to 8x1 + 2x2 – x3 4
–3x1 + 2x2 + 2x3 3
x1 + 5x2 – 3x3 7
x1 0, x2 0, x3 is unrestricted in sign.
xiv) Maximize z = 2x1 + 8x2 + 3x3
Subject to 2x1 + 2x2 – 9x3 7
–3x1 + x2 + 2x3 3
3x1 + 5x2 – 3x3 6
x1 –2, x2 0, x3 is unrestricted in sign.
xv) Minimize z = x1 + 9x2 + 3x3
Subject to 7x1 + 2x2 – 9x3 38
–4x1 + 3x2 + 2x3 –4
5x1 + 5x2 – 3x3 6
x1 –2, x2 7, x3 is unrestricted in sign.
xvi) Maximize z = 5x1 + 2x2 + 3x3 + x4
Subject to 5x1 + 4x2 – 9x3 + 4x4 10
–2x1 + 3x2 + 9x3 + 2x4 4
x1 + 5x2 – 2x3 + 3x4 56
x1, x2,x3, x4 0.
59
Setting the Scene
60
Mathematical Programming
x1 0, x2 is unrestricted in sign.
b. Minimize z = 3x1 + 4x2
Subject to 5x1 + 3x2 + x3 = 10
–3x1 + 5x2 + 2x3 3
x1, x2, x3 0
c. Maximize z = 2x1 + 5x2
Subject to 3x1 + 3x2 –5
–3x1 + x2 3
x1 0, x2 is unrestricted in sign.
d. Maximize z = 2x1 + 7x2 + 2x3
Subject to 3x1 + 3x2 + x3 = 12
–3x1 + x2 + 2x3 3
x1, x2, x3 0
e. Maximize z = 3x1 + 7x2 + 3x3
Subject to 3x1 + 2x2 – x3 14
–3x1 + 4x2 + 2x3 3
x1, x2 0, x3 is unrestricted in sign.
f. Maximize z = 13x1 + 10x2 + 3x3
Subject to 10x1 + 2x2 – x3 44
–3x1 + 2x2 + 8x3 3
9x1 + 5x2 – 3x3 7
x1, x2 0, x3 is unrestricted in sign.
g. Maximize z = 2x1 + 6x2 + 5x3
Subject to 20x1 + 3x2 + x3 = 4
–3x1 + x2 + 2x3 8
x1, x2, x3 0
h. Minimize z = x1 + 7x2 + 5x3
Subject to 2x1 + 3x2 + x3 = 4
–3x1 + 8x2 + 2x3 –3
x1, x2, x3 0
i. Minimize z = 10x1 + 11x2
Subject to 2x1 + 3x2 5
–3x1 + x2 3
61
Setting the Scene
x1 0, x2 0
j. Minimize z = 10x1 + 11x2
Subject to 2x1 + 3x2 5
–3x1 + x2 3
x1 4, x2 is unrestricted in sign.
k. Maximize z = 3x1 + 7x2
Subject to 9x1 + 2x2 24
–3x1 + 5x2 3
x1, x2 are unrestricted in sign.
l. Maximize z = 3x1 + x2 + 3x3
Subject to 8x1 + 2x2 – x3 4
–3x1 + 2x2 + 2x3 3
x1 + 5x2 – 3x3 7
x1 0, x2 0, x3 is unrestricted in sign.
m. Maximize z = 7x1 + 8x2 + 13x3
Subject to 2x1 + 2x2 – 9x3 17
–5x1 + 3x2 + 2x3 3
3x1 + 5x2 – 3x3 6
x1 –2, x2 0, x3 is unrestricted in sign.
n. Minimize z = x1 + 9x2 + 3x3
Subject to 7x1 + 2x2 – 9x3 38
–4x1 + 3x2 + 2x3 –4
5x1 + 5x2 – 3x3 6
x1 –2, x2 7, x3 is unrestricted in sign.
o. Maximize z = 5x1 + 2x2 + 3x3 + x4
Subject to 5x1 + 4x2 – 9x3 + 4x4 10
–2x1 + 3x2 + 9x3 + 2x4 4
x1 + 5x2 – 2x3 + 3x4 56
x1, x2,x3, x4 0.
p. Maximize z = 7x1 + 2x2 + 3x3 + 2x4
Subject to 2x1 + 3x2 – 9x3 + 4x4 =13
2x1 + 3x2 – 9x3 + 2x4 4
3x1 + 5x2 – 2x3 + 2x4 25
62
Mathematical Programming
x1, x2 0, x3 0, x4 unrestricted
q. Maximize z = 3x1 + 9x2 + 3x3 +3x4
Subject to 6x1 + 3x2 – 5x3 + 4x4 =12
3x1 + 8x2 – 9x3 + 2x4 40
3x1 + 5x2 – 2x3 + x4 19
x1 0, x3 3, x2 and x4 unrestricted
r. Minimize z = 7x1 + 9x2 + 3x3 + 7x4
Subject to 3x1 + 2x2 – 9x3 + 4x4 18
–2x1 + 3x2 + 4x3 + 2x4 –14
5x1 + 6x2 – 3x3 + 3x4 45
x1 0, x2 –2, x3 1, x4 is unrestricted.
63
Setting the Scene
64
Mathematical Programming
x1 + 2x2 + 3x3 = 12
2x1 – x2 + x3 = 4
Reduce the feasible solution to a basic feasible solution.
1.20 If x1 = 1, x2 = 1, x3 = 1 be a feasible solution of the system of
linear equations.
3x1 + 2x2 + 3x3 = 8
2x1 – 3x2 + 3x3 = 2
Reduce the feasible solution to a basic feasible solution.
65
Setting the Scene
66
Appendix 1
Classical Optimization
Minimum point
O X
Figure 10.1
dy
The gradient of a curve y = f(x) at all turning points is 0 (zero),
dx
dy
i.e., = 0 at all up peaks and down peaks. At the point of
dx
dy
maxima, the sign of changes from positive to negative when x
dx
dy
increases and at the minima, the sign of changes from negative
dx
to positive when x increases.
Appendices
Example 10.1
Find for what values of x, the following expression is maximum
and minimum respectively: 15x4 + 8x3 – 18x2.
Find also the maximum and minimum values of the expression.
Solution: Let us consider,
f x 15x 4 8x 3 18x 2 .
f / x
d
(15 x 4 8 x 3 18 x 2 ) = 60x3 + 24x2 – 36x.
dx
And f // x =
d
(60x3 + 24x2 – 36x) = 180x2 + 48x – 36.
dx
At the maximum or minimum, f / x = 0. So, we have
60x3 + 24x2 – 36x = 0,
x(x +1)(5x – 3) = 0.
3
Implies, x = 0, x = –1 and x = .
5
When x = 0, f // 0 36, which is negative,
when x = –1, f // (1) 96, which is positive,
3 3 288
and when x = f // , which is positive.
5, 5 5
672
Mathematical Programming
Example 10.2
Find maximum and minimum values of f(x) = x3 – 4x2 + 4x – 10.
Solution: Given that, f(x) = x3 – 4x2 + 4x – 10.
d 3
So, f /(x) = (x – 4x2 + 4x – 10) = 3x2 – 8x + 4,
dx
d
f //(x) = (3x2 – 8x + 4) = 6x – 8.
dx
When f x is a maximum or a minimum, f / x = 0, thus
3x2 – 8x + 4 = 0,
2
x = 2 and x = .
3
Now, when x = 2, f 2 4, which is positive.
//
2 // 2
And when x = f 4, which is negative.
3 3
2
Hence, the given function is maximum at x = and minimum at x
3
= 2.
2 238
Here, f (2) = – 10 and f = – = – 8.815.
3 27
Thus, the maximum value of the function is – 8.815 and the
minimum values is –10.
673
Appendices
Example 10.3
Examine for extreme values of the function:
f(x, y) = x2 + y2 + (x + y +1)2.
Solution: Given that f(x, y) = x2 + y2 + (x + y +1)2.
So, fx = 2x + 2(x + y +1) = 4x + 2y + 2,
fy = 2y + 2(x + y +1) = 2x + 4y + 2,
674
Mathematical Programming
Example 10.4
Determine whether the objective function
675
Appendices
Example 10.5
Production function of a firm is f(x, y) = 20x + 10y – 2x2, where x
means the number of labours and y means the unit of raw material.
If the cost of per unit labour is tk. 4, the cost of per unit raw
material is tk. 5 and the total spent is tk. 24, find the maximum
production of the firm.
Solution: Here,
Objective function: f(x, y) = 20x + 10y – 2x2,
Constraint: 4x + 5y = 24.
676
Mathematical Programming
677
Appendices
Example 10.6
5 2
Total cost of producing x units is x + 175x + 125 and the selling
4
5
price per unit is 250 – x . What should be the output for a
2
maximum profit? And calculate that maximum profit.
Solution: Given that,
5
Cost function: c(x) = x 2 + 175x + 125,
4
5 5
Revenue function: r(x) = (250 – x ) x = 250x – x 2 ,
2 2
5 2 5 2
Profit function: p(x) = 250x – x – ( x + 175x + 125)
2 4
15 2
= – 125 + 75x – x
4
d d 15 2
Now, [p(x)] = (–125 + 75x – x )
dx dx 4
30
= 75 – x
4
The necessary and sufficient conditions for maximization are that
the first derivative of a profit function is equal to zero and the
second derivative is negative. So,
30
75 – x = 0 implies x = 10.
4
d2 30
And 2
[p(x)] = – , which is negative.
dx 4
Therefore, the profit is maximum at the output, x = 10 units.
Putting x = 10 in the profit function, we have
15
Maximum profit = – 125 + 75 10 – (10) 2 = 250.
4
678
Mathematical Programming
Appendix 2
Model Exam Paper
University Question 1
Subject: Mathematical Programming (Code 3778)
Time: 4 hours Total Marks: 100
Group A
(Answer any 10 questions.)
1. (a) Define convex set. [Sec. 2.2]
(b) Define hyperplane. [Sec. 2.9]
(c) What is the meaning of half space? [Sec. 2.10],
(d) Define convex hull with an example. [Sec. 2.6],
(e) What is the meaning of convex polyhedron? [Sec. 2.7]
(f) Define feasible solution. [Sec. 1.9]
(g) When do we introduce slack variable in a linear
programming problem? [Sec. 1.9]
(h) Define surplus variable. [Sec. 1.9]
(i) What is sensitivity analysis? [Sec. 6.1]
(j) State the canonical form of a LP problem. [Sec. 1.6]
(k) Define boundary of a convex set. [Sec. 2.15]
(l) Distinguish assignment problem from transportation
problem. [Sec. 9.2]
Group B
(Answer any 5 questions.)
2. State and prove complementary slackness theorem in linear
programming. [Thm 5.7]
3. Show that the set of all optimal solution to a linear
programming problem is a convex set. [Thm 2.12]
679
Appendices
Group C
(Answer any 5 questions.)
10. Show that S = {(x1, x2, x3): 2x1 + x2 – x3 1, x1 – 2x2 + x3 4}
is a convex set. [Ex. 2.22]
11. Solve graphically the following linear program:
Minimize z = 3x1 + 2x2 [Ex. 3.21]
Subject to x1 + 2x2 4
2x1 + x2 4
x1 + x2 5
x1, x2 0.
12. Solve the following linear programming problem using the
simplex method:
Maximize z = x1 + 4x2 + 5x3 [Ex. 4.60]
Subject to 3x1 + 3x3 22
x1 + 2x2 + 3x3 14
3x1 + 2x2 14
x1, x2, x3 0.
680
Mathematical Programming
13. Vitamin A and B are found in two different Foods F1 and F2.
One unit of Food F1 contains 2 units of vitamin A and 5 units
of vitamin B. One unit of Food F2 contains 4 units of vitamin A
and 2 units of vitamin B. One unit of Food F1 and F2 costs tk.5
and tk.3 respectively. The minimum daily requirements (for a
man) of vitamin A and B are 40 and 50 units respectively.
Consuming of excess vitamin is not harmful for health. Find
out the optimum mixture of Food F1 and F2 at minimum cost
which meets the daily minimum requirement of vitamin A and
B. Formulate this as linear programming problem and solve it
graphically. [Ex. 3.33]
14. Reduce the given LP problem into canonical forms:
Maximize z = 2x1 – 3x2 + x3 [Ex. 1.37]
Subject to 2x1 + 3x2 5
x1 – x3 3
x1 + 2x2 = 1
x3 0, x1 and x2 are unrestricted in sign.
15. Construct the dual of the LP problem:
Minimize z = x1 + 2x2 + 3x3 [Ex. 5.18]
Subject to x1 – x2 + 2x3 4
x1 + x2 + 2x3 8
x2 – x3 2
x1, x2, x3 0.
16. By using Vogel’s approximation method, find the initial basic
feasible solution to the transportation problem represented by
the cost table below. [Ex. 8.1]
Dj Supply
1 2 3 4
Oi si
1 11 13 17 14 250
2 16 18 14 10 300
3 21 24 13 10 400
Demand
200 225 275 250
dj
681
Appendices
682
Mathematical Programming
Appendix 3
Bibliography
683
Appendices
684
View publication stats