Lecture 2 (Introduction To LPP)
Lecture 2 (Introduction To LPP)
2
Example 1
3
Ex. 1 - continued
Each week ABC can obtain:
All needed raw material.
Only 100 finishing hours.
Only 80 carpentry hours.
Demand for the product ‘B’ is unlimited.
At most 40 units of product ‘A’ are bought in market
each week.
ABC wants to maximize weekly profit.
Formulate a mathematical model of ABC’s situation
that can be used to maximize weekly profit.
4
Example 1: Solution
The ABC solution model incorporates the
characteristics shared by all linear programming
problems.
Decision variables should completely describe the
decisions to be made.
x1 = number of product ‘A’ produced each week
x2 = number of product ‘B’ produced each week
The decision maker wants to maximize (usually
revenue or profit) or minimize (usually costs) some
function of the decision variables. This function to
maximized or minimized is called the objective
function.
5
Ex. 1 - Solution continued
ABC’s weekly profit can be expressed in terms of
the decision variables x1 and x2:
Weekly profit = 3x1 + 2x2
Thus, ABC’s objective is to chose x1 and x2 to
maximize weekly profit. The variable z denotes the
objective function value of any LP.
The objective function is
Maximize z = 3x1 + 2x2
The coefficient of an objective function variable is
called an objective function coefficient.
6
Ex. 1 - Solution continued
As x1 and x2 increase, ABC’s objective function
grows larger.
For ABC, the values of x1 and x2 are limited by the
following three restrictions (often called
constraints):
Each week, no more than 100 hours of finishing time may
be used. (2 x1 + x2 ≤ 100)
Each week, no more than 80 hours of carpentry time may
be used. (x1 + x2 ≤ 80)
Because of limited demand, at most 40 units of product
‘A’ should be produced. (x1 ≤ 40)
7
General form of L.P.P.
n
Optimize, Z ci xi Maximize, Z = 3x1 + 2x2
i 1
Subject to (w.r.t.)
w.r.t
2 x1 + x2 ≤ 100
n
a
x1 + x2 ≤ 80
x b j (j 1,2,3,..., m)
ji i x1 ≤ 40
i 1
8
General form of L.P.P.
n
Optimize, Z ci xi
i 1 Optimize, Z C X
w.r.t w.r.t.
n
a ji xi b j (j 1,2,3,..., m) Amn X b
i 1
and X 0
and xi 0 (i 1,2,3,..., n)
10
A linear programming problem (LP) is an
optimization problem for which we do the
following:
Attempt to maximize (or minimize) a linear function
(called the objective function) of the decision
variables.
The values of the decision variables must satisfy a
set of constraints. Each constraint must be a linear
equation or inequality.
A sign restriction is associated with each variable.
For any variable xi, the sign restriction specifies
either that xi must be nonnegative (xi ≥ 0) or that xi
may be unrestricted in sign.
11
Assumptions of Linear Programming Problem
12
Ex. 1 – Graphical Solution
13
Graphical Solution to a Two-Variable LP Problem
X2
-1 1 2 3 4
-1
14
The set of points satisfying the ABC LP is bounded by the five
sided polygon ODGFE. Any point on or in the interior of this
polygon (the shade area) is in the feasible region.
X2
B(0,100)
(0,80) D
Max value of z = 180
x1 = 40
(20,60)
G
x1 + x2 = 80
F (40,20)
15
The feasible region of an LP is the set of all
points satisfying all the LP’s constraints and
sign restrictions.
For a maximization problem, an optimal
solution to an LP is a point in the feasible
region with the largest objective function
value.
Similarly, for a minimization problem, an optimal
solution is a point in the feasible region with the
smallest objective function value.
16
Having identified the feasible region for the LP, a
search can begin for the optimal solution which will
be the point in the feasible region with the largest
z-value.
Coordinates Z Value
O (0,0) 0
D (0,80) 160
G (20,60) 180 (Max)
F (40,20) 160
E (40,0) 120
17
A constraint is binding if the left-hand and
right-hand side of the constraint are equal when
the optimal values of the decision variables are
substituted into the constraint.
In the ABC Inc.’s LP, the finishing and carpentry
constraints are binding.
A constraint is nonbinding if the left-hand side
and the right-hand side of the constraint are
unequal when the optimal values of the decision
variables are substituted into the constraint.
In the ABC Inc.’s LP, the demand constraint for
product ‘A’ is nonbinding since at the optimal solution
(x1 = 20), x1 < 40.
18
A set of points S is a convex set if the line
segment jointing any two pairs of points in S is
wholly contained in S.
For any convex set S, a point P in S is an extreme
point if each line segment that completely in S
and contains the point P, has P as an end point of
the line segment.
Extreme points are sometimes called corner
points, because if the set S happens to be a
polygon, the extreme points would be the vertices,
or corners, of the polygon.
The feasible region for the ABC Inc.’s LP will be a convex
set with finite number of extreme points and that an LPP
that has an optimal solution has an extreme point that is
optimal.
19
TATA Auto
20
Ex. 2: continued
Each Dance Reality Episode is seen by 7 million
high income women and 2 million high-income
men and costs Rs. 50,000 per minute.
Each Cricket Match is seen by 2 million high-
income women and 12 million high-income
men and costs Rs. 100,000 per minute.
TATA Auto would like for commercials to be
seen by at least 28 million high-income women
and 24 million high-income men.
Use LP to determine how TATA Auto can meet
its advertising requirements.
21
Example 2: Solution
TATA Auto must decide how many 1-minute ads in dance
reality show and cricket match should be purchased, so
the decision variables are
x1 = number of 1-minute ads in dance reality show
x2 = number of 1-minute ads in a cricket match
TATA Auto wants to minimize total advertising cost.
Objective functions is
Min z = 50 x1 + 100x2
Constraints are
Commercials must reach at least 28 million high-income
women. (7x1 + 2x2 ≥ 28)
Commercials must reach at least 24 million high-income
men. (2x1 + 12x2 ≥ 24)
The sign restrictions are necessary, so x1, x2 ≥ 0.
22
Example 2: Solution
Min z = 50 x1 + 100x2
w.r.t
7x1 + 2x2 ≥ 28
2x1 + 12x2 ≥ 24
and x1, x2 ≥ 0.
23
Solution continued
To solve this LP graphically begin by graphing
the feasible region.
X2
14 B
10
Feasible
8 Region
(unbounded)
6
z = 600
4 z = 320
High-income men constraint
2 E
D
A C
2 4 6 8 10 12 14 X1
24
Solution continued
Like the previous LP, This LP has a convex
feasible region.
The feasible region for the problem, however,
contains points for which the value of at least
one variable can assume arbitrarily large
values.
Such a feasible region is called an unbounded
feasible region.
25
Solution continued
Since TATA Auto wants to minimize total advertising
costs, the optimal solution to the problem is the
point in the feasible region with the smallest z value.
26
Special Cases
The ABC and TATA Auto LPs each had a unique
optimal solution.
Some types of LPs do not have unique solutions.
Some LPs have an infinite number of solutions
(alternative or multiple optimal solutions).
Some LPs have no feasible solutions (infeasible LPs).
Some LPs are unbounded: There are points in the
feasible region with arbitrarily large (in a maximization
problem) z-values.
28
For a minimization problem, an LP is unbounded if there
are points in the feasible region with arbitrarily small z-
values.
Every LP with two variables must fall into one of the
following four cases.
The LP has a unique optimal solution.
The LP has alternative or multiple optimal solutions: Two or
more extreme points are optimal, and the LP will have an
infinite number of optimal solutions.
The LP is infeasible: The feasible region contains no points.
The LP unbounded: There are points in the feasible region
with arbitrarily large z-values (max problem) or arbitrarily
small z-values (min problem).
29