OR CH 2
OR CH 2
Department of Management
MBA Program
1
By: Nuru Mohammed (Ph.D.)
2021/2022
Asella, Ehiopia
Nuru M.((Ph.D.)
2
Chapter 2
Linear Programming (LP)
Chapter Objectives:
At the end of this chapter you should be able to;
Understand fundamental concepts and general structure of a LPM.
Express objective function and resource constraints in LP model in terms of DV and parameters.
Appreciate the limitations and assumptions of LP technique.
solve an LP problem by the graphical method
Set-up Nuru
simplex
M.((Ph.D.) tables and solve LPP using the simplex algorithm.
2.1 Introduction
3
Linear: refers to linear relationship among variables in a model.
Programming: refers to the mathematical modelling and solving of a
problem that involves the use of limited resources.
LPM: mathematical modelling technique regarding optimal use of
scarce resources.
Scarce resources: refers to resources that are not available in infinite quantity.
In 1947 (WW-II), George B Dantzing from US Air Force, developed LPM.
To solve military logistics problems.
Now, it is extensively being used in all functional areas of management
Nuru M.((Ph.D.)
Continued…
e.g; Product mix problem - Beaver Creek Pottery Company
Resource Requirements
Labor Clay Profit
product
(Hr./Unit) (Lb./Unit) ($/Unit)
Bowl 1 4 40
Mug 2 3 50
Maximize
Z = $40 x1 + $50 x2
subject to: 1x + 2 x 40
1 2
4 x2 + 3 x2 120
x1, x2 0
2.1 Characteristics of LP
6
LPM is characterized by its structure and model assumptions
A. Structure of LPM
Consists of following three basic components.
1. Decision variables: represent the unknown quantities to be solved
for.
If the decision-maker control the values, the variables are said to be
controllable, otherwise they are said to be uncontrollable.
In LPM all decision variables are continuous, controllable and nonnegative
Usually denoted by 𝑋1 , 𝑋2 , 𝑋3 , …, 𝑋𝑛
2. The objective function: mathematical representation of the overall
goal
Expressed in terms of decision variables.
Nuru M.((Ph.D.)
Nuru M.((Ph.D.)
Continued…
8
B. Assumptions of an LPM
1. Certainty: all parameters in the model must be known and constant.
Availability of resources, profit (or cost) contribution per unit of DV, and consumption
of resources per unit of decision.
2. Additivity:
The value of the objective function must be equal to the sum of the respective
individual contribution (profit or cost).
The total amount of each resource used, must be equal to the sum of respective
resources used for each product.
3. Linearity (or proportionality):
Each DV has a linear impact on the objective function.
Each DV has a linear impact on the available resource (RHS).
4. Divisibility (or continuity): The solution of DV are allowed to assume continuous values.
Nuru M.((Ph.D.)
non-integer values are acceptable.
Continued…
9
5. Non-negativity - negative values of variables are unrealistic.
Nuru M.((Ph.D.)
2.2 Advantages and Limitations of LP technique
10
Nuru M.((Ph.D.)
2.3 General mathematical model of LP problem
11
The general LPM with “n” DV and “m” constraints can be stated;
Nuru M.((Ph.D.)
2.4 Guidelines on LPM formulation
12
Step 1. Identification of decision variables.
Step 2. Determination of objective function.
Step 3. Identification of constraints.
Step 4. Determining the parameters of constraints or objective function.
Step 5. Building and validating the models.
Nuru M.((Ph.D.)
Continued…
13
The company has a daily order commitment for 20 units of products A and a
total of 15 units of products B and C. Formulate this problem as an LP model so
as to maximize the total profit.
Nuru M.((Ph.D.)
Continued…
14
Soln
Z max (Profit)= 12𝑋1 +20𝑋2 +45𝑋3
s.t
0.8𝑋1 +1.7𝑋2 +2.5𝑋3 < 100
𝑋1 < 50
𝑋2 < 25
𝑋3 < 30
𝑋1 > 20
𝑋2 +𝑋3 > 15
𝑋1 , 𝑋2 , 𝑋3 > 0
Nuru M.((Ph.D.)
Continued…
15
Example 2.2: A farmer is preparing to plant a crop in the spring and needs to fertilize a
field. There are two brands of fertilizer to choose from, Super-gro and Crop-quick. Each
brand yields a specific amount of nitrogen and phosphate per bag, as follows:
The farmer’s field requires at least 16 pounds of nitrogen and at least 24 pounds of
phosphate. Super-gro costs $6 per bag, and Crop-quick costs $3. The farmer wants to know
how many bags of each brand to purchase to minimize the total cost of fertilizing.
Nuru M.((Ph.D.)
Continued…
16
Soln
Z minimize= 6𝑋1 +3𝑋2
s.t
2𝑋1 +4𝑋2 >16
4𝑋1 +3𝑋2 >24
𝑋1 , 𝑋2 , > 0
Nuru M.((Ph.D.)
Continued…
17
Exercise!
Example 2.2 A small scale manufacturer produce two types of products A
and B which gives a profit of 2000 and 3000 birr respectively. Each product is
produced on two machine I and II. Type A requires one hour processing on
machine I and two hour on machine II. Type B takes one hour in both
machines. Machine I is available for not mortmain 60 hours. While machine II
for 100 hours during any working week. The demand for product A does not
exceed 30 unit per week. Formulate the LPM?
Nuru M.((Ph.D.)
Continued…
18
Example 2.3 International Wool Company operates a large farm on which sheep
are raised. The farm manager determined that for the sheep to grow in the
desired fashion, they need at least minimum amounts of four nutrients (the
nutrients are nontoxic so the sheep can consume more than the minimum without
harm). The manager is considering three different grains to feed the sheep. Table
B-2 lists the number of units of each nutrient in each pound of grain, the minimum
daily requirements of each nutrient for each sheep, and the cost of each grain.
The manager believes that as long as a sheep receives the minimum daily amount
of each nutrient, it will be healthy and produce a standard amount of wool. The
manager wants to raise the sheep at minimum cost. Formulate LPM?
Nuru M.((Ph.D.)
2.5 Solving LP Problems
19
Nuru M.((Ph.D.)
3.5.1 Graphical Method of Solving LPP
. Extreme Point Solution Method
20
. Iso-profit/cost method
Nuru M.((Ph.D.)
Continued…
21
IMPORTANT DEFINITIONS
Nuru M.((Ph.D.)
Continued…
22
Optimum basic feasible solution: A basic feasible solution that optimizes
(maximizes or minimizes) the objective function.
Unbounded solution: A solution that can increase or decrease infinitely the value
of the objective function.
Nuru M.((Ph.D.)
Continued…
23
Steps
1. Develop an LPM
2. Plot constraints on graph paper and decide the feasible region.
3. Examine extreme points of the feasible solution space to find an optimal
solution
It states that for problems that have optimal solutions, a solution will occur at the corner point in the
case of unique solution, while in the case of multiple solutions, at least one will occur at a corner point as
these multiple solutions will be combinations of those points between two corner points.
Nuru M.((Ph.D.)
Continued…
24
Example 3.1 Use the graphical method to solve the following LP problem
𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 15𝑥1 + 10𝑥2
S.t
4𝑥1 + 6𝑥2 ≤ 360
3𝑥1 ≤ 180
5𝑥2 ≤ 200
𝑥1 , 𝑥2 ≥ 0
Nuru M.((Ph.D.)
Continued…
25 Example 3.1 Use the graphical method to solve the following LP problem
Exercise
C) 𝑀𝑎𝑥𝑖𝑚𝑖𝑧𝑒 𝑍 = 7𝑥1 + 3𝑥2
S.t
𝑥1 + 2𝑥2 ≥3
𝑥1 + 𝑥2 ≤ 4
𝑥1 ≤ 5/2
Nuru M.((Ph.D.) 𝑥2 ≤ 3/2
𝑥1 , 𝑥2 ≥ 0
Continued…
26
a)
Nuru M.((Ph.D.)
Hence the optimal solution to the given LP problem is: x1 = 60, x2 = 20 and Max Z = 1,100.
Continued…
27
b)
Hence, the optimal solution to the given LP problem is: x1 = 1, x2 = 5, and Min Z = 13.
Nuru M.((Ph.D.)
Special case in LP
(Assignment)
28
Nuru M.((Ph.D.)
3.5.2 Linear Programming: The Simplex Method
29
Most real-life problems LPM have more than two variables.
Simplex method is appropriate.
Iterative method.
Examines corner points, using matrix row operations, until an optimal
solution is found.
Nuru M.((Ph.D.)
LPM Standard form
30
The problem be converted into its standard form.
Constraints should be converted into equality, using slack or surplus
and/or artificial variables.
The RHS of each constraint should be made non-negative.
The objective function should be of the maximization type.
Nuru M.((Ph.D.)
3.5.2.1 Simplex algorithm (maximization case)
31
Steps to follow:
1. Formulation of the mathematical model
2. Develop the standard form of the model.
3. Setup the initial feasible solution
4. Test for optimality: Calculate the cj – zj value for all non-basic variables, if
i. cj – zj ≤ 0, then the basic feasible solution is optimal.
ii. at least one column of the coefficients matrix for which ck – zk > 0 and all
other elements are negative (i.e. 𝑎𝑖𝑘 < 0), then there exists an unbounded
solution.
iii. at least one cj – zj > 0, and each of these columns have at least one positive
element (i.e. 𝑎𝑖𝑗 ) for some row, then this indicates that an improvement is
possible.
Nuru M.((Ph.D.)
Continued…
32
Nuru M.((Ph.D.)
33
Flow Chart of
Nuru M.((Ph.D.)
Simplex Algorithm
Continued…
34
Note:
Elementary raw operations
1. Multiply or divide the entire raw by non-zero constant.
2. Add or deduct the multiple of one raw with/from other row
3. Interchange one raw with other.
Nuru M.((Ph.D.)
Continued…
35
Step 2: standard form Step 3. initial feasible solution
2x1 + 3x2 + s1 = 8
2x2 + 5x3 + s2= 10
3x1 + 2x2 + 4x3 + s3 = 15
x1, x2, x3, s1, s2, s3 ≥ 0
Step 4, 5, and 6
4. The table is not optimal, positive value at 𝐶𝑗 − 𝑍𝑗 𝑟𝑎𝑤
5. 𝑋2 leaves the base (pivot column )
Nuru M.((Ph.D.)
6. 𝑆1 inter into the base (pivot row )
Continued…
36
Nuru M.((Ph.D.)
Continued…
37 Step 7: Finding the new solution
Improved solution
Nuru M.((Ph.D.)
Continued…
38
The final iteration looks like
Nuru M.((Ph.D.)
3.5.2.2 Simplex algorithm (minimization case)
. Two-Phase Method
40 . Big-M Method or Method of Penalties
Note:
Artificial (A) variables have no meaning
Before the optimal solution all artificial variables must be removed.
Big-M method is method of removing artificial variables.
Large undesirable coefficients to artificial variables are assigned on the
objective function.
+ M for minimization and – M for maximization problem.
Steps are all the same except the optimality criteria
The table is optimal if the 𝐶𝑗 − 𝑍𝑗 row values are > 0
If for a column, k, ck – zk is most negative and all entries in this column are negative,
then the problem has an unbounded solution.
The interning variable is the one with large with –ve 𝐶𝑗 − 𝑍𝑗 value
Nuru M.((Ph.D.)
Continued…
41
Nuru M.((Ph.D.)
Continued…
42
Nuru M.((Ph.D.)
Continued…
43 Step 7: Finding the new solution
Nuru M.((Ph.D.)
Continued…
44
Next iteration Interpretation
Nuru M.((Ph.D.)
Exercise
45
Exercise 1, (Class-work) Exercise 2
• Solve the following LP model. Solve the following LP model.
Max Z = 6X1+8X2 Minimize ɵ = 16x1 + 9x2 + 21x3
S.t: s.t.
X2 ≤ 4
x1 + x2 + 3x3 ≥ 12
X1+X2 = 9
2x1 + x2 + x3 ≥ 16
6X1+2X2 ≥ 24
X1, X2 ≥ 0 x1, x2, x3 ≥ 0
Nuru M.((Ph.D.)
3.5.2.3 Some complications and their resolution
(Assignment)
46
The complications that may arise in applying the simplex method may
include;
1. Unrestricted Variables: when DV take either positive, negative or zero value
2. Tie for Entering Basic Variable (Key Column)
3. Tie for Leaving Basic Variable (Key Row) – Degeneracy
4. Types of linear programming solutions
Three types of solutions may exist:
a) Alternative (Multiple) Optimal Solutions
b) Unbounded Solution
c) Infeasible Solution
Nuru M.((Ph.D.)
3.5.2.4 Post optimality Analysis
(Assignment)
47
Duality
Sensitivity Analysis
Nuru M.((Ph.D.)
48
Any Question?
Nuru M.((Ph.D.)