Linear Programming Problem (LPP)
Linear Programming Problem (LPP)
Linear Programming
Problem (LPP)
Sessions 2 - 4
Linear Programming
1
06-12-2023
2
06-12-2023
Example 1
3
06-12-2023
Example 1 contd…
Example 1 contd…
4
06-12-2023
Problem Formulation
Problem Formulation
Define the Decision Variables The controllable inputs for Par, Inc.,
are (1) the number of standard bags produced and (2) the number
of deluxe bags produced. Let
S = number of standard bags
D = number of deluxe bags
Write the Objective in Terms of the Decision Variables Par, Inc.’s
profit contribution comes from two sources: (1) the profit
contribution made by producing S standard bags and (2) the profit
contribution made by producing D deluxe bags. Thus, we have
Total Profit Contribution = 10S + 9D
The objective function is Max 10S + 9D
5
06-12-2023
Problem Formulation
Maximize 10S + 9D
Subject to (s.t.)
7
𝑆 + 1𝐷 ≤ 630 Cutting & Dyeing
10
1 5
𝑆 + 𝐷 ≤ 600 Sewing
2 6
2
1𝑆 + 𝐷 ≤ 708 Finishing
3
1 1
𝑆 + 𝐷 ≤ 135 Inspection and Packaging
10 4
S, D ≥ 0
6
06-12-2023
Solution
Decision variables:
Let
𝑥1 = number of units produced of product A
𝑥2 = number of units produced of product B
The objective function:
Maximize Z = 40 𝑥1 + 35 𝑥2
Constraints
2 𝑥1 + 3 𝑥2 ≤ 60
4 𝑥1 + 3 𝑥2 ≤ 96
𝑥1 , 𝑥2 ≥ 0
7
06-12-2023
Solution
Decision variables
Let
𝑥1 = number of bags of mixture A
𝑥2 = number of bags of mixture B
The objective function:
Minimize Z = 40 𝑥1 + 24 𝑥2
Constraints
20 𝑥1 + 50 𝑥2 ≥ 4800
80 𝑥1 + 50 𝑥2 ≥ 7200
𝑥1 , 𝑥2 ≥ 0
8
06-12-2023
9
06-12-2023
10
06-12-2023
11
06-12-2023
12
06-12-2023
Optimal solution
13
06-12-2023
14
06-12-2023
When the linear programming problem has a single optimal solution, the
solution is said to be unique.
The solution (if it exists) of a linear programing problem shall always be
unique if the slope of the objective function is different from the slopes of
the constraint.
In case the objective function has a slope which is the same as that of a
constraint, then multiple optimal solution may exist.
Two conditions under which multiple solution exists:
The objective function is parallel to a constraint that forms an edge or boundary
on the feasible region, and
The constraint must be a binding constraint
15
06-12-2023
Exercise 1
Exercise 2
16
06-12-2023
Exercise 3
Exercise 4
17
06-12-2023
18
06-12-2023
Exercise 5 contd…
Solution
Decision variables:
𝑥1 : Number of ads on TV; 𝑥2 : Number of ads on radio
𝑥3 : Number of ads on newspaper; 𝑥4 : Number of ads in a magazine
Maximize Z = 80 𝑥1 + 20 𝑥2 + 50 𝑥3 + 60 𝑥4
Subject to:
3000 𝑥1 + 7000 𝑥2 + 5000 𝑥3 + 2000 𝑥4 ≥ 40,000
8000 𝑥1 + 3000 𝑥2 + 4000 𝑥3 + 3000 𝑥4 ≤ 70,000
𝑥1 ≤8
𝑥2 ≤ 30
𝑥3 ≤4
𝑥4 ≤ 2
𝑥3 ≥2
𝑥1 ≤4
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
19
06-12-2023
Exercise 6 contd…
20
06-12-2023
Solution to Exercise 6
Decision variables:
𝑥1 : Amount invested in Indian Oil; 𝑥2 : Amount invested in ONGC
𝑥3 : Amount invested in Tata Steel; 𝑥4 : Amount invested in Steel Authority of India
𝑥5 : Amount invested in Government Bonds
Maximize Z = 0.073 𝑥1 + 0.103 𝑥2 + 0.064 𝑥3 + 0.075 𝑥4 + 0.045 𝑥5
Subject to:
𝑥1 + 𝑥2 + 𝑥3 + 𝑥4 + 𝑥5 = 10,00,000
𝑥1 + 𝑥2 ≤ 5,00,000
𝑥3 + 𝑥4 ≤ 5,00,000
𝑥5 ≥ 0.25 (𝑥3 + 𝑥4 )
𝑥2 ≤ 0.60 (𝑥1 + 𝑥2 )
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 ≥ 0
21
06-12-2023
Exercise 7 contd…
The problem for the company is to determine how many units of each
component to manufacture and how many units of each component to
purchase.
Exercise 7 Solution
Decision Variables
BM = number of bases manufactured
BP = number of bases purchased
FCM = number of Financial cartridges manufactured
FCP = number of Financial cartridges purchased
TCM = number of Technician cartridges manufactured
TCP = number of Technician cartridges purchased
FTM = number of Financial tops manufactured
FTP = number of Financial tops purchased
TTM = number of Technician tops manufactured
TTP = number of Technician tops purchased
OT = number of hours of overtime to be scheduled
22
06-12-2023
Exercise 7 Solution
23