Unit Three
Unit Three
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
3.1 Introduction
Dear students! 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 of:
Profit
Revenue
sales
market share
or minimization of:
Cost
time
distance
or a certain objective 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.
3.2 Linear Programming Models
LP models are mathematical representation of LP problems. Some models have a specialized
format where as others have a more generalized format. Despite this, LPMs have certain
characteristics in common. Knowledge of these characteristics enables us recognize problems
that are amenable to a solution using LP models and to correctly formulate a LP model. The
characteristics can be grouped into two categories: Components and Assumptions. The
components relate to the structure of a model, where as the assumptions describe the
conditions under which the model is valid.
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
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
numerical value of each constraint.
The components are the building blocks of a LP model. We can better understand their
meaning by examining a simple LP model as follows.
Example:
Maximize:
Maximize: 4X1 + 7X2 + 5X3 (profit)… objective function subject to
2X1 + 3X2 + 6X3 ¿ 300 labor hrs
System
5X1 + 4X3 ¿ 200 raw materials. Constraints
3X1 + 5X2 + 2X3 ¿ 360
X1 = 30 Individual
¿ 40 Constraints
X1 – qty of product 1 X2
Decision
Variable
X3 qty of product 3
c) Certainty: The parameters are known and constant. The certainty requirement involves
two aspects of LP models. The constraint equations do not change.
(1) With respect to model parameters (i.e. the numerical values) –It 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 known and constant.
(2) All the relevant constraints identified and represented in the model are as they are.
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
Profit per unit $ 60 $ 50
Assembly time per unit 4hrs 10hrs
Inspection time per unit 2hrs 1hr
Storage space per unit 3 cubic ft 3 cubic ft
The manager also has acquired information on the available company resources. These
(weekly) amounts are:
Resource Resource available
Assembly time 100hrs
Inspection time 22hrs
Storage space 39cubic feet
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 produced, all of the out put can be sold.
Solution
Step 1: Problem definition
- To determine the no. of two types of microcomputers to be produced (and sold) per
week so as to maximize the weekly profit, given the restrictions.
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 variables, so the graphic approach is not used to solve these
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 to consider the extreme points
because one of those must be optional. Further, determining the value of the objective
function at each corner point, 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 points represent interactions of constraints.
Determine the values of the decision variables at each corner point. Some times, this can
be done by impaction (observation) and sometimes by simultaneous equation.
Substitute the value of the decision variables at each corner point into the objective
function to obtain its value at each corner point.
After all corner points have been so evaluated, select the one with the highest or lowest
value depending on the optimization case.
COORDINATES
VALUE OF THE OBJECT
CORNER X1 X2 DETERMINED
FUNCTION
POINTS BY Z=60X1 + 50X2
O 0 0 OBSERVATION 0BIRR
A 0 22 OBSERVATION 1100 BIRR
B 11 0 OBSERVATION 660 BIRR
C 13 0 OBSERVATION 780 BIRR
D 25 0 OBSERVATION 1500 BIRR
E 0 10 OBSERVATION 500 BIRR
F 0 13 OBSERVATION 650 BIRR
G 5 8 SIMULTANEOUS 700 BIRR
H 9 4 Simultaneous 740 BIRR
I 5 12 Simultaneous 900 BIRR
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 resource 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.)
O 0 0 Observation
A 0 9.67 Observation 77.3 birr
B 5 3 Simult. equation 49 birr
C 14 0 Observation 70 birr
D 7.25 0 Observation 145 birr
E 0 4.67 Observation 70.05 birr
Available X1=9 X2=4 Available to use
Time
Assembly Time 100hr 4(9) + 10(4) = 76 100-76=24hr
Inspection Time 22hr 2(9) + 1(4) = 22 22-22=0hr
Storage 39sq.feet 3(9) + 3(4) = 39 39-39=0hr
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.
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; optimal
solutions will occur at these point of the feasible solution space; some will be outside of the
feasible solution space. Hence, not every solution will be a feasible solution. Solutions which
represent in fasseetwim 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, S 1 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 assigned a coefficient of zero in the
objective function.
Slack = Requirement – Production,
Surplus = Production – Requirement
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
leaving
S2 0 2 1 0 1 0 22 22/2 = 11
39/3 = 13
S3 0 3 3 0 0 1 39
Zj 0 0 0 0 0 0
Cj - Zj 60 50 0 0 0
Initial feasible solution
S1 = 100 Obtained by
Entering variable S2 = 22 equating tow
S3 =39 Variables to
X1 = 0 Zero
X2 = 0 Decision
Z = 0 Variable
Incoming Variable
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 mower per unit.
Required:
1. a. To determine how many units of each type of mower to produce so as to maximize
profit.
b. Let X1 be push type mower
X2 be self propelled mower
c. Determine the objective function
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
720/12 = 60
S2 0 2 6 0 1 0 300
300/6 = 50 – Leaving
S3 0 1 1 0 0 1 75 75/1 = 75
Z 0 0 0 0 0 0
C-Z 45 70 0 0 0
entering
Entering
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
40
E
D
20
C 2X1 + 6X2 = 300
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.
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
3. Use the three steps graphical proceder to find the optimum , as required , assuming x
≥0 and y≥ 0 :
a) Subject to 4x + 3y ≤ 24.
x + 2y ≤ 11.
Find өmax if:
a) ө= x + y b) ө= x + 3y c) ө= 3x + y d) ө= 2x + 1.5y
b) Subject to x + y ≤ 30
x + 2y ≤ 22
2x + y ≤ 2
x ≤4
Find өmax if:
a) ө= 5x + 8y b) ө= 4x -y c) ө= -2x + 7y d) ө= 5x + 10y
c) Subject to 4x + 5y ≥ 30
3x + 2y ≥ 19.
Find өmin if:
a) ө= 2x + 8y b) ө= 4x + 2y c) ө= 2x + 2y d) ө= 8x + 10y
4) Suppose that a Steel Company manufactures two kinds of wrought-iron rails: Model E, the
elegant, and Model D the Distinctive. Model E rails sell for $ 59 and cost $50 to make,
whereas Model D rails sell for $ 48 and costs $41 to make. To make one Model E rails
requires 2 hours on Machine A, 1 hour on Machine B and 4 hours on Machine C. On the
other hand, to make one Model D rails requires 1 hours on Machine A, 1 hour on Machine B
and 4 hours on A , 2 hours on B, and 5 hour on C. Production scheduling indicates that
during the coming week Machine A will be available for at most 30 hours, Machine for at
most 24 hours, and Machine C for at most 72 hours. Find the number of each kind of rail to
be made in the coming week in order for the company to maximize its profit. What is this
maximum profit? At maximum which machine, if any, are not fully utilized?