Lecture 03
Lecture 03
ME F320/MF F320
2
Two-variable LP
Model (Section 2.1)
3
Reddy Mikks Problem
Reddy Mikks produces both interior and exterior paints from two
raw materials, M1 and M2. The following table provides the basic
data of the problem:
The daily demand for interior paint cannot exceed that for exterior
paint by more than 1 ton. Also, the maximum daily demand for
interior paint is 2 tons. Reddy Mikks wants to determine the
optimum (best) product mix of interior and exterior paints that
maximizes the total daily profit.
4
Mathematical Formulation
All Optimization models consist of three essential
components:
1. Decision variables that we seek to determine.
2. Objective (goal) that we need to optimize
(maximize or minimize).
3. Constraints that the solution must satisfy.
5
Decision variables
Determine the optimum (best) product mix of
interior and exterior paints.
• x1: Daily production of exterior paint (tons)
• x2: Daily production of interior paint (tons)
6
Objective
• Maximize profit (z objective function)
− Profit from exterior paint = 5x1 (thousand) dollars
− Profit from interior paint = 4x2 (thousand) dollars
7
Constraints
• Availability of raw material M1
− 6 tons per ton of exterior paint and 4 tons per ton
of interior paint.
− Usage of raw material M1 = 6x1 + 4x2 tons/day
8
Constraints
• Availability of raw material M2
− 1 tons per ton of exterior paint and 2 tons per ton
of interior paint.
− Usage of raw material M2 = 1x1 + 2x2 tons/day
9
Constraints
• Demand limitation
− Daily production of interior paint cannot exceed
that of exterior paint by more than 1 ton.
𝒙𝟐 − 𝒙𝟏 ≤ 𝟏 Demand constraint
𝒙𝟐 ≤ 𝟐 Demand constraint
10
Constraints
𝒙𝟏 ≥ 𝟎, 𝒙𝟐 ≥ 𝟎 Non-negativity constraints
11
Complete formulation
Maximize:
𝒛 = 𝟓𝒙𝟏 + 𝟒𝒙𝟐 Objective
subject to constraints…
𝟔𝒙𝟏 + 𝟒𝒙𝟐 ≤ 𝟐𝟒 Material constraint
𝟏𝒙𝟏 + 𝟐𝒙𝟐 ≤ 𝟔 Material constraint
𝒙𝟐 − 𝒙𝟏 ≤ 𝟏 Demand constraint
𝒙𝟐 ≤ 𝟐 Demand constraint
𝒙𝟏 ≥ 𝟎, 𝒙𝟐 ≥ 𝟎 Non-negativity constraints
12
Notes
• x1 and x2 that satisfy all five constraints constitute a
feasible solution.
• Otherwise, the solution is infeasible.
• Goal is to find the optimum (the best) feasible solution
that maximizes the total profit.
– Graphical method
– Algebraic generalization
13
Graphical LP
Solution
(Section 2.2)
14
Notes
• For the Reddy Mikks Problem
– Is x1 = 3 and x2 = 1 a feasible solution?
– Is x1 = 4 and x2 = 1 a feasible solution?
15
Graphical LP Solution
Two steps:
1. Determination of the feasible solution space.
2. Determination of the optimum solution from among all the
points in the solution space.
16
Step 1: Feasible Solution Space Determination
𝒙𝟏 ≥ 𝟎, 𝒙𝟐 ≥ 𝟎 Non-negativity constraints
𝒙𝟐
𝒙𝟐 ≥ 𝟎
𝒙𝟏 ≥ 𝟎
𝒙𝟏
17
Step 1: Feasible Solution Space Determination
𝟔𝒙𝟏 + 𝟒𝒙𝟐 ≤ 𝟐𝟒 Material constraint
𝒙𝟐
𝒙𝟐 ≥ 𝟎
𝟔𝒙𝟏 + 𝟒𝒙𝟐 ≤ 𝟐𝟒
𝟔𝒙𝟏 + 𝟒𝒙𝟐 = 𝟐𝟒
𝒙𝟏 ≥ 𝟎
𝒙𝟏
18
Maximize 𝐳 = 𝟓𝐱 𝟏 + 𝟒𝐱 𝟐
19
Maximize 𝐳 = 𝟓𝐱 𝟏 + 𝟒𝐱 𝟐
20
Step 2: Optimum Solution Determination
• Infinite feasible solutions procedure to determine
the optimum
21
22
Step 2: Optimum Solution Determination
Graphical procedure to determine the optimum.
23
Step 2: Optimum Solution Determination
• Optimum solution of an LP, when it exists, is
always associated with a corner point of the
solution space.
24
Z = 6XI + 4X2
25
Step 2: Optimum Solution Determination
• Optimum solution of an LP, when it exists, is
always associated with a corner point of the
solution space.
26
Step 2: Optimum Solution Determination
• Optimum solution of an LP, when it exists, is always
associated with a corner point of the solution space.
• Limits search for optimum from feasible points (infinite) to
corner points (finite).
Corner Point (x1, x2) z
A
B
C
D
E
F
27
Step 2: Optimum Solution Determination
• Optimum solution of an LP, when it exists, is always
associated with a corner point of the solution space.
• Limits search for optimum from feasible points (infinite) to
corner points (finite).
Corner Point (x1, x2) z
A (0, 0) 0
B (4, 0) 20
C (3, 1.5) 21 (MAXIMUM)
D (2, 2) 18
E (1, 2) 13
F (0, 1) 4
28
Step 2: Optimum Solution Determination
• Optimum solution of an LP, when it exists, is
always associated with a corner point of the
solution space.
29
Step 2: Optimum Solution Determination
Another constraint is added to the Reddy Mikks problem:
x1 + x2 ≥ 1, and the problem is changed from
maximization to minimization. Find the optimal solution.
30
x1 + x2 ≥ 1 (7)
Feasible region
31
x1 + x2 ≥ 1 (7)
Z = 5XI + 4X2
32
Diet Problem (Example 2.2-2)
Ozark Farms uses at least 800 lb of special feed daily. The
special feed is a mixture of corn and soybean meal with
the following compositions:
34
Diet Problem (Example 2.2-2)
Minimize
z = 0.3x1 + 0.9x2
Subject to constraints
x1 + x2 ≥ 800
0.21x1 − 0.30x2 ≤ 0
0.03x1 − 0.01x2 ≥ 0
x1 ≥ 0, x2 ≥ 0
35
Minimize z = 0.3x1 + 0.9x2
Feasible region
36
Minimize z = 0.3x1 + 0.9x2
z = $ 1350
Feasible region
z = $ 900
x1 = 470.6 lb
x2 = 329.4 lb
z = $ 437.64
37
Maximize z = 5x1 + 7 x2
Subject to x2
2x1− x2 ≤ −1
−x1 + 2x2 ≤ −1
x1, x2 ≥ 0
x1
No feasible solution
38
Maximize z = x1 + x2
Subject to x2
−x1 + 3x2 ≥ 30
−3 x1 + x2 ≤ 30
x1, x2 ≥ 0
z=70
z=50
z=30
z=20
x1
Unbounded solution
39
Summary
• Usually a LPP will have a unique optimal solution.
• The (unique) optimum solution occurs at one of the
“corners” points.
40
Convex Sets and
LPP
(Section 7.1)
41
Outline
• Prove that optimum of a LPP lies at corner
points.
– Relationship between LPP and convex sets.
– Definition of a convex set.
– Definition of vertex/extreme/corner points.
– Definition of Convex Linear Combination (CLC).
– Proof: optimum of a LPP occurs at corner points.
42
Relationship between LPP and convex sets
The set of points satisfying all the constraints and non-
negativity criteria of a LPP, is a convex set.
43
Convex set
• Convex set: if the line segment joining any two
distinct feasible points also falls in the set.
44
Convex set
• Which of the following are convex sets?
A B C
45
Convex set: line segment
• How do you write the equation of a line segment
between two points X (x1, x2) and Y (y1, y2) in two-
dimensions (R2)?
46
Convex set: line segment
• How do you write the equation of a line segment
between two points X (x1, x2) and Y (y1, y2) in two-
dimensions (R2)?
48
Example: convex set
Show that the set:
S = {(x, y)| x + y ≤ 1, x ≥ 0, y ≥ 0}
is convex.
Is the non-negativity condition essential for the proof ?
49
Example: convex set
Show that the set: S = {(x, y)| x + y ≤ 1} is convex.
(0, 1)
(1, 0) x
50
Example: convex set
Show that the set: S = {(x, y)| x + y ≤ 1} is convex.
⇒ L = (1 − α)(ax , ay ) + α(bx , by )
⇒ L = (lx , ly )=((1 − α)ax +αbx , (1 − α)ay +αby ))
lx + ly = (1 − α)(ax +ay ) + α(bx +by ) ≤ 1 − α+α
⇒ lx + ly ≤ 1 ⇒ L ϵ S
51