Graphical Solution
Graphical Solution
Graphical Solution
Method of Linear
Programming
ESSENTIALS OF LINEAR PROGRAMMING MODEL
The objective of the problem is identified and converted into a suitable objective
function. The objective function represents the aim or goal of the system (i.e.,
decision variables) which has to be determined from the problem. Generally, the
objective in most cases will be either to maximize resources or profits or, to
minimize the cost or time.
Constraints:
When the availability of resources are in surplus, there will be no problem in making
decisions. But in real life, organizations normally have scarce resources within which
the job has to be performed in the most effective way. Therefore, problem situations are
within confined limits in which the optimal solution to the problem must be found.
Non-negativity constraint
Negative values of physical quantities are impossible, like producing negative number of
chairs, tables, etc., so it is necessary to include the element of non-negativity as a
constraint
GENERAL LINEAR PROGRAMMING MODEL
The boxes undergo two major processes: cutting and pinning operations.
Each corrugated box requires 2 minutes for cutting and 3 minutes for pinning
operation, whereas each ordinary box requires 2 minutes for cutting and 1
minute for pinning.
The available operating time is 120 minutes and 60 minutes for cutting and
pinning machines.
Objective function is the function of the decision variables that the decision maker
wants to maximize (revenue or profit) or minimize (costs). Manager can concentrate on
maximizing the total weekly profit (z).
Here profit equals to (weekly revenues) – (raw material purchase cost) – (other variable costs) .
Hence Manager’s objective function is:
Maximize z = 6X1 +4x2
Constraints show the restrictions on the values of the decision variables. Without
constraints manager could make a large profit by choosing decision variables to be very
large. Here there are three constraints:
Available machine-hours for each machine
Time consumed by each product
Sign restrictions are added if the decision variables can only assume nonnegative values
(Manager can not use negative negative number machine and time never negative number )
Cutting Pinning
Corrugated Box 2 3
Ordinary Box 2 1
All these characteristics explored above give the following
Linear
Programming (LP) problem
max z = 6x1+ 4x2 (The Objective function)
s.t. 2x1 + 3x2 ≤ 120 (cutting timeconstraint)
2x1 + x2 ≤ 60 (pinning constraint)
x1, x2 ≥ 0 (Sign restrictions)
Step 1:Convert the inequality constraint as equations and find co-ordinates of the line.
Step 4: Find the co-ordinates of the objectives function (profit line) and plot it on the graph representing it
with a dotted line.
Step 5: Locate the solution point.
(Note: If the given problem is maximization, zmax then locate the solution point at the far
most point of the feasible zone from the origin and if minimization, Zmin then locate the solution at
the shortest point of the solution zone from the origin).
A (0,0) 0
Carpentry 4 3 300
Painting 2 1 120
Profit 70 50
Formulation of the Problem
Let x1 be no. of tables to be produced.
Decision Variables
i.e. unknowns
Let x2 be no. of chairs to be produced.
.: Total Profit = 70 x1 + 50 x2
Maximize or Minimize ????
Formulation of the Problem
Maximize Z = = 70 x1 + 50 x2
subject to
4 x1 + 3 x2 ≤ 300
2 x1 + 1 x2 ≤ 120
x1 , x2 ≥ 0
1) To remove Inequalities
B
100
B (0, 100) 5000
90
X2 80 C (30, 60) 5100
70
4x1+3x2= 300
60
2x1+x2= 120
C X1 = 30 and X2 = 60
50
40 D (60, 0) 4200
30
20
10
D Zmax = 5100 at
A 10 20 30 40 50 60 70 80 90 100 110 120
Point C (30,60)
X1
Upon completing the construction of his house , Mr.
Sharma finds that 100 Sq.Ft of plywood scrap and 80 Sq.Ft
of White Pine scrap are in usable form for construction of
Tables and Book cases. It takes 16 Sq. Ft of Plywood and 8
Sq. Ft of white pine to make a table and 12 Sq. Feet of
plywood and 16 Sq. Feet of white pine are required to make
a book case. By selling the finished products to a local
furniture store , Mr. Sharma can make a profit of Rs. 125 on
each table and Rs. 100 on each book case. How can he
make the use of the left over scrap most profitably.
Formulate the LPP and solve using Graphical method.
Table (Sq.Ft) Book Case (Sq.Ft) Availability
Plywood 16 12 100
White pine 8 16 80
Subject to
16 x1 + 12 x2 ≤ 100
8 x1 + 16 x2 ≤ 80
x1 , x2 ≥ 0
1) To remove Inequalities
B
10
(0, 5) 500
9
X2 8 C (4, 3) 800
7
16x1+12x2= 100
6
8x1+162= 80
B X1 = 4 and X2 = 3
5
4 D (6.25, 0) 781.25
3 C
2
1
D Zmax = 800 at
A 1 2 3 4 5 6 7 8 9 10 11 12
Point C (4,3)
X1
A firm manufactures and sells two products Alpha and Beta.
Each unit of Alpha requires 1 hour of machining and 2 hrs
of skilled labour, whereas each unit of Beta uses 2hrs of
machining and I hour of skilled labour. For the coming
month , the machine capacity is limited to 720 machine hrs.
and the skilled labour is limited to 780 hrs. Not more than
320 units of Alpha can be sold in the market during a
month. Develop a suitable model that will enable
determination of the optimal product mix. Determine
optimal product mix and maximum contribution. Unit
contribution from Alpha is Rs. 6 and Beta is Rs. 4
Alpha Beta Availability
Machining 1 2 720
Market 320
Profit 6 4
Maximize Z = 6 x1 + 4 x2
Subject to
x1 + 2 x2 ≤ 720
2x1 + x2 ≤ 780
x1 ≤ 320
x1 , x2 ≥ 0
Minimize Z = 80x1 + 120 x2
Subject to
x1 + x2 ≤ 9
x1 ≥ 2
x2 ≥ 3
20x1 + 50x2 ≤ 300
x1 , x2 ≥ 0
1) To remove Inequalities
x1 + x2 = 9 ( 0,9) (9,0) x2 = 3 ( 0,3) (0,0)
x1 = 2 ( 0,0) (0,2) 20x1 + 50x2 = 300 ( 0,6) (15,0)
2
Poin Co - Optimum
ts Ordinates Z = 80x1 + 120x2
12
A (2,3) 520
11
1
B
10
(2, 5.2) 784
9
X2 8 C (5, 4) 880
7
6 B
A
B D (6, 3) 840
5
4 C
3 C
2 A D
1
D 4 Zmax = 520 at
1 2 3 4 5 6 7 8 9 10 11 12 15
Point A (2,3)
X1
1) To remove Inequalities
1) x1 + x2 = 9 ( 0,9) (9,0) 3) x2 = 3 ( 0,3) (0,0)
2) x1 = 2 ( 0,0) (0,2) 4) 20x1 + 50x2 = 300 ( 0,6) (15,0)
10
A 2,3 x1 = 2 2,3
9
x2 = 3
X2 8
B 2,4 x2 = 3 2, 5.2
7 20x1 + 50x2 = 300
6
B B
A 1 C 1,4 x1 + x2 = 920 5,4
x1 + 50x2 = 300
5
4 C
4 1,3 x1 + x2 = 920 6,3
D
3 3 C 3 x2 = 3
A
2
2 D 1
1
D
1 2 6 8 11 13 14 15 16
3 4 5 7 9 10 12
X1
Maximize Z = 5x1 + 4 x2
Subject to
6x1 + 4x2 ≤ 24
x1 + 2x2 ≤ 6
x2 ≤ 2
x2 - x1 ≤ 1
x1 , x2 ≥ 0
1) To remove Inequalities
6x1 + 4x2 = 24 (0,6) (4,0) x2 = 2 ( 0,2) (0,0)
x1 + 2x2 = 6 (0,3) (6,0) x2 - x1 = 1 ( 0,1) (-1,0)
1) To remove Inequalities
1) 16x1 + 4x2 = 24 (0,6) (4,0) 3) x 2 = 2 ( 0,2) (0,0)
2) x1 + 2x2 = 6 (0,3) (6,0)
4) x2 - x1 = 1 ( 0,1) (-1,0)
Feasible Constraint Constraint Equations Coordinates
X2 Area Lines
Point Intersecting
7
A 0,0 x1 = 0 x2 = 0 0,0
6 0,4 x2 = 1 0, 1
B
C 3,4 x2 = 2 1,2
5 1 X2 -x1 = 1
2,3 x1 + 2x2 = 6 2,2
4 D x2 = 3
4
2
C D 3
B E
1 2
4
F
-1
A 1 2 3 4 5 6 7 8
X1
Maximize Z = x1 + x2
Subject to
2x1 + x2 ≤ 2
3x1 + 4x2 ≥ 12
x1 , x2 ≥ 0
1) To remove Inequalities
1) 2x1 + x2 = 2 (0,2) (1,0)
2) 3x1 + 4x2 = 12 (0,3) (4,0)
X2
7
-1 1 3 4 5 7 8
2 6
X1
Maximize Z = x1 + x2
Subject to
3x1 + x2 ≥ 6
x1 + 3x2 ≥ 6
x1 , x2 ≥ 0
Maximize Z = 3x1 + 5x2
Subject to
12x1 + 20x2 ≤ 40
x1 - 4x2 ≤ 4
x1 , x2 ≥ 0