Operations Research - Lecture Five - Linear Programming
Operations Research - Lecture Five - Linear Programming
LECTURE FIVE
Linear programming (1)
Lecturer: Dr. Emily Roche
INTRODUCTION
This lecture will focus on definition of terms and formulation of linear programming
models
Intended learning outcomes
At the end of this lecture, you will be able to
i. Explain the properties of Linear Programming Model
ii. Formulate linear programming models
References
These lecture notes should be supplemented with relevant topics from the books listed
in the Bibliography at the end of the lecture
Product 1 Product 2
Number of units produced (variables) 𝑥1 𝑥2
Profit 2𝑥1 5𝑥2
Number of machine hours 3𝑥1 4𝑥2
Units of raw material 9𝑥1 7𝑥2
Minimum requirement 20 0
The objective of this problem is to maximize the total profit 2𝑥1 + 5𝑥2 for the two
products.
This maximization is subject to the machine hours constraints, the raw material
constraint, and the minimum requirement constraint.
The machine hours constraint specifies that the total number of machine hours
used by the two products should not exceed maximum number of hours available
i.e.
3𝑥1 + 4𝑥2 ≤ 200
Similarly for the raw material constraint,
9𝑥1 + 7𝑥2 ≤ 300
And for the minimum requirements constraints
𝑥1 ≥ 20; 𝑥2 ≥ 0
The problem is usually put in the format:
Maximize 𝑥0 = 2𝑥1 + 5𝑥2
3𝑥1 + 4𝑥2 ≤ 200
Subject to: 9𝑥1 + 7𝑥2 ≤ 300
𝑥1 ≥ 20; 𝑥2 ≥ 0
where 𝑥0 is the objective function.
The above example illustrates three main properties of the general linear
programming problem:
1. The objective function and the constraints are linear expressions of the decision
variables.
2. Each constraint may be one of the three types:
• Less than or equal to (≤)
• Greater than or equal to (≥)
• Equal to (=)
The last type is not illustrated in the above example. However, if a market
restriction requires that the ratio of product 1 to product 2 be equal to 6, then an
𝑥1
additional constraint = 6 or 𝑥1 − 6𝑥2 = 0 should be added to the above
𝑥2
problem.
3. All the variables of the linear programming problem are non-negative.
The maximum amount of raw wool or silk that may be used each week by the factory is
determined by the current limits being:
Wool 8,000 units
Silk 3,000 units
The factory manager is required to maximize his profits and wishes to know how to
achieve this.
Solution
Let 𝑥𝑖 , 𝑖 = 1,2,3 be the number of units of type 1,2,3 woven.
Objective is to maximize profit, thus;
Maximize 𝑥0 = 4𝑥1 + 𝑥2 + 5𝑥3
3𝑥1 + 𝑥2 + 4𝑥3 ≤ 8,000
Subject to 2𝑥1 + 𝑥2 + 3𝑥3 ≤ 3,000
𝑥1 ≥ 0; 𝑥2 ≥ 0; 𝑥3 ≥ 0
Example 2
A pig breeder requires feed weanes as quickly as possible. They require a diet consisting
of a minimum of 3 nutrients 𝑁1 , 𝑁2 , 𝑁3 . These nutrients form part of 4 commercial food
stuffs 𝑓1 , 𝑓2 , 𝑓3 , 𝑓4 .
Nutrients /unit food Minimum
required
𝑓1 𝑓2 𝑓3 𝑓4
𝑁1 5 8 4 1 50
𝑁2 3 8 7 5 42
𝑁3 4 0 5 4 8
Cost/unit 10 9 12 9
Solution
Let 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 be the amount of 𝑓1 , 𝑓2 , 𝑓3 , 𝑓4 to be purchased.
Objective
Minimize 𝑥0 = 10𝑥1 + 9𝑥2 + 12𝑥3 + 9𝑥4
5𝑥1 + 8𝑥2 + 4𝑥3 + 𝑥4 ≥ 50
3𝑥1 + 8𝑥2 + 7𝑥3 + 5𝑥4 ≥ 42
Subject to
4𝑥1 + 0𝑥2 + 5𝑥3 + 4𝑥4 ≥ 8
𝑥1 ≥ 0, 𝑥2 ≥ 0, 𝑥3 ≥ 0, 𝑥4 ≥ 0
Bibliography
Lucey, T. (2002). Quantitative Techniques (6th ed.). Cengage Learning.