Linear Programming (Optimization)
Linear Programming (Optimization)
PROGRAMMING
Mr. John Llenord C. Villanueva
MGT 208
CABEIHM (BatStateU-TNEU)
• Graph a set of given constraints for a linear programming problem.
• Use linear programming to find the maximum and minimum value
given the objective function.
• Solve real-world contexts involving optimization using linear
programming.
Yum’s Bakery wants to maximize its profits from bread sales. One batch
of A yields a profit of $40. One batch of B yields a profit of $30. Use the profit
information and the data from Example 1 to find how many batches of each
bread the bakery should bake.
5 Let P = the profit from the bread. Write the objective function:
P = 40x + 30y
x≥0
The feasible region is a quadrilateral with
y≥0 vertices at (0, 0), (36, 0), (30, 15), and (0, 45).
32x + 16y ≤ 320 The total shelf space is at least 320 feet.
Step 4 Find the coordinates of the Answer: The maximum values are 360 at
vertices of the feasible region. (3, 2) and 360 at (9, 0). This
means that the company
From the graph, the vertices are receives the most money with
at (0, 2), (3, 2), (9, 0), and (0, 0). 3 mowings and 2 prunings or 9
Step 5 Write the function to be maximized. mowings and 0 prunings.
The function that describes the income
is f(m, p) = 40m + 120p. We want to find
the maximum value for this function.
Application Problems:
GulfGolf is a small family-run company in the United Arab Emirates. It manufactures golfing equipment aimed
at the increasing demand, primarily from tourists coming for golfing holidays in the Gulf region. The company
has decided to manufacture two new products: a medium-priced golf bag and a more up-market, expensive golf
bag. The company’s products are priced in US$ given its international customer base. The company’s distributor
is enthusiastic about the new product line and has agreed to buy all the golf bags the company 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 four operations:
❖ Cutting and dyeing the material needed.
❖ Sewing.
❖ Finishing (inserting umbrella holder, club separators, etc.).
❖ Inspection and packaging.
7
If the company produces a medium-priced standard model, each bag will require hours
10
1
in the cutting and dyeing department, hour in the sewing department, one hour in the
2
1
finishing department, and hour in the inspection and packaging department. The more
10
5 2
expensive deluxe model will require one hour for cutting and dyeing, hour for sewing,
6 3
1
hour for finishing, and hour for inspection and packaging. This production information is
4
summarized in Table 2.1. Production is constrained by the 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 1 of $10 for every standard bag and $9 for every
deluxe bag produced. How many of the two types of golf bag should it manufacture in order to
maximize profit contribution?
1 Let x = the number medium sized golf bags (standard)
y = the number expensive golf bags (deluxe)
2 Write the constraints:
x≥0
The number of golf bags cannot be negative.
y≥0
7 The combined production time in cutting & dyeing is less than
𝑥 + 𝑦 ≤ 630
10 or equal to 630 hours.
1 5 The combined production time in sewing is less than or equal
𝑥 + 𝑦 ≤ 600 to 600 hours.
2 6
2 The combined production time in finishing is less than or equal
𝑥 + 𝑦 ≤ 708
3 to 708 hours.
1 1 The combined production time in inspection & packaging is
𝑥 + 𝑦 ≤ 135 less than or equal to 708 hours.
10 4
3&4 Graph the feasible region and determine its vertices.
Z = 10x + 9y
6 Evaluate the objective function at the
vertices of the feasible region.
(𝑥, 𝑦) 10𝑥 + 9𝑦 𝑍($)
(0, 540) 10(0) + 9(540) $4,860
(300, 420) 10(300) + 9(420) $6,780
(540, 252) 10(540) + 9(252) $7,668
(708, 0) 10(708) + 9(0) $7,080
GulfGolf should produce 540 standard and 252 deluxe golf bags to maximize the profit
up to $7,668.
LANDSCAPING A landscaping company has crews who rake leaves and
mulch. The company schedules 2 hours for mulching jobs and 4 hours for
raking jobs. Each crew is scheduled for no more than 2 raking jobs per
day. Each crew’s schedule is set up for a maximum of 8 hours per day. On
the average, the charge for raking a lawn is $50 and the charge for
mulching is $30.
What is a combination of raking leaves and mulching that will maximize
the income the company receives per day from one of its crews?
A. 0 mulching; 2 raking
B. 4 mulching; 0 raking
C. 0 mulching; 4 raking
D. 2 mulching; 0 raking
Do the following:
✓ You TRY #s 3 – 7 on pp. 6-7
✓ You TRY #s 2 – 3 on pp. 11-12
✓ Supplementary Problems pp. 7-8
✓ Supplementary Problems p. 13
NO WORK, NO CREDIT
Go to google classroom and look for
Exit Ticket (09122023)
This will be done in Google Form. You have
15 minutes to finish this warmup.
OPTIMIZATION WITH LINEAR
PROGRAMMING
Mr. John Llenord C. Villanueva
MGT 208
CABEIHM (BatStateU-TNEU)
• Graph a set of given constraints for a linear programming problem.
• Use linear programming to find the maximum and minimum value
given the objective function.
• Solve real-world contexts involving optimization using linear
programming.
Z = 10x + 9y
6 Evaluate the objective function at the
vertices of the feasible region.
(𝑥, 𝑦) 10𝑥 + 9𝑦 𝑍($)
(0, 540) 10(0) + 9(540) $4,860
(300, 420) 10(300) + 9(420) $6,780
(540, 252) 10(540) + 9(252) $7,668
(708, 0) 10(708) + 9(0) $7,080
GulfGolf should produce 540 standard and 252 deluxe golf bags to maximize the profit
up to $7,668.
Binding vs Non-binding Constraints
x≥0
The number of golf bags cannot be
y≥0 negative.
7 The combined production time in
𝑥 + 𝑦 ≤ 630
10 cutting & dyeing
1 5 The combined production time in
𝑥 + 𝑦 ≤ 600 sewing
2 6
2 The combined production time in
𝑥 + 𝑦 ≤ 708
3 finishing
1 1 The combined production time in
𝑥 + 𝑦 ≤ 135 inspection & packaging
10 4
The constraints for sewing and finishing production time are called the binding while
the cutting and dyeing and inspection & packaging are called non-binding.
GulfGolf should produce 540 standard and 252 deluxe golf bags to maximize the profit
up to $7,668.
There are slack variables in sewing and inspection & packaging. Particularly, 120 hours
in sewing and 18 hours in finishing are unused.
Minimization LP Problems:
M&D Chemicals is based in Germany and manufactures a variety of
chemical products that are sold to other companies who produce bath soaps
and shower gels. Based on an analysis of current inventory levels and
potential demand for the coming week, M&D’s management specified that
the combined production for products A and B must total at least 350 litres.
Separately, a major customer’s order for 125 litres of product A must also be
satisfied. Product A requires two hours of processing time per litre and
product B requires one hour of processing time per litre. For the coming
week, 600 hours of processing time are available. M&D’s objective is to
satisfy these requirements at a minimum total production cost. Production
costs are $2 per litre for product A and $3 per litre for product B.
Continuation of M&D Chemicals Problem:
1 Let x = the number of litres of product A
y = the number of litres of product B
𝑧 = total production cost
(𝑥, 𝑦) 𝟐𝑥 + 𝟑𝑦 𝑍($)
(125, 350) 2(125) + 3(350) $1,300
(125, 225) 2(125) + 3(225) $925
(250, 100) 2(250) + 3(100) $800
M&D Chemical’s should produce 250 litres of product A and 100 litres of product B to
miniimize the total production cost up to $800.
Surplus Variable
This is the amount by which consumption exceeds the minimum requirement.
M&D Chemical’s should produce 250 litres of product A and 100 litres of product B to
miniimize the total production cost up to $800.
There are slack variables in sewing and finishing. Particularly, 120 hours in sewing and
18 hours in finishing are unused.
4. As part of a quality improvement initiative, government employees complete a three-day
training programme on teamwork and a two-day training programme on problem
solving. The manager of quality improvement requested that at least eight training
programmes on teamwork and at least ten training programmes on problem solving be
offered during the next six months. In addition, senior-level management specified that at
least 25 training programmes must be offered during this period. A consultant is used to
teach the training programmes. During the next six months, the consultant has 84 days
of training time available. Each training programme on teamwork costs $10,000 and each
training programme on problem solving costs $8000.
a. Formulate a linear programming model that can be used to determine the number of
training programmes on teaming and the number of training programmes on problem
solving that should be offered in order to minimize total cost.
b. Write the linear programming model in standard form.
c. Graph the feasible region.
d. Determine the coordinates of each extreme point.
e. Solve for the minimum-cost solution.
f. How many training programmes/days are considered slack? surplus?
Let x = the number of teamwork training programme
y = the number of problem-solving training programme
𝑧 = total cost
Write the constraints: Objective Function: 𝑴𝒊𝒏 𝒛 = 10000𝑥 + 8000𝑦
x≥0
The number of golf bags cannot be negative.
y≥0
𝑥≥8 Minimum required training for each (teamwork & problem-solving
𝑦 ≥ 10
Minimum required combined training
𝑥 + 𝑦 ≥ 25
3𝑥 + 2𝑦 ≤ 84 The available days of training