Lecture-4 Linear Programming
Lecture-4 Linear Programming
Operations Research
It is a scientific approach to determine the optimum (best)
solution to a decision problem under the restriction of limited
resources, using the mathematical techniques to model,
analyze, and solve the problem.
Operations research (OR) is an analytical method of problem-
solving and decision-making that is useful in the
management of organizations.
The central objective of operations research is optimization,
i.e., "to do things best under the given circumstances."
Optimization: Means maximization (of profit) or minimization
(of cost like expense).
Ahsan Ahmed 1
1/10/2023
Linear Programming
Most Prominent Operation Research Technique.
Linear Programming: is a technique, which optimizes linear
objective function under limited constraints.
It is designed for models with linear objective and constraint
function.
It is mostly used for allocation of resources.
Linear Programming is a technique, designed to help
operation managers and make decisions relative to the trade
offs necessary to allocate resources.
Linear Programming
Objective Function:
A mathematical expression in linear programming that
maximizes or minimizes some quantity often profit or cost but
any goal may be used.
Constraints:
Restrictions that limit the degree which manager can pursue
an objective.
May be expressed as inequalities.
Ahsan Ahmed 2
1/10/2023
Linear Programming
A solution of the model is feasible if it satisfies all the
constraints.
It is optimal if, in addition to being feasible, it yields the best
(maximum or minimum) value of the objective function.
The optimum solution of a model is best only for that model. If
the model happens to represent the real system reasonably
well, then its solution is optimum also for the real situation.
The number of constraints and decision variables in objective
function depends on the complexity of problem.
Linear programming maximizes (or minimizes) a linear
objective function subject to one or more constraints.
2) Objective Function:
An equation that is needed to be optimized.
Example: Objective function: 𝑧 = 2𝑥 + 3𝑥 (here “z” can
be profit or revenue.
It tells how much should we produce 𝑥 and 𝑥 to
maximize “z”
6
Ahsan Ahmed 3
1/10/2023
4) Variable bounds:
The variable usually have 2 bound / boundaries. (-,+)
Means they are not infinite.
Methods:
1- Graphical Method (only for two variables)
2- Two or more variables
7
Maximize “z”
Q) Max
Subjected to:
i-
ii- Structural Constraints
iii-
(non negativity constraints it means
our case is in 1st quadrant)
Ahsan Ahmed 4
1/10/2023
Maximize “z”
Solution:
Step # 1: Calculating the extreme points of each structural
constraints:
(i)
When then (0,400)
When then (1200, 0)
(ii)
When then (0,500)
When then (1000, 0)
9
Maximize “z”
Solution: (Cont.)
(iii) (700,0)
Step # 2 : Plotting
these points in a graph
10
Ahsan Ahmed 5
1/10/2023
Maximize “z”
Solution: (Cont.)
Step # 4 : Optimum Solution (always lies on any
one of the vertices) Optimum Point
Point Coordinate 𝑧 = 5𝑥 + 8𝑥
0 (0 , 0) 𝑧 =5 0 +8 0 =0
a (0 , 400) 𝑧 = 5 0 + 8 400 = 3200
b (600 , 200) 𝑧 = 5 600 + 8 200 = 4600
intersection of i and ii
c (700 , 150) 𝑧 = 5 700 + 8 150 = 4700
d (700 , 0) 𝑧 = 5 700 + 8 0 = 3500
11
Maximize “z”
Solution: (Cont.)
Step # 5 : Result / Conclusion
12
Ahsan Ahmed 6
1/10/2023
A market survey indicates that the daily demand for interior paint
cannot exceed that for exterior paint by more than 1 ton. Also, the
maximum daily demand for interior paint is 2 tons.
Reddy Mikks wants to determine the optimum (best) product mix
of interior and exterior paints that maximizes the total daily
profit.
13
14
Ahsan Ahmed 7
1/10/2023
15
Hence
Usage of raw material M1 by both paints = 6𝑥 + 4𝑥 tons/day
In a similar manner,
Usage of raw material M2 by both paints = 1𝑥 + 2𝑥 tons/day
16
Ahsan Ahmed 8
1/10/2023
Ahsan Ahmed 9
1/10/2023
19
20
Ahsan Ahmed 10
1/10/2023
21
22
Ahsan Ahmed 11
1/10/2023
23
24
Ahsan Ahmed 12
1/10/2023
25
26
Ahsan Ahmed 13
1/10/2023
27
Ahsan Ahmed 14
1/10/2023
30
Ahsan Ahmed 15
1/10/2023
Decision: The associated minimum cost of the feed mix is $437.65 per
day at 𝑥 = 470.6 and 𝑥 = 329.4.
31
Furniture Model
Q) Aadat Company uses 03 machines to construct tables and
chairs as follows
Machine Chairs (hrs) Tables (hrs) Available hrs / week
M1 3 3 36
M2 5 2 50
M3 2 6 60
If Aadat company gets a profit of $20 / chair and $30 / table. Then
how should Aadat company schedule his production in order to get
the maximum profit.
32
Ahsan Ahmed 16
1/10/2023
Furniture Model
Solution
The Aadat company model is
Maximize 𝑧 = 20𝑥 + 30𝑥
Subjected to
3𝑥 + 3𝑥 ≤ 36 -------------(1)
5𝑥 + 2𝑥 ≤ 50 -------------(2)
2𝑥 + 6𝑥 ≤ 60 -------------(3)
𝑥 ,𝑥 ≥0 -------------(4)
33
Furniture Model
Solution: (Cont.)
Step # 1: Calculating the extreme points of each structural
constraints:
For eq. 1: 3𝑥 + 3𝑥 ≤ 36 when 𝑥 = 0, 𝑥 = 12 (0,12)
when 𝑥 = 0, 𝑥 = 12 (12,0)
34
Ahsan Ahmed 17
1/10/2023
Furniture Model
Solution: (Cont.)
Step # 2 : Plotting these points in
a graph
35
Furniture Model
Solution:(Cont.)
Step # 4 : Determination of the Optimum Solution:
Point Coordinate 𝑧 = 20𝑥 + 30𝑥
o (0 , 0) 𝑧 = 20 0 + 30 0 = 0
a (0 , 10) 𝑧 = 20 0 + 30 10 = 300
b (3, 9) 𝑧 = 20 3 + 30 9 = 330
c (8.67 , 3.33) 𝑧 = 20 8.67 + 30 3.33 = 273.3
d (10 , 0) 𝑧 = 20 10 + 30 0 = 200
Ahsan Ahmed 18