2lp Modelinggraph Soln
2lp Modelinggraph Soln
Programming
and
Graphical Solution
Steps in formulating Linear
Programming (LP) Models
1. Understand the problem.
2. Identify the decision variables
3. State the objective function as a
linear combination of the decision
variables.
4. State the constraints as linear
combinations of the decision
variables.
5. Identify any upper or lower bounds
on the decision variables.
LP Model Formulation: A Maximization
Example 1 – Product mix problem - Beaver
Creek Pottery Company (1 of 4)
Beaver Creek Pottery Company employs skilled
artisans to produce clay bowls and mugs. The
two resources used by the company are special
pottery clay and skilled labor. Given these
limited resources, the company desires to know
how many bowls and mugs to produce each day
in order to maximize profit.
This is generally referred to as a product mix
problem.
LP Model Formulation
A Maximization Example 1 (2 of 4)
Resource Requirements
Bowl 1 4 40
Mug 2 3 50
Non-Negativity x1 0; x2 0
Constraints:
LP Model Formulation
A Maximization Example 1 (4 of 4)
Example: x1 = 5 bowls
x2 = 10 mugs
Z = $40x1 + $50x2 = $700
Example: x1 = 10 bowls
x2 = 20 mugs
Z = $40x1 + $50x2 = $1400
Aqua-Spa Hydro-Lux
Pumps 1 1
Labor 9 hours 6 hours
Tubing 12 feet 16 feet
Unit Profit $350 $300
There are 200 pumps, 1566 hours of labor, and
2880 feet of tubing available.
Formulating LP Model: Blue Ridge Hot Tubs
1. Understand the problem
2. Identify the decision variables
X1=number of Aqua-Spas to produce
X2=number of Hydro-Luxes to produce
3. State the objective function as a linear combination of the decision variables.
MAX: 350X1 + 300X2
4. State the constraints as linear combinations of the decision variables
1X1 + 1X2 <= 200 } pumps
9X1 + 6X2 <= 1566 } labor
12X1 + 16X2 <= 2880 } tubing
5. Identify any upper or lower bounds on the decision variables.
X1 >= 0 , X2 >= 0
Summary of the LP Model for Blue
Ridge Hot Tubs
MAX Z = 350X1 + 300X2
S.T.
1X1 + 1X2 <= 200
9X1 + 6X2 <= 1566
12X1 + 16X2 <= 2880
X1 >= 0
X2 >= 0
Example 3:Wershon Suit Company
• Profit, $/unit 10 15
• Material,
Square yards 2 5 50
• Person Hours 4 2 36
• Variable Definition
R, D 0 (Nonnegativity)
Example 5: Transportation Problem
To Store
From
Warehouse A B C
1 $16 $18 $11
2 14 12 13
3 13 15 17
Model Development
The model for this problem consists of nine decision variables, representing the
number of television sets transported from each of the three warehouses to each of
the three stores:
xij = number of television sets shipped from warehouse i to store j
where i = 1, 2, 3, and j = A, B, C
Min z = x1 + x2 + x3 + x4 + x5 + x6
(Total number of officers employed)
s.t. x6 + x1 5 (12am-4am)
x1 + x2 7 (4am-8am)
x2 + x3 15 (8am-noon)
x3 + x4 7 (noon-4pm)
x4 + x5 12 (4pm-8pm)
x5 + x6 9 (8pm-12am)
xi 0, i = 1, ..., 6 (Nonnegativity)
Example 7: An Investment Example
Kathleen Allen, an individual investor, has $70,000 to divide among several
investments. The alternative investments are municipal bonds with an 8.5% annual
return, certificates of deposit with a 5% return, treasury bills with a 6.5% return, and a
growth stock fund with a 13% annual return. The investments are all evaluated after 1
year. Kathleen wants to know how much to invest in each alternative in order to
maximize the return.
The following guidelines have been established for diversifying the investments and
lessening the risk perceived by the investor:
1. No more than 20% of the total investment should be in municipal bonds.
2. The amount invested in certificates of deposit should not exceed the amount
invested in the other three alternatives.
3. At least 30% of the investment should be in treasury bills and certificates of
deposit.
4. To be safe, more should be invested in CDs and treasury bills than in
municipal bonds and the growth stock fund, by a ratio of at least 1.2 to 1.
Kathleen wants to invest the entire $70,000.
An Investment Example - Model
Decision Variables: x1 = amount ($) invested in municipal bonds
x2 = amount ($) invested in certificates of deposit
x3 = amount ($) invested in treasury bills
x4 = amount ($) invested in growth stock fund
The Objective Function: Maximize Z = $0.085x1 + 0.05x2 + 0.065x3 + 0.130x4
Constraints: x1 ≤$14,000 Model Summary
x2 ≤x1 + x3 + x4
x2 + x3 ≥$21,000
[(x2 + x3)/(x1 + x4)] ≥1.2
x1 + x2 + x3 + x4 = $70,000
Linear Programming (LP)
General Description
Problem: to determine decision variables
Objective: to maximize or minimize an objective
function
Restrictions: represented by constraints
Solution methods: graphical, simplex, computer
General Form of a
Linear Programming (LP) Problem
X1 , X2 …… Xn ≥ 0
Note: If all the functions in the model are linear, the problem is a Linear
Programming (LP) problem
Graphical Solution of LP Models
X2 is mugs
X1 is bowls
Figure: Coordinates for graphical analysis
Labor Constraint
Graphical Solution of Maximization Model (2 of
11)
Figure: Alternative
objective function lines
for profits Z of $800,
$1,200, and $1,600
Optimal Solution
Graphical Solution of Maximization Model (9 of
11)
Decision Variables:
x1 = bags of Super-gro
x2 = bags of Crop-quick
Model Constraints:
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (non-negativity constraint)
Constraint Graph – Minimization (3 of 6)