Chapter-7
Chapter-7
Linear Optimization
Optimization in Linear Programming (LP) refers to the process of finding the best possible
solution from a set of feasible solutions defined by a system of linear equations or inequalities.
In simple terms:
Linear programming is a mathematical technique used to maximize or minimize a linear
objective function, subject to a set of linear constraints (equations or inequalities).
It is a central topic of optimization. It provides a powerful tool in modeling many applications. LP
has attracted most of its attention in optimization for two main reasons:
Applicability:
There are many real-world applications that can be modeled as linear programming.
Solvability:
There are theoretically and practically efficient techniques for solving large scale problems.
Advantages of Linear Programming:
i. It helps in attaining the optimum use of productive factors. Linear programming indicates
how a manager can utilize his production factors most effectively by a better selection and
distribution of these elements. For example, more efficient use of man power and machines
can be obtained by the use of linear programming.
ii. It improves the quality of decision. The individual having a clear idea of relationships
within the basic equations, inequalities or constraints can have a better idea about the
problem and its solution.
iii. It can improve the knowledge and skill of tomorrow’s executive.
iv. Linear programming allows modification of its mathematical solutions.
v. It highlights the bottlenecks in the production process.
Limitations of Linear Programming:
i. For large scale problems having many limitations and constraints, the computational
difficulties are enormous. It may sometimes be possible to get over these difficulties by
splitting the main problem into smaller ones, deriving solutions for them and then
combining the results.
ii. According to the linear programming problem, the solution variables can have any value,
like some of the variables can have only integral values. Such situations justify the use of
special methods.
iii. The model does not take into the effect of time.
iv. Many times, it is not possible to express both the objective function and constraints in
linear form. The misapplication of linear programming under non-linear conditions usually
results an incorrect solution.
Formulation of L.P.P:
Each optimization problem consists of three elements:
Formally, we use the term Linear Programming (LP) to refer to an optimization problem in which
the objective function is linear and each constraint is a linear inequality or equality.
Example:
A company makes two products (say 𝑃 and 𝑄) using two machines (say 𝐴 and 𝐵). Each unit of 𝑃
that is produced requires 50 minutes processing time on machine 𝐴 and 30 minutes processing
time on machine 𝐵. Each unit of 𝑄 that is produced requires 24 minutes processing time on
machine 𝐴 and 33 minutes processing time on machine 𝐵.
Machine 𝐴 is going to be available for 40 hours and machine 𝐵 is going to be available for 35
hours. The profit per unit of 𝑃 is $25 and the profit per unit of 𝑄 is $30. Company policy is to
determine the production quantity of each product in such a way as to maximize the net profit
given that the available resources should not exceeded.
Task:
The aim is to formulate the problem of deciding how much of each product to make in the current
week as an LP.
We want to maximize the net profit. The profit per each unit of product 𝑃 is $25 and profit per
each unit of product 𝑄 is $20. Therefore, the net profit is 25𝑥 + 30𝑦, as we produce x units of 𝑃
and y units of 𝑄.
We typically use the variable 𝑧 to denote the value of the objective. So the objective function can
be stated as
Finding Constrains:
The amount of time that machine 𝐴 is available restricts the quantities to be manufactured. If we
produce 𝑥 units of 𝑃 and 𝑦 units of 𝑄, machine 𝐴 should be used for 50𝑥 + 24𝑦 minutes since
each unit of 𝑃 requires 50 minutes processing time on machine 𝐴 and each unit of 𝑄 requires 24
minutes processing time on machine 𝐴. On the other hand, machine 𝐴 is available for 40 hours or
equivalently for 2400 minutes. This imposes the following constraint,
Similarly, the amount of time that machine 𝐵 is available imposes the following constraint
Note: In most problems the decision variables are required to be non-negative and this should be
typically
𝑥≥0
𝑦≥0
Here is the L.P:
𝑥≥0
𝑦≥0
Different kind of solution:
Basic solution: The solution of 𝑚 basic variables, when each of the 𝑛 non-basic variables is
considered zero is called basic solution.
𝑥1 = 1, 𝑥2 = 1
𝑥2 = 9, 𝑥4 = 5
Basic feasible solution: In a linear programming problem a feasible solution which is also basic
is called basic feasible solution. In the other words, it is a basic solution which satisfy the non-
negative condition.
𝑥1 = 1 , 𝑥2 = 1 , 𝑥3 = 𝑥4 = 0
𝑥2 = 0 , 𝑥3 = 2 , 𝑥1 = 𝑥4 = 0
𝑥3 = 2 , 𝑥4 = 0 , 𝑥1 = 𝑥2 = 0
Optimal solution: An optimal solution is a feasible solution where the objective function reaches
its (maximum or minimum) value.
Non-degenerate basic feasible solution: A basic feasible solution is called non-degenerate basic
feasible solution if it has exactly 𝑚 positive.
2𝑥1 + 𝑥2 + 𝑥3 = 5 (2)
𝑥1 = 2, 𝑥2 = 1
Degenerate basic feasible solution: A basic feasible solution is said to be degenerate basic
feasible solution if at least one of the basic variables is zero.
𝑥3 = 2, 𝑥4 = 0
Problem:1 Find all the basic feasible solution of the following L.P.P
2 x1 + 6 x 2 + 2 x3 + x 4 = 3
6 x1 + 4 x 2 + 4 x3 + 6 x 4 = 2
2 x1 + 6 x 2 + 2 x3 + x 4 = 3
6 x1 + 4 x 2 + 4 x3 + 6 x 4 = 2
x1 , x 2 , x3 , x 4 0
The total number of solution set is 4 C 2 = 6
2 x1 + 6 x2 = 3 (1)
6 x1 + 4 x2 = 2 (2)
1
Solution is (0, ,0,0)
2
2 x1 + 2 x3 = 3 (3)
6 x1 + 4 x3 = 2 (4)
7
Solution is (−2,0, ,0)
2
2x1 + x4 = 3 (5)
6 x1 + 6 x4 = 2 (6)
8 −7
Solution is ( ,0,0, )
3 3
6 x 2 + 2 x3 = 3 (7)
4 x 2 + 4 x3 = 2 (8)
1
Solution is (0, ,0,0)
2
6 x2 + x4 = 3 (9)
4 x2 + 6 x4 = 2 (10)
1
x2 = and x4 = 0
2
1
Solution is (0, ,0,0)
2
2 x1 + 6 x2 = 3 (11)
6 x1 + 4 x2 = 2 (12)
x3 = 2 and x4 = −1
Solution is (0,0,2,−1)
1
x1 = 0, x 2 = , x3 = 0, x 4 = 0
2
1
x1 = 0, x 2 = , x3 = 0, x 4 = 0
2
Problem: Reduce the following L.P into standard form
𝑥1 + 𝑥3 ≥ 3
𝑥1 + 2𝑥2 = 1
2𝑥1 + 3𝑥2 + 0. 𝑥3 + 𝑠1 = 5
𝑥1 + 0. 𝑥2 + 𝑥3 − 𝑠2 = 3
𝑥1 + 2𝑥2 + 0. 𝑥3 = 1
𝑥2 = 𝑥2 ′ − 𝑥2 "
𝑥3 = 𝑥3 ′
Application of L.P:
Sensitivity Analysis:
Sensitivity Analysis is a technique used to determine how the variation in the output of a model
(such as a linear programming problem) can be attributed to different variations in its input
parameters. In the context of linear programming (LP), it helps in understanding how changes in
coefficients of the objective function or constraints affect the optimal solution.
Purpose of Sensitivity Analysis:
4. Reduced Cost:
o Indicates how much the objective function coefficient of a non-basic variable must
improve before it enters the solution.
Tools and Techniques of Sensitivity Analysis:
1. Graphical Method (for 2-variable problems):
▪ LINDO / LINGO:
▪ Specialized LP software with advanced sensitivity analysis features.
▪ TORA:
▪ Educational software that offers simplex and sensitivity analysis
support.
4. Duality Theory:
o The concept of converting the primal problem to its dual to analyze sensitivity and
economic interpretations.
5. What-If Analysis:
o Manually changing input values (like resource availability or cost/profit) to observe
impact on results.
Therefore, Sensitivity analysis is an essential part of linear programming that helps evaluate the
reliability of the optimal solution under uncertainty. By using various analytical and software-
based tools, it aids in informed and flexible decision-making.
Graphical method of linear programming
Formulation and Graphical Solutions of System of Linear Inequalities and
Linear Programming:
To manufacture, a type-A souvenir requires 2 minutes on machine I and 1 minute on machine II.
A type-B souvenir requires 1 minute on machine I and 3 minutes on machine II.
There are 3 hours available on machine I and 5 hours available on machine II.
How many souvenirs of each type should ACE make in order to maximize its profit?
The total amount of time that machine II is used is x+3y and must not exceed 300 minutes.
2x+y≤180
x+3y≤300
x≥ 0, y≥ 0
200
(0,180)
2x+y≤180
100
(90,0)
X
100 200
2x+y=180
We shall graph the solution for the inequality: x+3y≤300
Y
200
(0,100) x+3y≤300
100
(300,0)
X
Graph the intersection of the solutions to the inequalities yielding the feasible set S.
(Where the feasible set S is bounded)
Y
200
D(0,100)
100 C(48,84)
S
A(0,0) X
B(90,0) 100
x+3y=300
2x+y=180
Tabular Form:
Vertex P=x+1.2y
A(0,0) 0
B(90,0) 90
C(48,84) 148.8
D(0,100) 120
We can see that, P is maximized at the vertex C(48,84) and has a value of 148.80.
So, we conclude that ACE Novelty would maximize its profit at $148.80 by producing 48
type-A souvenirs and 84 type-B souvenirs.
Problem-1:Solve graphically the following L.P.P.
Subject to 𝑥1 + 𝑥2 ≤ 6
0 ≤ 𝑥1 ≤ 3
0 ≤ 𝑥2 ≤ 3
2𝑥1 + 3𝑥2 ≥ 3
𝑥1 , 𝑥2 ≥ 0
Solution: The solution space satisfying the given constraints and meeting the non-negativity
restrictions 𝑥1 ≥ 0 and 𝑥2 ≥ 0 is shown shaded figure bellow
Any point in this shaded region is a feasible solution to the given problem. The vertices of the
3
convex region ABCDE are 𝐴(0,1), 𝐵(0,3), 𝐶 (3,3), 𝐷(3,0) and 𝐸 (2 . 0)
𝑥1 = 3, 𝑥2 = 3, 𝑎𝑛𝑑 𝑧𝑚𝑎𝑥 = 24
Subject to 𝑥1 + 2𝑥2 ≤ 40
3𝑥1 + 𝑥2 ≥ 30
4𝑥1 + 3𝑥2 ≥ 60
𝑥1 , 𝑥2 ≥ 0
Solution: The solution space satisfying the given constraints and meeting the non-negativity
restrictions 𝑥1 ≥ 0 and 𝑥2 ≥ 0 is shown shaded figure bellow
Any point in this shaded region is a feasible solution to the given problem. The co-ordinates of the
vertices of the convex region ABCD are 𝐴(6,12), 𝐵(4,18), 𝐶(40,0) and 𝐷(15,0).
Since the minimum value of z is 240, which occurs at the vertex 𝐴(5,12), the solution to the given
problem is
Subject to 2 x1 + 5x2 80
x1 + x2 20
x1 , x2 0
Solution: The solution space satisfying the constraints 2 x1 + 5x2 80 and x1 + x2 20 and
meeting the non-negativity restrictions x1 0 and x2 0 is shown shaded in the figure below.
The co-ordinates of the vertices of the convex region OABC are O(0,0), A(0,16), B(6.5,13.5) and
C(20,0).Values of the objective function z = −0.1x1 + 0.5x2 at these vertices are
Z (0) = Z (0,0) = (−0.1).(0) + (0.5).(0) = 0
Since the maximum value of z is 8,which occurs at the vertex A(0,16),the solution of the given
problem is x1 = 0, x2 = 16 with Z max = 8 .
2 x1 + 3x2 900
x1 , x2 0
Solution: The solution space satisfying the given constraints and meeting the non-negativity
restrictions x1 0 and x2 0 is shown shaded in the figure below.
The co-ordinates of the vertices of the convex region OABC are O(0,0), A(0,200), B(187.5,125)
and C(250,0).Values of the objective function z = 40x1 + 100x2 at these vertices are
Z (0) = Z (0,0) = (40).(0) + (100).(0) = 0
Thus the maximum value of z occurs at two vertices A and B of the convex shaded region
[Link], there is no unique optimal solution to the problem and any point between A and
B on the line AB can be taken as an optimal solution with optimal value z=20,000
Subject to𝑥1 + 𝑥2 ≤ 1
3𝑥1 + 𝑥2 ≤ 4
𝑥1 , 𝑥2 ≥ 0
Solution:The solution space satisfying the given constraints and meeting the non-negativity
restrictions 𝑥1 ≥ 0 and 𝑥2 ≥ 0 is shown shaded figure bellow
Any point in this shaded region is a feasible solution to the given problem.
The co-ordinates of the vertices of the convex region OAB are 𝑂(0,0), 𝐴(0,1) and 𝐵(1,0).
Since the maximum value of z is 3, which occurs at the vertex 𝐴(0,1), the solution to the given
problem is 𝑥1 = 0, 𝑥2 = 1 with 𝑧𝑚𝑎𝑥 = 3
5𝑥1 + 2𝑥2 ≤ 10
𝑥1 , 𝑥2 ≥ 0
Solution: The solution space satisfying the given constraints and meeting the non-negativity
restrictions 𝑥1 ≥ 0 and 𝑥2 ≥ 0 is shown shaded figure bellow
Any point in this shaded region is a feasible solution to the given problem.
20 45
The co-ordinates of the vertices of the convex region OABC are 𝑂(0,0), 𝐴(0,3), 𝐵 (19 , 19 ) and
𝐶 (2,0)
… .. . .. . .. . ..
𝑥𝑗 ≥ 0, 𝑗 = 1,2 . . . 𝑛
Step-1:
Introducing slack variables 𝑆𝑗 ≥ 0, 𝑗 = 1,2, . . . . . . 𝑚 to convert the inequality to an equation
and adding them into objective function with co- efficient zero. We get,
Maximize 𝑍 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛 + 0. 𝑠1 + 0. 𝑠2 + ⋯ + 0. 𝑠𝑚
subject to constraints,
𝑥1 = 0 = 𝑥2 . . . . . = 𝑥𝑛 and 𝑠1 = 𝑏1 , 𝑠2 = 𝑏2 . . .. 𝑠𝑚 = 𝑏𝑚
𝑏1 , 𝑏2 , . . . 𝑏𝑛 ≥ 0
Step 3:
Rewriting objective function, we obtain,
− c1 x1 + c2 x2 + .......... .. + c j x j + Z j = 0
Step- 4:
Placing the restate objective function below the system of equation of construction,
Step -5:
Thus the initial table associate with this system is
Let (a) since the entry -𝑐1 is the most (-ve) to the left of the vertical line in the last row, the 1st
column is the pivot column.
(b) Divide each positive number / -ve number of the p.c into the corresponding entry in the column
of constants and compare the ratios thus obtained.
From Minimum Ratio, the smallest value is estimated. Let it is 𝑑1 , so the 1st row is Pivot row.
Step 8: Now convert the Pivot element into 1 by dividing by 𝑎11 and use elementary row
operations to convert the Pivot column into a unit column.
All entries below the unit or 1 are 0.
𝑅1 × 𝑐1 +(- 𝑐1 )=P
This completes the iteration if there is no any –ve value in the last row.
𝑥2 =0
.
.
.
𝑥𝑛 =0
𝑏
Z= 𝑥1 (- 𝑐1 ) ×𝑎 1
11
The optional solution is called Unique if all the non-basic variables have –ve values for their
relative profits. This means that any increase in the decision variables will result in an immediate
decrease in the objective function.
For minimization problem:
We have to find the most +ve value from the Pivot column.
Here, we introduce with surplus variables.
Artificial Variable:
Constrains in LPP with ≤, ≥ then we have to add variables left hand of these constraints. These
variables are called Artificial Variables i.e surplus, slack variable.
In simplex method of solving L.P.P, the role of artificial variable: slack, surplus help us to obtain
initial basic feasible solution.
Theorem 1:
If for any basic feasible selection xB if a L.P.P at any iteration of simple algorithm Z j − C j 0
for all the non-basic vectors of A, then xB is an optional solution.
Proof: Let
A = (a1 , a2,.......,an )
B = (1 , 2,......., m )
Here, Ax = b .....(i)
xB = B−1b [BxB = b]
is the basic feasible solution and the of objection function is ZB = CB xB .
Z j − C j 0 For all column vectors a j . It is required to prove that Z B is the optimal value of the
objective function corresponding to the basic feasible solution xB .
Let, x ' = [ x '1 , x2' ..... xn' ] be any feasible solution of the problem which makes the objective function
n
to z = c j x j
j =1
Ax = BxB
xB = B−1 (Ax ) = (B−1 A)x = [ = [y1 , y2 ...yn ]]
xB = (y1 , y2 ,..., yn )[ x1 , x2 ,..., yn ] ......(ii)
[ xB1 , xB2 ...xBn ] =
n
Equating we get, xBi = yij x j ......(iii )
i =1
z cB xB
z zB ..............(iv)
Hence zB is the optimal value of the objective function corresponding to the basic feasible solution
zB .
cBi = c j
z j − c j = cB y j − cBi = cB ei − cBi = cBi − cBi = 0
Subject to 2 x + y 180
x + 3 y 300
x, y 0
Solution: Introducing slack variables u and v into the given inequalities we get,
2x+y+u=180
x+3y+v=300
6
−x − y + 0.u + 0.v + p = 0
5
Cj 1 6 0 0
5
CB Basic x1 x2 s1 s2 Solution Ratio
variable XB
0 s1 2 1 1 0 180 6
0 s2 1 3 0 1 300 3
Zj 0 0 0 0 0
Cj − Z j 1 6 0 0
5
From table we can see the 2nd column and the 2nd row is the pivot column and row respectively.
And 3 is the pivot element.
Iteration-I:
Cj 1 6 0 0
5
CB Basic x1 x2 s1 s2 Solution Ratio
variable XB
0 s1 5 0 1 1 80 48
−
3 3
6 x2 1 1 0 1 100 300
5 3 3
Zj 2 6 0 2 0
5 5 5
Cj − Z j 3 0 0 2
−
5 5
Also, not optimal.
3rd table:
Cj 1 6 0 0
5
CB Basic x1 x2 s1 s2 Solution Ratio
variable XB
1 x1 1 0
3 1 48 48
−
5 5
6 x2 0 1 1 2 84 300
−
5 5 5
Zj 1 6 9 1 144.4
5 25 5
Cj − Z j 0 0 9 1
− −
25 5
The last row of the table contains all negative numbers so an optimal solution has been reached.
Maximize Z = 7 x1 + 5x2
Subject to: x1 + 2 x2 6
4 x1 + 3 x2 12
x1 , x2 0
Maximize Z = 7 x1 + 5x2
Subject to: x1 + 2 x2 6
4 x1 + 3 x 2 12
x1 , x 2 0
Maximize Z = 7 x1 + 5x2 + s1 .0 + s2 .0
Subject to: x1 + 2 x2 + s1 = 6
4 x1 + 3 x 2 + s 2 = 12
x1 , x 2 , s1 , s 2 0
Initial Table:
Cj 7 5 0 0
CB Basic Basic x1 x2 s1 s2 Ratio
variable solution
B XB
0 s1 6 1 2 1 0 6
0 s2 12 4 3 0 1 3
Zj 0 0 0 0
Cj − Z j 7 5 0 0
2nd Table:
Cj 7 5 0 0
CB B XB x1 x2 s1 s2
0 s1 3 0 5/4 1 -1/4
7 x1 3 1 3/4 0 1/4
Zj 7 -21/4 0 7/4
Cj − Zj 0 -1/4 0 -7/4
Since all C j − Z j is either zero or negative. Optimal solution has been reached
x1 = 3, x 2 = 0, Z max = 21
Minimize Z = x1 − 3x2 + 2 x3
Subject to 3x1 − x2 + 2 x3 7
2 x1 − 4 x 2 −12
− 4 x1 + 3 x 2 + 8 x3 10
x1 , x 2 , x3 0
Minimize Z = x1 − 3x2 + 2 x3
Subject to 3x1 − x2 + 2 x3 7
− 2 x1 + 4 x 2 12
− 4 x1 + 3 x 2 + 8 x3 10
x1 , x 2 , x3 0
Minimize Z = x1 − 3x2 + 2 x3 + s1 .0 + s 2 .0 + s3 .0
Subject to 3x1 − x2 + 2 x3 + s1 = 7
− 2 x1 + 4 x 2 + s 2 = 12
− 4 x1 + 3 x 2 + 8 x3 + s3 = 10
x1 , x 2 , x3 , s1 , s 2 , s3 0
Now pitting x1 = x2 = x3 = 0
We get s1 = 7, s 2 = 12, s3 = 10 which are the initial values of the slack variables.
Initial Table:
Cj 1 -3 2 0 0 0
CB B XB x1 x2 x3 s1 s1 s1 Ratio
0 s1 7 3 -1 2 1 0 0 -7
0 s2 12 -2 4 0 0 1 0 3
0 s3 10 -4 3 8 0 0 1 3.33
Zj 0 0 0 0 0 0
Cj − Zj 1 -3 2 0 0 0
Since -3 is the most negative element in C −z
j j
, the pivot column is the column containing x 2
and the pivot row is the row containing the minimum ratio 3.
2nd Table:
Cj 1 -3 2 0 0 0
CB B XB x1 x2 x3 s1 s1 s1
0 s1 7 3 -1 2 1 0 0
-3 x2 3 -1/2 1 0 0 1/4 0
0 s3 10 -4 3 8 0 0 1
3rd Table:
Cj 1 -3 2 0 0 0
CB B XB x1 x2 x3 s1 s1 s1 Ratio
0 s1 10 5/2 0 2 1 ¼ 0 4
-3 x2 3 -1/2 1 0 0 ¼ 0 -6
0 s3 -1 5/2 0 -8 0 ¾ -1 -2/5
Zj 3/2 -3 0 0 -3/4 0
Cj − Zj -1/2 0 2 0 3/4 0
4th Table:
Cj 1 -3 2 0 0 0
CB B XB x1 x2 x3 s1 s1 s1
1 x1 4 1 0 4/5 0 1/10 0
-3 x2 3 -1/2 1 0 0 ¼ 0
0 s3 -1 5/2 0 -8 2/5 ¾ 1
Zj 7/2 -3 4/5 2/5 -13/20 0
Cj − Zj -5/2 0 6/5 -2/5 13/20 0
5th Table:
Cj 1 -3 2 0 0 0
CB B XB x1 x2 x3 s1 s1 s1
1 x1 4 1 0 4/5 2/5 1/20 0
-3 x2 5 0 1 2/5 1/5 9/20 0
0 s3 11 0 0 10 1 -1/2 1
Zj 1 -3 -2/5 -1/5 -5/4 0
Cj − Zj 0 0 12/5 1/5 5/4 0
Since all C j − Z j is either positive or zero. Optimal solution has been reached
x1 = 4, x 2 = 5, Z min = −11.
Minimize Z = −2 x1 + 3x2
4x1 + x2 8
7 x1 + 2 x2 16
x1 , x2 0
subject to 2 x1 − 5x2 + s1 = 7
4 x1 + x2 + s2 = 8
7 x1 + 2 x2 + s3 = 16
x1, x2 , s1, s2 , s3 0
Putting the decision variables x1 = x2 = 0 , we get s1 = 7, s2 = 8, s3 = 16 which are the initial values
of slack variables.
cj −2 3 0 0 0 Ratio
cB Basic Basic x1 x2 s1 s2 s3
variable solution
(B ) (X B )
0 s1 7 2 −5 1 0 0 3.5
0 s2 8 4 1 0 1 0 2
0 s3 16 7 2 0 0 1 2.25
zj 0 0 0 0 0
cj − zj −2 3 0 0 0
cB B XB x1 x2 s1 s2 s3
0 s1 7 2 −5 1 0 0
−2 x1 2 1 1 0 1 0
4 4
0 s3 16 7 2 0 0 1
cj −2 3 0 0 0
cB B XB x1 x2 s1 s2 s3
0 s1 3 0 − 11 1 −1 0
4 2
−2 x1 2 1 1 0 1 0
4 4
0 s3 −2 0 −1 0 7 −1
4 4
zj −2 −1 0 −1 0
2 2
cj − zj 0 7 0 1 0
2 2
Maximize, Z = 3x1 + 2 x 2 + 5 x 3
Subject to x1 + 2 x 2 + x3 430
x1 + 4 x 2 420
3x1 + 2 x3 460
x1 , x 2 , x 3 0
Solution: Introducing slack variables s1 , s 2 , s 3 the problem can be expressed in the standard form
as maximize Z= 3x1 + 2 x2 + 5 x3 + 0.s1 + 0.s 2 + 0.s 3
Subject to x1 + 2 x 2 + x3 + s1 = 430
x1 + 4 x 2 + s 2 = 420
3x1 + 2 x 3 + s 3 = 460
x1 , x 2 , x 3 , s1 , s2 , s3 0
s1 =430 (basic)
s 2 =420 (basic)
1st table:
Cj 3 2 5 0 0 0 Ratio=
CB B Xa x1 x2 x3 s1 s2 s3 X a / p.c
0 s1 430 1 2 1 1 0 0 430
0 s2 420 1 4 0 0 1 0
0 s3 460 3 0 2 0 0 1 230
Zj 0 0 0 0 0 0
Cj −Z j 3 2 5 0 0 0
The arrow denotes the pivot column and row respectively. And 2 is the pivot element. Since
C j − Z j is positive under some columns 1st table is not optimal. In 1st table x 3 is incoming
variable, s 3 is outgoing variable. In table 2 s 3 is replaced by x3
Cj 3 2 5 0 0 0
CB B Xa x1 x2 x3 s1 s2 s3
0 s1 430 1 2 1 1 0 0
0 s2 420 1 4 0 0 1 0
5 x3 230 3/2 0 1 0 0 1/2
Zj 0 0 0 0 0 0
Cj −Z j 3 2 5 0 0 0
3rd table:Note: R1 = R1 − R3
'
Cj 3 2 5 0 0 0 Ratio=
CB B x1 x2 s1 s2 X a / p.c
Xa x3 s3
0 s1 200 -1/2 2 0 1 0 -1/2 100
0 s2 420 1 4 0 0 1 0 105
5 x3 230 3/2 0 1 0 0 1/2
Zj 15/2 0 5 0 0 5/2
Cj −Z j -9/2 2 0 0 0 -5/2
The arrow denotes the pivot column and row respectively. And 2 is the pivot element. Since
C j − Z j is positive under some columns 1st table is not optimal. In 1st table x 2 is incoming
variable, s1 is outgoing variable. In table 4 s1 is replaced by x 2
4th table: Note: R1' = R1 / 2 then R2' = 4 R1' − R2
Cj 3 2 5 0 0 0
CB B Xa x1 x2 x3 s1 s2 s3
2 x2 100 -1/4 1 0 1/2 0 -1/4
0 s2 20 -2 0 2 0 -1 -1
5 x3 230 3/2 0 1 0 0 1/2
Zj 7 2 5 1 0 2
Cj −Z j -4 0 0 -1 0 -2
Since C j − Z j is either negative or zero under all column, 4th table is optimal.
Thus, the optimal basic feasible solution is x1 = 0 , x2 = 100 , x3 = 230 with Z max = 1350.
Maximize, Z = 2 x1 + x2
Subject to x1 + 2 x2 10
x1 + x2 6
x1 − x2 2
x1 , x 2 0
Solution: Introducing slack variables s1 , s 2 , s 3 the problem can be expressed in the standard form
as maximize Z= 2 x1 + x2 + 0.s1 + 0.s 2 + 0.s 3
Subject to x1 + 2 x2 + s1 = 10
x1 + x2 + s2 = 6
x1 − x2 + s3 = 2
x1 , x 2 , x 3 , s1 , s2 , s3 0
The basic feasible solution is x1 = x 2 = x 3 =0 (non-basic)
s1 =10 (basic)
s 2 =6 (basic)
1st table:
Cj 2 1 0 0 0 Ratio=
CB B x1 x2 s1 s2 X a / p.c
Xa s3
0 s1 10 1 2 1 0 0 10
0 s2 6 1 1 0 1 0 6
0 s3 2 1 -1 0 0 1 2
Zj 0 0 0 0 0
Cj −Z j 2 1 0 0 0
The arrow denotes the pivot column and row respectively. And 1 is the pivot element. Since
C j − Z j is positive under some columns 1st table is not optimal. In 1st table x1 is incoming
Cj 2 1 0 0 0 Ratio=
CB B x1 x2 s1 s2 X a / p.c
Xa s3
0 s1 8 0 3 1 0 -1 8/3
0 s2 4 0 2 0 1 -1 2
2 x1 2 1 -1 0 0 1 -2
Zj 2 -2 0 0 2
Cj −Z j 0 3 0 0 -2
The arrow denotes the pivot column and row respectively. And 2 is the pivot element. Since
C j − Z j is positive under some columns 1st table is not optimal. In 1st table x 2 is incoming
variable, s1 is outgoing variable. In table 2 s1 is replaced by x 2
Cj 2 1 0 0 0
CB B Xa x1 x2 s1 s2 s3
0 s1 8 0 3 1 0 -1
1 x2 2 0 1 0 1/2 -1/2
2 x1 2 1 -1 0 0 1
Zj 2 -2 0 0 2
Cj −Z j 0 3 0 0 -2
Cj 2 1 0 0 0
CB B Xa x1 x2 s1 s2 s3
0 s1 2 0 0 1 -3/2 1/2
1 x2 2 0 1 0 1/2 -1/2
2 x1 4 1 0 0 1/2 1/2
Zj 2 1 0 3/2 1/2
Cj −Z j 0 0 0 -3/2 -1/2
Since C j − Z j is either negative or zero under all columns, 4th table is optimal.
Subject to 2 x1 + x2 50
2 x1 + 5 x 2 100
2 x1 + 3 x 2 90
x1 , x 2 0
Solution: The given LPP
Maximize Z = 4 x1 + 10x2
Subject to 2 x1 + x2 50
2 x1 + 5 x 2 100
2 x1 + 3 x 2 90
x1 , x 2 0
Max Z = 4 x1 + 10x2 + s1 .0 + s 2 .0 + s3 .0
Sub to 2 x1 + x2 + s1 = 50
2 x1 + 5 x 2 + s 2 = 100
2 x1 + 3 x 2 + s3 = 90
x1 , x 2 , s1 , s 2 , s 3 0
We get,
s1 = 50, s 2 = 100, s3 = 90 which are the initial values of slack variables.
Initial Table
Cj 4 10 0 0 0
CB B XB x1 x2 s1 s2 s3 Ratio
0 s1 50 2 1 1 0 0 50
0 s2 100 2 5 0 1 0 20
0 s3 90 2 3 0 0 1 45
Zj 0 0 0 0 0
Cj − Zj 4 10 0 0 0
and the pivot row is the row containing the minimum ratio 20.
2nd Table:
Cj 4 10 0 0 0
CB B XB x1 x2 s1 s2 s3
0 s1 50 2 1 1 0 0
10 x2 20 2/5 1 0 1/5 0
0 s3 90 2 3 0 0 1
Zj 4 10 0 2
Cj − Zj 0 0 0 -2
3rd Table:
Cj 4 10 0 0 0
CB B XB x1 x2 s1 s2 s3
0 s1 30 8/5 0 1 -1/5 0
10 x2 20 2/5 1 0 1/5 0
Zj 4 10 0 2 0
Cj − Zj 0 0 0 -2 0
Since all C j − Z j is either zero or negative. Optimal solution has been reached
subject to, − x1 + 2 x2 2
x1 + x2 4
x1 3
x1 , x2 0
Solution: Introducing slack variable in the given inequalities.
x1 + x2 + s2 = 4
x1 + s3 = 3
x1, x2 , s1, s2 , s3 0
Putting the decision variables x1 = x2 = 0 ,we get s1 = 2, s2 = 4, s3 = 3 which are the initial values of
slack variables.
cj 2 1 0 0 0
Ratio
cB Basic Basic x1 x2 s1 s2 s3
variable solution
(B ) (X B )
0 s1 2 −1 2 1 0 0 −2
0 s2 4 1 1 0 1 0 4
0 s3 3 1 0 0 0 1 3
zj 0 0 0 0 0
cj − zj 2 1 0 0 0
cj 2 1 0 0 0
Ratio
cB B XB x1 x2 s1 s2 s3
0 s1 5 0 2 1 0 0 2.5
0 s2 1 0 1 0 1 −1 −1
2 x1 3 1 0 0 0 1 3
zj 2 0 0 0 2
cj − zj 0 1 0 0 −2
cj 2 1 0 0 0
cB B XB x1 x2 s1 s2 s3
1 x2 5 0 1 1 0 0
2 2
0 s2 1 0 1 0 1 −1
2 x1 3 1 0 0 0 1
cj 2 1 0 0 0
cB B XB x1 x2 s1 s2 s3
1 x2 5 0 1 1 0 0
2 2
0 s2 3 0 0 1 −1 1
2 2
2 x1 3 1 0 0 0 1
zj 2 1 1 0 2
2
cj − zj 0 0 −1
2
0 2
x1 = 3; x2 = 5
2
Maximum Z = 6 + 5
2
= 11 Ans.
2
Dual Problem
Definition of Dual Problem:
When we solve a maximization or minimization problem, it relates to mirror image problem based
on the same data. Here the original problem is called Primal Problem and the image problem is
called Dual Problem.
Assumption:
If the Primal Problem contains a large number of rows (constraints) and a smaller number
of variables, then we can solve it by converting it into dual.
Problem:
Let us consider, a patient needs 12, 17, 2.5 and 6 units of vitamins C, D, E and K respectively. The
food F contains 1 unit of C and 2 units of D, 1 unit of E and 1 unit of K. The food G contains 1
unit of C and 1 unit of D. Find the minimum cost of buying the vitamins if the cost per unit of F
and G be 20 TK and 16 TK.
Subject to 𝑥1 + 𝑥2 ≥ 12
2𝑥1 + 𝑥2 ≥ 17
𝑥1 ≥ 2.5
𝑥1 ≥ 6
𝑥1 , 𝑥2 ≥ 0
A dealer sells the above-mentioned vitamin C, D, E and K if problem is to fix the cost and
the price of F and G foods do not exceed the amount mentioned above. His problem is also
to get a maximum profit in selling the vitamins.
Subject to 𝑢+2𝑣 + 𝑤 + 𝑡 ≤ 20
𝑢 + 𝑣 ≤ 16
𝑢, 𝑣, 𝑤 ≥ 0
Kinds of Dual Problem:
1. Symmetric:
All constraints of both (Primal and Dual) are inequalities and variables are non-negative.
[Link]:
All constraints are equations and all primal variables are non-negative but Dual variables may be
unrestricted.
3. Mixed Type:
Some constraints are equations or inequalities for Primal problem and some variables are
unrestricted or non-negative.
Formulation:
Each and every unsymmetric and mixed type problem convert into symmetric type problem
by proper adjustment.
For maximization problem, write all constraints involve the sign ≤ with all variables non-
negative in Primal Problem. It will be ≥ in Dual problem.
To find the pivot column, we have to find the most positive value in the last row in Simplex
Method.
The iteration will be finished if we get all values in the last row are negative or zeros
For minimization problem, write all constraints involve the sign ≥ with all variables non-
negative in primal problem. It will be ≤ in Dual Problem.
To find the pivot column, we have to find the most negative value in the last row.
The iteration will be finished if we get all values in the last row are positive or zeros.
Proof: When both the primal and the dual problems have feasible solutions, then there is a lower
bound on the minimum value of W as well as an upper bound on the maximum value of Z .In
other words , neither the primal nor the dual have an unbounded solution. Therefore, both must
have optimal solutions.
The symmetric primal dual programmed in matrix-vector notation are
Primal
Maximize Z = cx
Subject to Ax b
x0
Dual
Minimize W = yb
Subject to yA c
y0
xB = B −1b
And the corresponding optimal value of the primal objective function be
Z = cB xB
= cB ( B −1b)
The corresponding conditions for optimality are
Z j
−cj 0
Or c B
B
−1
A − c, c B B −1 0
Or cB B −1 A − c 0, cB B −1 0
Now to verify that the associated optimal dual solution is y B = c B B −1 , only observed that the above
relation then demonstrates that the feasibility conditions for the dual problem are satisfied.
Or W min .W
max .Z min.W
Theorem 2: State and prove the complementary slackness theorem in linear programming.
Statement: Let x0 and y 0 Be the feasible solutions to the primal problem (p)
Maximize Z = c T x
Subject to Ax b
x0
And its dual problem (D)
Minimize W = bT y
Subject to AT y c
y0
Then necessary and sufficient conditions for x0 and y 0 to be optimal to their respective
problem is that
Proof:
Necessary conditions:
Let
= y T
0 (b − Ax 0 ) and
= x0
T
( AT
y0 − c)
Since x0 and y 0 Be the feasible solutions to the primal and its dual respectively, we have
0 , 0
c T x0 = bT y0 , so that + =0
y 0T (b − Ax 0 ) = 0 x T
( AT
y0 − c) = 0
i.e. and 0
Sufficient condition:
Let the given condition hold for the feasible solutions x 0 and y 0
That is
= y0T (b − Ax0 ) = 0 and = x0T ( AT y0 − c) = 0
0 = + = y 0T b − x0T c y 0T b = x0T c c T x0 = bT y0
Problem 1: Maximization 𝑍 = 3𝑥 + 2𝑦
Subject to −𝑥 + 2𝑦 ≤ 4
3𝑥 + 2𝑦 ≤ 14
𝑥 − 𝑦 ≤ 13
𝑥, 𝑦 ≥ 0
At first, we draw a table for primal problem,
x y constant
-1 2 4
3 2 14
1 -1 13
3 2 0
Now we interchange the columns and rows and head the three columns,
u v W Constant
-1 3 1 3
2 2 -1 2
4 14 13 0
𝑝 = 4𝑢 + 14𝑣 + 13𝑤
Subject to −𝑢 + 3𝑣 + 𝑤 ≥ 3
2𝑢 + 2𝑣 − 𝑤 ≥ 2
We can write in maximization by changing sign,
𝑢 − 3𝑣 − 𝑤 ≤ −3
−2𝑢 − 2𝑣 + 𝑤 ≤ −2
By slackness condition:
𝑝 − 4𝑢 − 14𝑣 − 13𝑤 = 0
Subject to 𝑢 − 3𝑣 − 𝑤 + 𝑥 = 0
−2𝑢 − 2𝑣 + 𝑤 + 𝑦 = 0
u v w X Y p constant
1 1 1 1 0 0 1
−3 3 −3
8 0 5 2 1 0 0
− −
3 3 3
26 0 25 14 0 1 14
− − −
3 3 3
The optimal solution of the dual minimization problem is 𝑍𝑚𝑖𝑛 = 14
14
where x=− ,𝑦=0
3
−14
Now 𝑍𝑚𝑎𝑥 = 3 × + 0 = −14
3
Maximization, 𝑍 = 4𝑥 + 3𝑦
Subject to, 𝑥 ≤ 6
𝑦≤8
𝑥+𝑦 ≤7
3𝑥 + 𝑦 ≤ 15
−𝑦 ≤ 1
Solution: Given,
Maximization, 𝑍 = 4𝑥 + 3𝑦
Subject to, 𝑥 ≤ 6
𝑦≤8
𝑥+𝑦 ≤7
3𝑥 + 𝑦 ≤ 15
−𝑦 ≤ 1
𝑥, 𝑦 ≥ 0
At first, we draw a table for primal problem,
x y constant
1 0 6
0 1 8
1 1 7
3 1 15
0 -1 1
4 3
Now we interchange the columns and rows and head the three columns,
u v W q R constant
1 3 1 3 0 4
0 2 1 1 -1 3
6 8 7 15 0
So, the dual problem for minimization,
𝑝 = 6𝑢 + 8𝑣 + 7𝑤 + 15𝑞 + 0. 𝑟
Subject to 𝑢 + 0. 𝑣 + 𝑤 + 3𝑞0. 𝑟 ≥ 4
0. 𝑢 + 𝑣 + 𝑤 + 𝑞 − 𝑟 ≥ 3
𝑢, 𝑣, 𝑤, 𝑞, 𝑟 ≥ 0
By surplus condition:
Subject to 𝑢 − 0. 𝑣 + 𝑤 + 3𝑞 + 0. 𝑟 − 𝑥 + 0. 𝑦 = 4
0. 𝑢 + 𝑣 + 𝑤 + 𝑞 − 𝑟 + 0. 𝑥 − 𝑦 = 3
𝑢, 𝑣, 𝑤, 𝑞, 𝑟, 𝑥, 𝑦 ≥ 0
Initial Table
Cj -6 -8 -7 -15 -1 0 0 Min
Ratio
CB B XB u V w Q r x y
-6 u 4 1 0 1 3 0 -1 0 4
3
-8 v 3 0 1 1 1 -1 0 -1 3
Zj -6 -8 -14 -26 8 6 8 𝑍𝑚𝑎𝑥
= −48
Zj −Cj 0 0 -7 -11 9 6 8
Table 2
Cj -6 -8 -7 -15 -1 0 0 Min
Ratio
CB B XB u V w q r x y
-15 u 4 1 0 1 1 0 1 0 4
−
3 3 3 3
-8 v 5 1 1 2 0 -1 1 -1 5
−
3 3 3 3 2
Zj -5 -8 -14 -26 8 6 8 𝑍𝑚𝑎𝑥
100
Zj −Cj 11 0
−
10 0 9 7 8 =−
3
3 3 3
Cj -6 -8 -7 -15 -1 0 0
CB B XB u V W q r x y
-15 u 1 1 1 0 1 1 1 1
− −
2 2 2 2 2 2 2
-7 v 5 1 3 1 3
-2 3 1 −3
− −
2 2 2 2 2 2
Zj -4 -3 -7 -15 3 4 3 𝑍𝑚𝑎𝑥
Zj −Cj 2 5 0 0 4 4 3 = −25
Members reached
1 5
Here = 2 𝑎𝑛𝑑 𝑣 = 2 , 𝑍𝑚𝑖𝑛 = 25 which is the optimal solution.
Maximization, 𝑍 = 5𝑥 + 4𝑦
Subject to, 3𝑥 + 4𝑦 ≤ 24
3𝑥 + 2𝑦 ≤ 18
𝑦≤5
Solution: Given,
Maximization, 𝑍 = 5𝑥 + 4𝑦
Subject to, 3𝑥 + 4𝑦 ≤ 24
3𝑥 + 2𝑦 ≤ 18
𝑦≤5
𝑥, 𝑦 ≥ 0
x y constant
3 4 24
3 2 18
0 1 5
5 4
Now we interchange the columns and rows and head the three columns,
u v W constant
3 3 0 5
4 2 1 4
24 18 5 0
𝑝 = 24𝑢 + 18𝑣 + 5𝑤
Subject to 3𝑢 + 3𝑣 + 0. 𝑤 ≥ 5
4𝑢 + 2𝑣 + 𝑤 ≥ 4
𝑢, 𝑣, 𝑤 ≥ 0
Subject to 3𝑢 + 3𝑣 + 0. 𝑤 − 𝑥 + 0. 𝑦 = 5
4𝑢 + 2𝑣 + 𝑤 + 0. 𝑥 − 𝑦 = 4
𝑢, 𝑣, 𝑤, 𝑥, 𝑦 ≥ 0
Initial Table
Table-3
Cj -24 -18 -5 0 0
CB B XB u V w x y
-24 u 5 1 1 0 1 0
−
3 3
-5 w 8 0 -2 1 4 -1
−
3 3
Zj -24 -14 -14 -5 5 𝑍𝑚𝑎𝑥
80
Zj −Cj 0 4 4 0 5 =
3
5 8 80
Here = 3 , 𝑣 = 0, 𝑤 = − 3 , 𝑍𝑚𝑖𝑛 = which is the optimal solution.
3
Problem-4: Use the Dual Simplex method to solve the following Linear Programming
Problem.
3𝑥1 + 𝑥2 + 2𝑥3 ≥ 4
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Solution:
The primal problem is,
3𝑥1 + 𝑥2 + 2𝑥3 ≥ 4
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 Constant
1 4 2 5
3 1 2 4
2 9 1
Now interchanging the row into column we get,
𝒖 𝒗 Constant
1 3 2
4 1 9
2 2 1
5 4
Now our dual problem ismaximize 𝑝 = 5𝑢 + 4𝑣
Subject to 𝑢 + 3𝑣 ≤ 2
4𝑢 + 𝑣 ≤ 9
2𝑢 + 2𝑣 ≤ 1
𝑢, 𝑣 ≥ 0
maximize 𝑝 = 5𝑢 + 4𝑣 + 𝑥1 . 0 + 𝑥2 . 0 + 𝑥3 . 0
Subject to 𝑢 + 3𝑣 + 𝑥1 = 2
4𝑢 + 𝑣 + 𝑥2 = 9
2𝑢 + 2𝑣 + 𝑥3 = 1
𝑢, 𝑣, 𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Hence the system of linear equation is
𝑢 + 3𝑣 + 𝑥1 + 𝑥2 . 0 + 𝑥3 . 0 = 2
4𝑢 + 𝑣 + 𝑥1 . 0 + 𝑥2 + 𝑥3 . 0 = 9
2𝑢 + 2𝑣 + 𝑥1 . 0 + 𝑥2 . 0 + 𝑥3 = 1
−5𝑢 − 4𝑣 + 𝑥1 . 0 + 𝑥2 . 0 + 𝑥3 . 0 + 𝑝 = 0
Now we will solve the system by simplex method
Initial Table:
𝒖 𝒗 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒑 Constant Ratio
1 3 1 0 0 0 2 2
4 1 0 1 0 0 9 2.25
2 2 0 0 1 0 1 .5
-5 -4 0 0 0 1 0
𝒖 𝒗 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒑 Constant
0 2 1 0 -1/2 0 3/2
0 -3 0 1 -2 0 7
1 1 0 0 ½ 0 ½
0 1 0 0 5/2 1 5/2
Since it is a maximization problem and there is no –ve term left, optimal solution has been reached.
Here, 𝑥1 = 0, 𝑥2 = 0, 𝑥3 = 5/2
Problem5:
Use the Dual Simplex method to solve the following Linear Programming Problem.
3𝑥1 + 𝑥2 + 7𝑥3 ≤ 3
𝑥1 + 4𝑥2 + 6𝑥3 ≤ 5
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Solution:
The primal problem is,
−3𝑥1 − 𝑥2 − 7𝑥3 ≥ −3
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 Constant
2 3 5 2
-3 -1 -7 -3
-1 -4 -6 -5
2 2 4
u v w Constant
2 -3 -1 2
3 -1 -4 2
5 -7 -6 4
2 -3 -5
Maximize𝑝 = 2𝑢 − 3𝑣 − 5𝑤
Subject to 2𝑢 − 3𝑣 − 𝑤 ≤ 2
3𝑢 − 𝑣 − 4𝑤 ≤ 2
5𝑢 − 7𝑣 − 6𝑤 ≤ 4
u, v, w ≥ 0
Maximize p= 2u-3v-5w+0.x1 + 0. x2 + 0. x3
Subject to 2u-3v-w+x1 =2
3u-v-4w+x2 =2
5u-7v-6w+x3 =2
𝑢, 𝑣, 𝑤, 𝑥1 , 𝑥2 , 𝑥3 ≥ 0
2𝑢 − 3𝑣 − 𝑤 + 𝑥1 + 𝑥2 . 0 + 𝑥3 . 0 = 2
3𝑢 − 𝑣 − 4𝑤 + 𝑥1 . 0 + 𝑥2 + 𝑥3 . 0 = 2
5𝑢 − 7𝑣 − 6𝑤 + 𝑥1 . 0 + 𝑥2 . 0 + 𝑥3 = 4
−2𝑢 + 3𝑣 + 5𝑤 + 𝑥1 . 0 + 𝑥2 . 0 + 𝑥3 . 0 + 𝑝 = 0
𝒖 𝒗 𝒘 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒑 Constant Ratio
2 -3 -1 1 0 0 0 2 1
3 -1 -4 0 1 0 0 2 .6
5 -7 -6 0 0 1 0 4 .8
-2 3 5 0 0 0 1
2nd Table:
𝒖 𝒗 𝒘 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒑 Constant
2 -3 -1 1 0 0 0 2
1 -1/3 -4/3 0 1/3 0 0 2/3
5 -7 -6 0 0 1 0 4
-2 3 5 0 0 0 1
3rd Table:
𝒖 𝒗 𝒘 𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒑 Constant
0 -7/3 5/3 1 0 0 0 2/3
1 -1/3 -4/3 0 1/3 0 0 2/3
0 16/3 -2/3 0 5/3 -1 0 -2/3
0 7/3 7/3 0 2/3 0 1 4/3
Since it is a maximization problem and there is no –ve term left, optimal solution has been reached.
Thus, x1 = 0, x2 = 2/3, x3 = 0
Hence, maximize p = 4/3
Problem6:
Use the Dual Simplex method to solve the following Linear Programming Problem.
minimize 𝑐 = 6𝑥 + 8𝑦
5𝑥 + 15𝑦 ≥ 1500
𝑥, 𝑦 ≥ 0
𝒙 𝒚 Constant
40 10 2400
10 15 2100
5 15 1500
6 8
𝒖 𝒗 𝒘 Constant
40 10 5 6
10 15 15 8
2400 2100 1500
𝑢, 𝑣, 𝑤 ≥ 0
Maximize p= 2400u+2100v+1500w+0.𝑥 + 0. 𝑦
𝑢, 𝑣, 𝑤, 𝑥, 𝑦 ≥ 0
Hence the system of linear equation is
40𝑢 + 10𝑣 + 5𝑤 + 𝑥 = 6
- 2400u-2100v-1500w+0.𝑥 + 0. 𝑦 + 𝑝 = 0
Initial Table:
𝒖 𝒗 𝒘 𝒙 𝒚 𝒑 Constant Ratio
40 10 5 1 0 0 6 .15
10 15 15 0 1 0 8 .8
-2400 -2100 -1500 0 0 1 0 0
2nd Table:
𝒖 𝒗 𝒘 𝒙 𝒚 𝒑 Constant
1 ¼ 1/8 1/40 0 0 3/20
10 15 15 0 1 0 8
-2400 -2100 -1500 0 0 1 0
3rd Table:
𝒖 𝒗 𝒘 𝒙 𝒚 𝒑 Constant Ratio
1 ¼ 1/8 1/40 0 0 3/20 .6
0 25/2 55/4 -1/4 1 0 13/25 .04
0 -1500 -1200 60 0 1 360 0
4th Table:
𝒖 𝒗 𝒘 𝒙 𝒚 𝒑 Constant
1 1/4 1/8 1/40 0 0 3/20
0 1 11/10 -1/50 2/25 0 13/25
0 -1500 -1200 60 0 1 360
5th Table:
𝒖 𝒗 𝒘 𝒙 𝒚 𝒑 Constant
1 0 -3/20 3/100 -1/50 0 1/50
0 1 11/10 -1/50 2/25 0 13/25
0 0 450 30 120 1 1140
Since it is a maximization problem and there is no –ve term left, optimal solution has been reached.