CHAPTER 3 Maths
CHAPTER 3 Maths
Contents
3.0 Aims and Objectives
3.1 Introduction
3.2 Linear Programming Models
3.3 Formulating Lp Models
3.4 Solution Approaches to Linear Programming Problems
At the end of this chapter students will be able to apply the knowledge of linear programming to
solve managerial problems, they will be able to use linear programming models to solve
3.1 Introduction
Linear programming- is an optimization method which shows how to allocate scarce resources
in the best possible way subject to more than one limiting condition expressed in the form of
inequalities and /or equations. It
- enables users to find optional solution to certain problems in which the solution must
satisfy a given set of requirements or constraints.
- Optimization in linear programming implies either maximization (max) Profit, revenue,
We can’t
max/min two sales, market share or minimization (min) Cost, time, distance, or a certain objective
quantities in one
model.
function.
- Involves linearly related multi-variety functions i.e. functions with more than one
independent variables.
- The goal in linear programming is to find the best solution given the constraints imposed
by the problem, hence the term constrained optimization.
1|Page
3.2 Linear programming models
Components Assumptions
1. Objective function 1. Linearity
2. Decision variables Model 2. Divisibility
Model
3. Constraints Structure 3. Certainty
Validity
4. Parameters and Right. 4. Non-negativity
Hand Side Values
the company/ model. The objective in problem solving is the criterion by which all
decisions are evaluated. In LPMs a single quantifiable objective must be specified by the
decision maker. For example, the objective might relate to profits, or costs or market
share, best to only one of these. Moreover, because we are dealing with optimization, the
b) The Decision Variables: represent unknown quantities to be resolved for. These decision
2|Page
Since the decision maker has freedom of choice among actions, these decision variables are
controllable variables.
c) The constraints: are restrictions which define or limit the attainability (achievability)
feasibility of a proposed course of action. They limit the degree to which the objective
can be pursued.
A typical restriction embodies scarce resources (such as labor supply, RMs, production capacity,
machine time, storage space), legal or contractual requirements (leg. Product standards, work
standards), or they may reflect other limits based on forecasts, customer orders, company
policies etc.
d) Parameters- are fixed values that specify the impact that one unit of each decision
variable will have on the objective and on any constraint it pertains to as well as to the
The components are the building blocks of an LP model. We can better understand their meaning
Example:
Maximize:
X1 = 30 Individual
X1 – qty of product 1 X2 40
Variables
Constraints
Decision
X3 qty of product 3
3|Page
Individual constraint- involve only one decision variable.
None-negativity constrains- specify that no variable will be allowed to take on a negative value.
The non negativity constraints typically apply in an LP model, whether they are explicitly stated
or not.
a) Linearity
The linearity requirement is that each decision variable has a linear impact on the objective
function and in each constraint in which it appears. Taking the above example, producing one
more unit of products add br 4 to the total profit. This is true over the entire range of possible
is assumed that non-integer values are acceptable. For example: 3.5 TV sets/ hr would be
c) Certainty: The parameters are known and constant. The certainty requirement involves two
(1) With respect to model parameters (i.e. the numerical values) –If is assumed that these
values are known and constant. Eg. In the above example each unit of product 1 requires 2
labor hours is known and remain constant, and also the 300 labor available is deemed to be
(2) All the relevant constraints identified and represented in the model are as they are.
unrealistic and, therefore, will not be considered in any potential solutions, only positive
4|Page
3.3 FORMULATING LP MODELS
Once a problem has been defined, the attention of the analyst shifts to formulating a model. Just
as it is important to carefully formulate the model that will be used to solve the problem. If the
1) Define the problem/ problems definition: to determine the no. of type 1 and type 2
products to be produced per month so as to maximize the monetary profit given the
restriction.
3) Determine the objective function: Once the variables have been identified, the objective
- non-negativity constraints.
micro computers. Each type of microcomputer will require assembly time, inspection time, and
storage space. The amount of each of there resources that can be devoted to the production of
micro computers is limited. The mgnager. Of the firm would like to determine the quantity of
each micro computer to produce in order to maximize the profit generated by sales of these
micro computers.
5|Page
Additional information
In order to develop a suitable model of the problem, the manager has met with the design and
manufacturing personnel. As a result of these meetings, the manager has obtained the following
information:
Type 1 Type 2
The manager also has acquired information on the available company resources. These (weekly)
amounts are:
The manager has also met with the firms marketing manager and learned that demand for the
micro computers was such that what ever combination of these two types of micro computers is
- To determine the no. of two types of microcomputers to be produced (and sold) per week
- Let X1 and X2 be the weekly quantities of type 1 and type 2 microcomputers respectively.
6|Page
Step 3: Develop the objective function
Subject to
2X1 + X2 22
3X1 + 3X2 39
X1, X2 0
assembly operation. The assembly times are shown in the following table:
Station 1 Station 2
7.5hr 7.5hr
7|Page
Each workstation has a daily working time of 7.5 hrs. The manager want to obtain the greatest
possible profit during the next five working days. Model A yields a profit of br. 8.25 per unit,
Model B a profit of br 7.5 per unit and model C a profit of Br 7.8 per unit. Assume that the firm
can sell all it produces. During this time, but it must fill outstanding orders for 20 units of each
model type.
Step 1: Problem definition: to determine the number of three types of searching devices to be
produced to be produced and sold for the next 5 days (working) so as to maximize the 5 days
profit.
2. Variable representation
Let X1, X2, and X3 be the number of model A, B and C sketching devices to be produced and
sold.
4.Constraint identification
System
2.5X1 + 1.8X2 + 2.0X3 450minutes…Assembly time station 1
Constraints
3.0X1 + 1.6X2 + 2.2X3 450minutes…. Assembly time station2
X1 20 …. Model A
Individual
X2 20 ….Model B Constraints
X3 20….Model C
Summary
8|Page
3X1 + 1.6X2 + 2.2X3 450
X1 20
X2 20
X3 20
X1 X2 X3 0
programming problems.
This method can be used only to solve problems that involve two decision variables. However,
most linear programming applications involve situations that have more than two decision
2X1 + X2 22
3X1 + 3X2 39
X1 X2 0
Steps
9|Page
2. Identify the common region, which is all area that contains all of the points that satisfy
3. Determine the optional solution-identify the point which lead to maximum benefit or
minimum cost.
X1 0 25 X1 0 11 X1 0 13
X2 10 0 X2 22 0 X2 13 0
To identity the maximum (minimum) value we use the corner point approach or the extreme
point approach. The corner point/ extreme point approach has one theorem. It states that:
For problems that have optional solutions, a solution will occur at an extreme, or corner point.
Thus if a problem has a single optional solution, it will occur at a corner point. If it has multiple
optional solutions, at least one will occur at a corner point consequently, in searching for an
optional solution to a problem, we need any consider the extreme points because one of those
must be optional. Further, determining the value of the objective function at each corner point,
10 | P a g e
we could identify the optional solution by selecting the corner point that has the best value (i.e.
maximum or minimum, depending on the optimization case) of the objective function. Extreme
Determine the values of the decision variables at each corner point. Some times, this can be done
Substitute the value of the decision variables at each corner point into the objective function to
After all corner points have been so evaluated, select the one with the highest or lowest value
Points X1 X2 determined?
A 0 0 observation 0 br
B 11 0 observation 660 br
C 9 4 Simultaneous 740 br
equation
D 5 8 Simultaneous 700 br
equation
E 0 10 Observation 500 br
BASIC SOLUTION
X1 = 9 X2 = 4 Z = 740 Br.
After we have got the optimal solution, we have to substitute the value of the decision variables
into the constraints and check whether all the resources available are used or not. If there is any
unused resources we can use it for any other purpose. The amount of unused resource is known
as slack- the amount of a scarce resource that is unused by a given solution. The slack can range
from zero, for a case in which all of a particular resource is used, to the original amount of the
resource that was available (i.e. none of it is used.)
11 | P a g e
Computing the amount of slack
Originally unused Amount of slack
Amount used available (Available-used)
Constraint X1 = 9X2 = 4
Assembly 4(9) + 10(4) = 76 100 100 – 76 = 24 hrs
Impective 2(9) 9+ 1(4) = 22 22 22 – 22 = 0 hr
Storage 3(9) + 3(4) = 39 39 39 – 39 = 0 hr
Constraints that have no slack are sometimes referred to as binding constraints since they limit or
bind the solution. In the above cases, inspection time and storage space are binding constraints,
while assembly time has slack.
Knowledge of unused capacity can be useful for planning. A manager may be able to use the
remaining assembly time for other products, or, perhaps to schedule equipment maintenance,
safety seminars, training sermons or other activities
Interpretation: The company is advised to produce 9 units of type 1 micro computer and 4 units
of type 2 micro computers per week to maximize its early profit to Br. 740, and in doing so the
company would be left with unused resource of 24 assembly hrs which can be used for other
purposes.
X2
12
8
A
4
12 | P a g e
0 X1
4 8 12 16
B
If there is a difference between the minimum required amount and the optimal solution, we call
the difference surplus; that is: surplus is the amount by which the optimal solution causes a
constraint to exceed the required minimum amount. It can be determined in the same way that
slack can: substitute the optimum values of the decision variables into the left side of the
constraint and solve. The difference between the resulting value and the original right-hand side
amount is the amount of surplus.
Surplus can potentially occur in a constraint.
The optimal solution to a linear programming model will occur at an extreme point of the
feasible solution space. This is true even if a model involves more than two variables; optsmal
solutions will occur at these point of the feasible solution space; some will be outside of the
13 | P a g e
feasible solution space. Hence, not every solution will be a feasible solution. Solutions which
represent infasseetwim of constraints are called basic solutions; those which also satisfy all of the
constraints, including the non-negativity constraints, are called basic feasible solutions. The
simplex method is an algebraic procedure for systematically examining basic feasible solutions.
If an optimal solution exists, the simplex method will identify it. # of basic solution n + mCm
not all basic solutions are feasible.
The simplex procedure for a maximization problem with all constraints consists of the
following steps.
1. Write the LPM in a Standard form: When all of the constraints are written as equalities, the
LP program is said to be in a standard form. We convert the LPM in to a standard form by
applying the slack variables, s, which carries a subscript that denotes which constraint it
applies to. For example, s1 refers to the amount of slack in the first constraint, S2 to the
amount of slack in the second constraint, and so on. When slack variables are introduced to
the constraints, they are no longer inequalities b/c the slack variable accounts, they become
equalities. Further more, every variable in a model must be represented in the objective
function. However, since slack does not provide any real contribution to the objective, each
slack variable is a assigned a coefficient of zero in the objective function.
Slack = Requirement – Production, scruples – Production – Requirement
Taking the microcomputer problem, its standard form is as follows
Z max = 60X1 + 50X2 Z max = 60X1 + 50X2 + 0S1 + 0S2 + 0S3
4X1 + 10X2 100 4X1 + 10X2 + S1 = 100
2X1 + X2 22 2X1 + X2 + S2 = 22
3X1 + 3X2 39 3X1 + 3X2 + S3 = 39
X1, X2 0 All variables 0
(X1, X2, S1, S2, S3 0)
2. Develop the initial tableau
a. List the variables across the top of the table and write the objective function coefficient of
each variables just above it.
b. There should be one row in the body of the table for each constraint. List the slack
variables in the basis column, one per row.
c. In the Cj column, enter the objective function coefficient of zero for each slack variable.
d. Compute values for row Zj.
Cj = Coeff of variable J in the obj function.
e. Computer values for Cj – Zj.
14 | P a g e bj = RHSV of constraint i.
Solution Cj 60 50 0 0 0
Basis X1 X2 S1 S2 S3 RHSV
S1 0 4 10 1 0 0 100 100/4 = 25
S2 0 2 1 0 1 0 22 leaving
S3 0 3 3 0 0 1 39
22/2 = 11
Zj 0 0 0 0 0 0
39/3 = 13
Cj - Zj 60 50 0 0 0
Initial feasible solution
S2 = 22 equating tow
S3 =39 Variables to
X1 = 0 Zero
3. Develop subsequent tables
X = 0 Decision
3.1 Identify the entry variable –variable that has a largest positive value in2 the Cj – Zj row.
3.2 Identify the leaving variable –using the constraint coefficient or substitution
Z = 0 Variable
rates in the
entering variable column divide each one into the corresponding quantity value. However do
not divide by a zero or negative value. The smalls non negative ratio that results indicate
which variable will leave the solution
4. Find unique vectors for the new basic variable using row operations on the pivot element.
-1/2 R21 –4R2new + R1old, -3R2new + R3old
Solution Cj 60 50 0 0 0
Cj = bi/xj (aij)
Basics X1 X2 S1 S2 S3 RHSV
56/8 = 7
S1 0 0 8 1 -2 0 56
X1 60 1 ½ 0 ½ 0 11 11/1/2 = 22
Incoming Variable
15 | P a g e
Solution Cj 60 50 0 0 0 RHSV
basis X1 X2 S1 S2 S3
S1 0 0 0 1 6 -16/3 24
X1 60 1 0 0 1 -1/3 9
X2 50 0 1 0 -1 2/3 4
Zj 60 50 0 10 40/3 740
Opportunity cost
Cj - Zj 0 0 0 -10 -40/3
5. Compute Cj – Zj row
6. If all Cj – Zj Values are zeros and negatives, you have reached optimality
7. If this is not the case (step 6), repeat 2 to 5 until you get optional solution.
“A simplex solution in a maximization problem in optional if the Cj – Zj row consists
entirely of zeros and negative numbers (i.e. there are no positive values in the bottom row.)”
Note: The variables in solution all have unit vectors in their respective columns for the
constraint equations. Further, note that a zero appears in row C – Z in every column whose
variable is in solution, in row C – Z in every column whose variable is in solution, indicating
that its maximum contribution to the objective function has been realized.
Example 2
A manufacture of lawn and garden equipment makes two basic types of lawn mowers; a push
type and a self propelled model. The push type require 9 minutes to assemble and 2 minutes to
package; the self-propelled mover requires 12 minute to assemble and 6 minutes to package.
Each type has an engine. The company has 12hrs of assembly time available, 75 engines, and
5hrs of packing time profits are Birr 70 for the self propelled model and br 45 for the push type
16 | P a g e
Z max = 45X1 + 70 X2
d. Identify constraints
9X1 + 12X2 720 minutes ……assembly time
2X1 + 6X2 300 minutes ……..packing time
X1 + X2 75 engine ………….Engines
X1, X2 0
In summary
Z max = 45X1 + 70X2
S.t. 9X1 + 12X2 720
2X1 + 6X2 300
X1 + 2 75
X1, X2 0
2. a. Write the Lpm in a standard form
Z max = 45X1 + 70X2 + 0S1 + 0S2 + 0S
S.T. 9X1 + 12X2 + S1 = 720
2X1 + 6X2 + S2 = 300
X1 + X2 + S3 = 75
X1 X2, S1, S2, S3 0
b. Develop the initial tableau
Solution C 45 70 0 0 0 RHSV
basis X1 X2 S1 S2 S3
Qij = Bi/aij
S1 0 9 12 1 0 0 720
S2 0 2 6 0 1 0 300 720/12 = 60
S3 0 1 1 0 0 1 75
300/6 = 50 – Leaving
Z 0 0 0 0 0 0
C-Z 45 70 0 0 0 75/1 = 75
entering
17 | P a g e
Solution Basis X1 X2 S1 S2 S3 RHSV
S1 0 5 0 1 -2 0 120
X2 70 1/3 1 0 1/6 0 50
S3 0 2/3 0 0 -1/6 1 25
Z 70/30 70 0 70/6 0 3500
C-Z 65/3 0 0 -70/6 0
Entering
1/5R1, -1/3 R1new + R2old, -2/3R, New + R3 old
C 45 70 0 0 0 Optimal solution
Solution Basis X1 X2 S1 S2 S3 RHSV
X1 = 24units
X1 45 1 0 1/5 -2/5 0 24
X2 70 0 1 -1/15 3/10 0 42 X2 = 42units
S3 0 0 0 -2/15 1/10 1 9 S1 = 0
Z 45 70 13/3 3 0 4020
S2 = 0
C-Z 0 0 -13/3 -3 0
S3 = 9 engine
Z = 4020
9X1 + 12X2 = 720 2X1 + 6X2 = 300 X1 + X2 = 75
X1 0 80 X1 0 150 X1 0 75
X2 60 0 X2 50 0 X2 75 0
18 | P a g e
X2
120
9X1 + 12X2 = 720
100 2X1 + 6S2 = 300
9(150 – 3X2) + 12X2 = 720
80 1450 – 27X2 + 12X2 = 720
730 = 15X2
X2 = 730/15
60 9X1 = 720 – 4 (730/3)
9X1 + 12X2 = 720
E
40
D
C 2X1 + 6X2 = 300
20
Interpretation. The company is advised to produce 24 units of push type mower and 40 units of
self-propelled mowers so as to realize a profit of Br. 4020. in doing so, the company would be
left with unused resource of engine which can be used for other purposes.
19 | P a g e
EXERCISES
1. firm manufactures three products which must be processed through some of or all four
departments. The table below indicates the number of hours a unit of each product
requires in the different departments and the number of pounds of raw materials required.
Also listed are the cost per unit, selling price, and weekly capacities of both work-hours
and raw materials. If the objective is to maximize total weekly profit, formulate the linear
programming model. (Only the model)
Weekly
Product A Product B Product C Availability
Department 1 3 4 2 120 hours
Department 2 2 2 100 hours
Department 3 4 1 80 hours
Department 4 2 3 6 150 hours
Pounds of raw 5 4 3 250 pounds
Material per
unit
Selling price $ 50 $ 60 $ 65
Cost / unit 41 40 43
20 | P a g e
Subject to
20X1 + 30X2 1400
10X1 + 40X2 1200
X1 , X2 0
(Use the graphic method)
Solutions
(1) * Problem: Determine the number of three products (A, B, & C) that must be
produced and sold in order to maximize the total weekly profit of the firm,
given the different limiting factors.
* Constraints:
21 | P a g e
Raw material constraints: 5X1 + 4X2 + 3X3 250
(2) a. * Problem: determining the number of bentwood rocking chairs and bentwood
coffee tables that must be manufactured in order to maximize the total profit,
given the different limiting factors.
* Let, X1 = the number of bentwood rocking chairs that must be manufactured &
sold
X2 = the number of bentwood coffee tables that must be manufactured &
sold
* Objective function: profit maximization
Z max = 40X1 + 32X2
* Constraints
Raw material const. (Rosewood): 40X1 + 20X2 600
Wood working hour const. 4X1 + 10X2 100
Finishing hour constraint 2X1 + 3X2 38
22 | P a g e
2X1 + 3X2 38
X1 , X2 0
Standard form
Z max = 40X1 + 32X2 + OS1 + OS2 + OS3
Subject to:
40X1 + 20X2 + S1 = 600
4X1 + 10X2 + S2 = 100
2X1 + 3X2 + S3 = 38
X1 , X2 ,S1 , S2, S3, 0
Initial Table
Soln. Cj 40 32 0 0 0 Quantity
bases X1 X2 S1 S2 S3 (RHSV) Q/X1
S1 0 40 20 1 0 0 600 15
S2 0 4 10 0 1 0 100 25
S3 0 2 3 0 0 1 38 19
Zj 0 0 0 0 0 0
j = Cj – Zj 40 32 0 0 0
1/40 R1 / -4R1 new + R2 old / / -2R1 new + R3 old
Soln. Cj 40 32 0 0 0 quantity
bases X1 X2 S1 S2 S3 (RHSV) Q/X2
X1 40 1 ½ 1/40 0 0 15 30
S2 0 0 8 –1/10 1 0 40 5
S3 0 0 2 –1/20 0 1 8 4
Zj 40 20 1 0 0 600
j =Cj- Zj 0 12 –1 0 0
1/2 R3 / -1/2R3 new + R1 old / -8R3 new + R3 old
23 | P a g e
Soln. Cj 40 32 0 0 0 (Quantiy)
bases X1 X2 S1 S2 S3 (RHSV)
X1 40 1 0 3/80 0 –1/4 13
S2 0 0 0 1/10 1 –4 8
X2 32 0 1 –1/40 0 ½ 4
Zj 40 32 7/10 0 6 648
j = cj –zj 0 0 –7/10 0 –6
Since, the numbers in j = cj – zj row are all 0 & Negative it shows that this solution
is optimal solution.
X1 = 13 , X2 = 4, S2 = 8 (unused) hours Z max = $ 648
* 2X1 + 3X2 = 38 X1 0 19
X2 12.7 0
24 | P a g e
40X1 + 20X2 = 600
30 (0, 30)
25
20
2X1 + 3X2 = 38 15
(0, 12.7)
4X1 + 10X1 = 100
10 B (4, 10)
C
5
D
(0, 0)
A E(15, 0) (19, 0) (25, 0) X1
0 5 10 15 20 25 30
25 | P a g e
* Point C
4X1 + 10X2 = 100
-2 2X1 + 3X2 = 38
4X1 + 10X2 = 100
-4X1 – 6X2 = -76
4X2 = 24
4 4
X2 = 6
4X1 + 10(6) = 100
4X1 + 60 = 100
4X1 = 100 – 60
4X1 – 40
4 4 X1 = 10
Point D
40X1 + 20X2 = 600 40X1 + 20 (4) = 600
-20 2X1 + 3X2 = 38 40X1 + 80 = 600
40X1 + 20X2 = 600 40X1 = 600 - 80
-40X1 – 60X2 = -760 40X1 = 520
-40X2 = -160 40 40
-40 –40 X1 = 13
X2 = 4
Interpretation
It is advisable for the company to produce 13 units of bentwood rocking chairs and 4 units coffee
tables and maximize its profit to birr 648, by doing so the company may be left with 8 unused
wood working hours, therefore, the company can use these unused hours for other purposes.
(b) * Problem: determine the number of two types of that must be produced by the two
machines (M I & M II) in order to minimize costs of operating the machines.
26 | P a g e
X2 = the number of tiers that must be produced by M II
* Non-negative restrictions X1 , X2 0
Therefore, Z min = 50X1 + 80X2
Subject to:
20X1 + 30X2 1,400
10X1 + 40X2 1,200
X1, X2 0
Solution for Question No. 3 Graphic Method
* 20X1 + 30X2 = 1,400
X1 0 70
X2 46 – 7 0
27 | P a g e
20X1 + 30X2 = 1400 X2
60
50 (0, 46.7)
40
20 B (?)
10
0 (70,0) C (120,0) X1
28 | P a g e
* Point B
20X1 + 30X2 = 1400 in order to Minimize
-2 10X1 + 40X2 = 1200 costs of operating the Machines
20X1 + 30X2 = 1400 M I Has to produce 40 tires
-20X1 + 80X2 = -2400 M II has to produce 20 tires
-50X2 = -1000 Z min = 3600
50 50
X2 = 20
29 | P a g e
1/3 R4 / -R4 New + R3 old / -2R4 new + R1 old
n
Sol Cj 1 1.2 2 0 0 0 0 Quantity
bases X1 X2 X3 S1 S2 S3 S4 (RHSV)
S1 0 0 0 0 1 1/3 0 -2/3 150
X3 2 ½ 0 1 0 ½ 0 0 75
S3 0 1 0 0 0 1/6 1 -1/3 30
X2 1.2 1/2 1 0 0 -1/6 0 1/3 50
Zj 1.6 1.2 2 0 0.8 0 0.4 210
j = Cj - Zj -0.6 0 0 0 -0.8 0 -0.4
since there is no positive number in Aj = Cj – Z raw we can suggest that we reach the
optimum solution therefore, X2 = 50
X3 = 75
S1 = 50
S3 = 30
and Zj = 210
30 | P a g e