Professional Documents
Culture Documents
AND SCIENCES
LINEAR
PROGRAMMING
This course deals with the nature of mathematics,
appreciation of its practical, intellectual, and aesthetic
dimensions, and applications of mathematical tools in daily
life. Students are encouraged to go beyond the typical
understanding of mathematics as merely set of formulas but
as a source of aesthetics in patterns of nature. The course
then proceeds to survey ways in which mathematics
provides a tool for understanding and dealing with various
aspects of present-day living, such as managing personal
finances, making social choices, appreciating geometric
designs, understanding codes used in data transmission and
security, and dividing limited resources fairly.
Copyright Disclaimer:
No part of this material may be reproduced,
distributed, or transmitted in any form or by any
means, including photocopying, recording, or other
electronic or mechanical methods, without the prior
written permission of the owner, except for personal
academic use and certain other noncommercial uses
permitted by copyright law.
Table of Contents
Linear Programming
• Pre-Assessment Page 3
• References Page 23
2
PRE-ASSESSMENT
1. 2x + 3y = 6
3x - 4 y = 9
2. 4 x + 4 y = 21
-3x + 4 y = 21
3 4 1
3. x− y =
4 13 25
11 4 12
- x+ y =
3 21 7
3
4. 2020 x + y = −10
2
10
− 22 x − 23 y =
7
3
#01
4
Linear Inequality
Remember!
5
Linear Inequality
Try This!
1. 2x + 3y 9
x- y 3
2. y 3x − 10
y −2 x + 11
5 9
3. x− y+
2 2
5 12
x− y+
3 5
6
#02
7
Linear Programming
It is a mathematical
technique designed to
help operations managers
plan and make decisions
relative to the trade-offs
necessary to allocate
resources.
Basic Terms!
Decision Variables
These are a set of quantities that need to be determined in order to solve the
problem. These variables may represent production levels, transportation levels, etc.
which are under the control of the decision maker(s).
Objective Function
It is a mathematical expression in linear programming that maximizes or minimizes
some quantity (often profit or cost, but any goal may be used).
Constrains
These are restrictions that limit the degree to which one can pursue an objective.
Feasible Region
It is the set of all feasible combinations of decision variables. The area of feasible
solutions must satisfy all conditions specified by the program’s constraints and thus
the region where all constraints overlap. Any point in the region would be a feasible.
Any point outside the shaded area would represent an infeasible solution.
8
Some • Scheduling school buses to minimize the
total distance traveled when carrying
students.
Applications
Requirements of LP Problem
1. LP problems seek to maximize or minimize some quantity (usually profit or cost). We refer to
this property as the objective function of an LP problem. The major objective of a typical firm is
to maximize profits in the long run. In the case of a trucking or airline distribution system, the
objective might be to minimize shipping costs.
2. The presence of restrictions, or constraints, limits the degree to which we can pursue our
objective. For example, deciding how many units of each product in a firm’s product line to
manufacture is restricted by available labor and machinery. We want, therefore, to maximize or
minimize a quantity (the objective function) subject to limited resources (the constraints).
3. There must be alternative courses of action to choose from. For example, if a company
produces three different products, management may use LP to decide how to allocate among
them its limited production resources (of labor, machinery, and so on). If there were no
alternatives to select from, we would not need LP.
4. The objective and constraints in linear programming problems must be expressed in terms of
linear equations or inequalities.
9
FORMULATING LINEAR
PROGRAMMING
PROBLEMS
One of the most common linear
programming applications is the
product-mix problem. Two or
more products are usually
produced using limited
resources. The company would
like to determine how many
units of each product it should
produce to maximize overall
profit given its limited resources.
Let’s look at an example.
The K-nect Electronics Company produces two products: (1) the K-nect laptop, and (2) the K-nect
tablet. The production process for each product is similar in that both require a certain number of
hours of electronic work and a certain number of labor-hours in the assembly department. Each
laptop takes 4 hours of electronic work and 2 hours in the assembly shop. Each tablet requires 3
hours in electronics and 1 hour in assembly. During the current production period, 240 hours of
electronic time are available, and 100 hours of assembly department time are available. Each
laptop sold yields a profit of 700 pesos; each tablet produced may be sold for a 500 pesos profit.
This problem is to determine the best possible combination of Laptops and Tablets to manufacture
to reach the maximum profit. This product-mix situation can be formulated as a linear
programming problem.
Assembly 2 1 100
10
K-nect Electronics Example
The K-nect Electronics Company
produces two products: (1) the Shader
laptop, and (2) the Shader tablet. The
production process for each product is
similar in that both require a certain
number of hours of electronic work
and a certain number of labor-hours in
the assembly department. Each laptop
takes 4 hours of electronic work and 2
hours in the assembly shop.
Each tablet requires 3 hours in
electronics and 1 hour in assembly.
During the current production period,
240 hours of electronic time are
available, and 100 hours of assembly
department time are available. Each
laptop sold yields a profit of 700 pesos;
each tablet produced may be sold for a
500 pesos profit.
Cont…
We begin by summarizing the information needed to formulate and solve this problem (see
Table page 10). Further, let’s introduce some simple notation for use in the objective function and
constraints. Let x be the number of laptops to be produced and let y be the number of tablets to be
produced.
Now we can create the LP objective function in terms of x and y: Maximized Profit = 700x + 500y
Our next step is to develop mathematical relationships to describe the two constraints in this
problem. One general relationship is that the amount of a resource used is to be less than or equal
to (≤) the amount of resource available.
Both these constraints represent production capacity restrictions and, of course, affect the total
profit. For example, K-nect Electronics cannot produce 70 laptops during the production period
because if x = 70, both constraints will be violated. It also cannot make x = 50 laptops and
y = 10 tablets. This constraint brings out another important aspect of linear programming; that
is, certain interactions will exist between variables. The more units of one product that a firm
produces, the fewer it can make of other products.
11
Some of the
Approaches/Methods
for solving LP Problems
Graphical Solution
Remember!
Graphical Solution
The easiest way to solve a small LP problem is the graphical solution approach. The
graphical procedure may usually use when there are two decision variables. When there are
more than two variables, it is not possible to plot the solution on a two-dimensional graph.
To find the optimal solution to a linear programming problem, we must first identify a
set, or region, of feasible solutions. The first step in doing so is to plot the problem’s constraints
on a graph.
12
Given to K-nect Electronics
LP Problem
Objective Function:
Maximized Profit = 700x + 500y
Considering that:
x, y ≥ 0
region, of feasible solutions. The first step in doing so is to plot the problem’s constraints on a
To find the (x, y) values producing the maximum profit, we find out what the coordinates of each
corner point are, then determine and compare their profit levels.
P1 : (x = 0, y = 0) Profit 700 pesos (0) + 500 pesos (0) = 0 peso
P2 : (x = 0, y = 80) Profit 700 pesos (0) + 500 pesos (80) = 40,000 pesos
P3 : (x = 30, y = 40) Profit 700 pesos (30) + 500 pesos (40) = 41,000 pesos (Max)
P4 : (x = 50, y = 0) Profit 700 pesos (50) + 500 pesos (0) = 35,000 pesos
Because P3 produces the highest profit of any corner point, the product mix of x = 30 laptops and
y = 40 tablets is the optimal solution to the K-nect Electronics problem. This solution will yield a
profit of 41,000 pesos per production period.
13
MORE ON
LINEAR PROGRAMMING
PROBLEMS
Many linear programming
problems involve minimizing an
objective such as cost instead of
maximizing a profit function.
Here is the other common linear
programming applications to
determine how many units of
each product it should produce
to minimize the cost given its
limited resources.
Let’s look at an example.
K-mist Chemicals, Inc., produces two types of alcohols. An ethyl alcohol costs 250 pesos per gallon
to produce, and isopropyl alcohol with moisturizer costs 300 pesos per gallon.
Based on an analysis of current inventory levels and outstanding orders, K-mist’s production
manager has specified that at least 30 gallons of ethyl alcohol and at least 20 gallons of isopropyl
alcohol with moisturizer must be produced during the next week. In addition, the manager notes
that an existing inventory of a highly perishable raw material needed in both alcohols must be
used within a week. To avoid wasting the expensive raw material, K-mist must produce a total of
at least 60 gallons of the alcohols in the next week.
We may formulate this information as a minimization LP problem. Let x be the number of gallons
of ethyl alcohol and let y be the number of gallons of isopropyl alcohol with moisturizer.
Subject to:
x + y ≥ 60 gallons total
14
Given to K-mist Chemical
LP Problem
Objective Function:
Minimized Cost = 250x + 300y
In this case, there are only two corner points, P1 (30, 30) and P2 (40, 20). The optimal solution is
found at the point yielding the lowest total cost. So, we can compare the cost level of each corner
point.
Total Cost at P1 = 250x + 300y
= 250(30) + 300(30)
= 1, 650 pesos
15
More on Linear
Programming Problems
1. A small manufacturer prepares two types of face masks each day (surgical mask
and KN95 masks) using the raw materials A and B. Suppose that each surgical
mask contains 20 cm2 of material A and 10 cm2 of material B, while each KN95
mask contains 10 cm2 of material A and 20 cm2 of material B. Suppose also that
the profit on each surgical mask is 8 pesos, and each KN95 mask costs 10 pesos.
If the production of two masks has 5000 cm2 of material A and 7000 cm2 of
material B available each day, how many surgical masks and how many KN95
masks should be made each day to maximize profit (assumed that the
manufacturer can sell all that is made)?
16
More on Linear
Programming Problems
2. A manufacturer of a certain chemical product has two plants where the product
is made. Plant X can make at most 30 tons per week and plant Y can make at most
40 tons per week. The manufacturer wants to make a total of at least 50 tons per
week. The amount of particulate matter found weekly in the atmosphere over
nearby town is measured and found to be 20 pounds for each ton of the product
made by plant X and 30 pounds for each ton of the product made at plant Y. How
many tons should be made weekly at each plant to minimize the total amount of
particulate matter in the atmosphere?
17
KEY TERMS
Constrains
Decision Variables
Feasible Region
Graphical Solution
Linear Programing
Objective Function
ANSWER KEY
Pre-assessment Page 3
1. 2x + 3y = 6
3x - 4 y = 9
2. 4 x + 4 y = 21
-3x + 4 y = 21
3 4 1
3. x− y =
4 13 25
11 4 12
- x+ y =
3 21 7
3
4. 2020 x + y = −10
2
10
− 22 x − 23 y =
7
19
ANSWER KEY
Page 6
1. 2x + 3y 9
x- y 3
2. y 3x − 10
y −2 x + 11
5 9
3. x− y+
2 2
5 12
x− y+
3 5
20
ANSWER KEY
Page 16
Page 17
Aufmann, R.N., Lockwood, J.S., Nation, R.D., & Clegg, D.K. (2010).
Mathematical Excursions (2nd ed.). Australia:
Brooks/Cole Cengage Learning.
Nocon, R.C. & Nocon, E.G. (2016). Essential Mathematics for the
Modern World. Philippines: C & E Publishing
23