Or CH 3
Or CH 3
Or CH 3
Linear programming
1
Learning Objectives
Define and explain LP
Explain the basic assumption LP
Describe merits and limitation LP
Understand the application areas of LP
Identify basic steps LP formulation
Be able to formulate LP for various problems.
2
3.1. Basic Concepts of Linear Programming
3
Basic Concepts of Linear Programming …cont’d
4
Basic Concepts of Linear Programming …cont’d
5
Application of LP
Product-mix problems.
6
Application of LP…cont’d
Moreover, Some of the major application areas to which
LP can be applied are:
Work scheduling
Production planning & Production process
Capital budgeting
Financial planning
Blending (e.g. Oil refinery management)
Farm planning
Distribution
7
Common properties of LP
cost minimization).
1.Objective
2.Decision variables
3.Constraints
4.Parameters
9
basic assumptions in LP
Proportionality:
The contribution to the objective function from each
decision variable is proportional to the value of the
decision variable.
Additivity:
• The contribution to the objective function for any
decision variable is independent of the values of the other
decision variables
10
Assumptions… cont’d
Divisibility.
• Variables may be assigned fractional
values. i.e.; they need not necessarily
always be in whole number. If a fraction of a
product cannot be produced, an integer
programming problem exists.
• Thus, the continuous values of the
decision variables and resources must be
permissible in obtaining an optimal solution.
11
Assumptions… cont’d
Certainty.
– It is assumed that conditions of certainty exist
i.e.; all the relevant parameters or coefficients in
the Linear Programming model are ful1y and
completely known and that they don't change during
the period. However, such an assumption may not
hold good at all times.
Finiteness. LP assumes the presence of a finite
number of activities and constraints without
which it is not possible to obtain the best or the
optimal solution.
12
13
Merits and limitation LP
• Following are certain advantages of linear programming:
14
Merits and limitation LP….cont’d
15
Merits and limitation LP….cont’d
16
Merits and limitation LP….cont’d
17
Merits and limitation LP….cont’d
2. While solving an LP model, there is no guarantee that we
will get integer valued solutions.
For example, in finding out how many men and
machines would be required to perform a particular job, a
non-integer valued solution will be meaningless.
Rounding off the solution to the nearest integer will not
yield an optimal solution.
In such cases integer programming is used to ensure
integer value to the decision variables. 18
Structure of LPM
19
Cont’d…
Where:
• (< = >) means any of the three signs may be there:
• Optimize means maximize or minimize objective
function
• All constraints are equations except for non-negativity
restrictions which are inequalities
• The right hand side (RHS) of each constraints are non-
negative
20
• Inequality constraints can be changed to equality by adding
or subtracting the LHS of each constraint by non-negative
variable i.e., a slack variable S1 is added to LHS of
variable
21
Linear Programming problem Formation
Steps in Formulating a Linear Programming Model:
Step I: Identification of the decision variables.
The decision variables (parameters) having a bearing on the decision at
hand shall first be identified, and then expressed or determined in the
form of linear algebraic functions or in equations
a) Express each constraint in words. For this first see whether the
constraint is of the form ≥ (at least, as large as), or of the form ≤ (no
larger than) or = (exactly equal)
available are: 200 hours of M1 and 400 hours of M2 respectively. Time in hours
required for producing a chair and a table on both the machines is as follows:
Time in hour
Machine Table Chair
M1 7 4
M2 5 5
Profit from the Sale of table is Birr 40 and that of a chair is Birr 30
25
Solution… cont’d..
b. Total time on machine M2 cannot exceed 400 hour
• (Since profit per unit from a table and a chair is Birr 40 & Birr.
30 respectively).
26
Solution…cont’d
• Presenting the problem as LPP, the given problem can
now be formulated as a linear programming model as
follows:
Maximize Z
Subject to:
Further;
27
Example :2
XYZ manufactures two types of wooden toys: soldiers and trains. A soldier
sells for 27 birr and uses 10 birr worth of raw materials, and variable with
overhead cost is 14 birr. A train sells for 21 birr and uses 9 birr worth of raw
materials, and variable with overhead cost is 10 birr. They need two types
of skilled carpentry and finishing. A soldier requires 2 hrs of finishing labor
and 1 hr of carpentry labor. A train requires 1 hr of finishing and 1 hr of
carpentry labor . The company has 100 finishing hours and 80 carpentry
hours in a week. Demand for trains is unlimited, but at most 40 soldiers are
bought each week. Formulate mathematical model that can be used to
maximize profit.
28
Decision Variables
29
Objective Function
Maximize z=3x1+2x2
Constraints
• Constraint 1: Each week, no more than 100 hours
of finishing time may be used.
• Constraint 2: Each week, no more than 80 hours of
carpentry time may be used.
• At most 40 soldiers should be produced each week
• 2x1 +x2 ≤ 100
• x1 +x2 ≤ 80
• x1 ≤ 40
30
Sign Restrictions
• x1>=0
• x2>=0
31
Method for solving LPP
32
Graphical Method of solving Linear Programming Problems
33
Graphical Method of solving LP P….cont’d
Steps in graphic solution method:-
1. Step I: Defining the problem.
Formulate the problem mathematically. Express it in
terms of several mathematical constraints & an
objective function.
The objective function relates to the optimization
aspect, i.e. Maximization or minimization
Criterion.
34
Graphical Method of solving LP P….cont’d
36
Graphical Method of solving LP P….cont’d
Step III Locate the solution space.
Solution space or the feasible region is the
graphical area which satisfies all the constraints
at the same time.
Such a solution point (x, y) always occurs at the
corner Points of the feasible Region and the
feasible region is determined as follows:
37
Graphical Method of solving LP P….cont’d
38
Graphical Method of solving LP P….cont’d
Step IV : Selecting the graphic solution technique.
Select the appropriate graphic technique to be used for
generating the solution. There are two graphic techniques
to find solution;
– Corner Point Method and
43
Example
• Rift Valley University Wishes to purchase a maximum of 3600
units of two types of product, A & B are available in the market.
Product A occupies a space of 3 cubic feet & cost Birr 9
whereas B occupies a space of 1 cubic feet & cost Birr 13 per
unit. The budgetary constraints of RVU do not allow spending
more than Birr 39,000. The total availability of space in RVU
good own is 6000 cubic feet. Profit margin of both the product
A & B is Birr 3 & Birr 4 respectively.
44
Example
45
Example: Solution
46
47
48
49
50
Step III Finding feasible region by plotting the graph Always
keep in mind two things: -
51
X2
52
• Step IV. Find the optimal solution by the corner point method. At
corner points (O, A, B, C), find the profit value from the objective
function. Those points which maximize the profit are the optimal
point.
53
In order to get the value of point B apply simultaneous equation by taking the two intersection lines. Solve the point .
54
55
Simplex Method
56
Standard forms of Linear Programming (LP) problems
58
59
60
61
62
63
The major steps and activities to solve LP model by using simplex
method
64
The major steps and activities to solve LP model by using simplex method…
66
The major steps and activities to solve LP model by using simplex method…
69
The major steps and activities to solve LP model by using simplex method …
70
The major steps and activities to solve LP model by using simplex method…
71
The major steps and activities to solve LP model by using
simplex method…cont’d
72
The major steps and activities to solve LP model by using
simplex method…
73
The major steps and activities to solve LP model by
using simplex method…
74
The major steps and activities to solve LP model by
using simplex method…
75
Simplex algorism (Maximization Case)
76
Example
77
78
Example.. cont’d
79
Formulate as a linear programming model and find
out the optimal units of quick & tuff to be produced
so as to maximize the profits.
80
Solution
Solution
Step I: List the objective & constraint equations.
Step II: Introduce the slack variables
Step III: Arrange in the form of initial table.
Step IV: Find out the profit-margins from given
sales price.
Step V: Generate solutions.
81
Solution
The detailed solutions are as under:
Step I :List the objective & constraint equations
82
How to calculate the Profit Margin?
84
Solution …cont’d
85
Solution …cont’d
86
Solution …cont’d
88
Solution …cont’d
89
Solution …cont’d
90
Solution …cont’d
91
Solution …cont’d
92
Solution …cont’d
93
Solution …cont’d
94
Solution …cont’d
95
Solution …cont’d
96
Solution …cont’d
97
Solution …cont’d
98
Solution …cont’d
99
Solution …cont’d
100
Solution …cont’d
101
Solution …cont’d
102
Solution …cont’d
103
104