02. Linear Programming Problem (LPP)
02. Linear Programming Problem (LPP)
Linear Programming
Problem (LPP) - Formulations
Sessions 2 - 4
Linear Programming
1
21-01-2025
2
21-01-2025
Example 1
Par, Inc., is a small manufacturer of golf equipment and
supplies whose management has decided to move into the
market for medium- and high-priced golf bags. Par, Inc.’s
distributor is enthusiastic about the new product line and has
agreed to buy all the golf bags Par, Inc., produces over the
next three months.
After a thorough investigation of the steps involved in
manufacturing a golf bag, management determined that
each golf bag produced will require the following operations:
1. Cutting and dyeing the material
2. Sewing
3. Finishing (inserting umbrella holder, club separators, etc.)
4. Inspection and packaging
3
21-01-2025
Example 1 contd…
The director of manufacturing analyzed each of the
operations and concluded that if the company produces a
7
medium-priced standard model, each bag will require hour
10
1
in the cutting and dyeing department, hour in the sewing
2
1
department, 1 hour in the finishing department, and hour in
10
the inspection and packaging department. The more
expensive deluxe model will require 1 hour for cutting and
5 2 1
dyeing, hour for sewing, hour for finishing, and 4 hour for
6 3
inspection and packaging.
Example 1 contd…
Par, Inc.’s production is constrained by a limited number
of hours available in each department. After studying
departmental workload projections, the director of
manufacturing estimates that 630 hours for cutting and
dyeing, 600 hours for sewing, 708 hours for finishing, and
135 hours for inspection and packaging will be available
for the production of golf bags during the next three
months.
The accounting department analyzed the production
data, assigned all relevant variable costs, and arrived at
prices for both bags that will result in a profit contribution
of $10 for every standard bag and $9 for every deluxe
bag produced.
4
21-01-2025
Problem Formulation
Describe the Objective The objective is to maximize the
total contribution to profit.
Describe Each Constraints
Constraint 1: Number of hours of cutting and dyeing time used
must be less than or equal to the number of hours of cutting and
dyeing time available.
Constraint 2: Number of hours of sewing time used must be less
than or equal to the number of hours of sewing time available.
Constraint 3: Number of hours of finishing time used must be less
than or equal to the number of hours of finishing time available.
Constraint 4: Number of hours of inspection and packaging time
used must be less than or equal to the number of hours of
inspection and packaging time available.
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
21-01-2025
Problem Formulation
Write the Constraints in Terms of the Decision
Variables
7
Constraint 1: 𝑆 + 1𝐷 ≤ 630
10
1 5
Constraint 2: 𝑆 + 𝐷 ≤ 600
2 6
2
Constraint 3: 1𝑆 + 𝐷 ≤ 708
3
1 1
Constraint 4: 𝑆 + 𝐷 ≤ 135
10 4
Constraint 5: S, D ≥ 0
6
21-01-2025
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
21-01-2025
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
21-01-2025
9
21-01-2025
10
21-01-2025
Example 4 contd…
Other information and requirements
The advertising budget is Rs. 70,000
At least 40,000 families should be covered
At least two insertions be given in the Sunday edition of a daily
but not more than 4 ads should be given on the TV.
Draft this as a linear programming problem.
11
21-01-2025
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
12
21-01-2025
Example 5 contd…
Management of the company issues the following investment
guidelines:
Neither industry (oil or steel) should receive more than ₹ 5,00,000.
Government bonds should be at least 25% of the steel industry
investments.
The investment in ONGC, the high-return but high-risk investment,
cannot be more than 60% of the total oil industry investment.
What portfolio recommendations—investments and amounts—
should be made for the available ₹ 10,00,000?
Solution to Example 5
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
13
21-01-2025
Example 6 contd…
Company forecasters indicate that 3000 Financial Manager
calculators and 2000 Technician calculators will be needed.
However, manufacturing capacity is limited. The company has 200
hours of regular manufacturing time and 50 hours of overtime that
can be scheduled for the calculators. Overtime involves a premium
at the additional cost of $9 per hour. Table below shows
manufacturing times (in minutes) for the components.
14
21-01-2025
Example 3 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
Example 6 Solution
15
21-01-2025
Exercise 1
An electronic company is engaged in the production of two
components C1 and C2 that are used in radio sets. Each unit of C1
costs the company Rs 5 in wages and Rs 5 in material, while each of
C2 costs the company Rs 25 in wages and Rs 15 in material. The
selling price of C1 is Rs 30 per unit and of C2 it is Rs 70 per unit.
Because of the company’s strong monopoly in these components,
it is assumed that the company can sell, at the prevailing prices, as
many units as it produces. The company’s production capacity is,
however, limited by two considerations. First, at the beginning of
period 1, the company has an initial balance of Rs 4,000 (cash plus
bank credit plus collections from past credit sales). Second, the
company has, in each period, 2,000 hours of machine time and
1,400 hours of assembly time. The production of each C1 requires 3
hours of machine time and 2 hours of assembly time, whereas the
production of each C2 requires 2 hours of machine time and 3
hours of assembly time. Formulate this problem as an LP model so as
to maximize the total profit to the company.
Answer
16
21-01-2025
Exercise 2
A company has two grades of inspectors 1 and 2, the members of
which are to be assigned for a quality control inspection. It is
required that at least 2,000 pieces be inspected per 8-hour day.
Grade 1 inspectors can check pieces at the rate of 40 per hour,
with an accuracy of 97 per cent. Grade 2 inspectors check at the
rate of 30 pieces per hour with an accuracy of 95 per cent. The
wage rate of a Grade 1 inspector is Rs 5 per hour while that of a
Grade 2 inspector is Rs 4 per hour. An error made by an inspector
costs Rs 3 to the company. There are only nine Grade 1 inspectors
and eleven Grade 2 inspectors available to the company. The
company wishes to assign work to the available inspectors so as to
minimize the total cost of the inspection. Formulate this problem as
an LP model so as to minimize the daily inspection cost.
Answer
Hourly cost of each inspector of Grade 1 and 2 can be computed as
follows:
Inspector Grade 1 : Rs (5 + 3 × 40 × 0.03) = Rs 8.60
Inspector Grade 2 : Rs (4 + 3 × 30 × 0.05) = Rs 8.50
Based on the given data, the LP model can be formulated as follows:
Minimize (daily inspection cost) Z = 8 (8.60 𝑥1 + 8.50 𝑥2 ) = 68.80 𝑥1 + 68.00 𝑥2
subject to the constraints
Total number of pieces that must be inspected in an 8-hour day
8 × 40 𝑥1 + 8 × 30 𝑥2 ≥ 2000
Number of inspectors of Grade 1 and 2 available
𝑥1 ≤ 9
𝑥2 ≤ 11
and 𝑥1 , 𝑥2 ≥ 0.
17
21-01-2025
Exercise 3
Answer
18
21-01-2025
Exercise 4
Consider the following problem faced by a production planner of a
soft drink plant. He has two bottling machines A and B. A is designed for
8-ounce bottles and B for 16-ounce bottles. However, each can also be
used for both types of bottles with some loss of efficiency. The
manufacturing data is as follows:
Machine 8-ounce Bottle 16-ounce Bottle
A 100/ minute 40/ minute
B 60/ minute 75/ minute
The machines can be run for 8 hours per day, 5 days per week. The
profit on an 8-ounce bottle is Rs 1.5 and on a 16-ounce bottle is Rs 2.5.
Weekly production of the drink cannot exceed 3,00,000 bottles and the
market can absorb 25,000, 8-ounce bottles and 7,000, 16-ounce bottles
per week. The planner wishes to maximize his profit, subject of course,
to all the production and marketing restrictions. Formulate this problem
as an LP model to maximize total profit.
Answer
Decision variables: 𝑥1 units of 8-ounce bottles and 𝑥2 units of 16-ounce
bottles
Maximize (total profit) Z = 1.5 𝑥1 + 2.5 𝑥2
Subject to
𝑥1 𝑥
+ 2 ≤ 2400 (Machine A time)
100 40
𝑥1 𝑥
+ 2 ≤ 2400 (Machine B time)
60 75
𝑥1 + 𝑥2 ≤ 3,00,000 (Production)
𝑥1 ≤ 25,000
𝑥2 ≤ 7,000
𝑥1 , 𝑥2 ≥ 0
19