LP: Model Formulation & Graphical Solution
LP: Model Formulation & Graphical Solution
1
MODEL COMPONENTS
Decision variables - mathematical symbols representing levels
of activity of a firm.
Objective function - a linear mathematical relationship
describing an objective of the firm, in terms of decision
variables - this function is to be maximized or minimized.
Constraints – requirements or restrictions placed on the firm by
the operating environment, stated in linear relationships of the
decision variables.
Parameters - numerical coefficients and constants used in the
objective function and constraints.
2
MAXIMIZATION PROBLEM
A MAXIMIZATION PROBLEM (1 OF 4)
Product mix problem - Beaver Creek Pottery Company
How many bowls and mugs should be produced to maximize
profits given labor and materials constraints?
Product resource requirements and unit profit:
Resource Requirements
Bowl 1 4 40
Mug 2 3 50
3
A MAXIMIZATION PROBLEM (2 OF 4)
A MAXIMIZATION PROBLEM (3 OF 4)
Decision x1 = number of bowls to produce per day
Variables: x2 = number of mugs to produce per day
Non-
Non-Negativity
Constraints: x1 ≥ 0; x2 ≥ 0
4
A MAXIMIZATION PROBLEM (4 OF 4)
Complete Linear Programming Model:
FEASIBLE SOLUTION
A feasible solution does not violate any of the
constraints:
Example:x1 = 5 bowls
x2 = 10 mugs
Z = $40x1 + $50x2 = $700
5
INFEASIBLE SOLUTION
A infeasible solution violates at least one of the
constraints:
Example: x1 = 10 bowls
x2 = 20 mugs
Z = $40x1 + $50x2 = $1400
6
GRAPHICAL SOLUTION: COORDINATE AXES
X2 is mugs
X1 is bowls
1x1 + 2x2 ≤ 40
when x1 = 0, x2 = 20
when x2 = 0, x1 = 40
7
1x1 + 2x2 ≤ 40
8
GRAPHICAL SOLUTION: FEASIBLE SOLUTION
R → Feasible Solution
S → Feasible only to Clay
T → Infeasible Solution
9
GRAPHICAL SOLUTION: OPTIMAL SOLUTION
COORDINATES
Corner Points X1 X2
A 0 20
B 24 8
C 30 0
10
SLACK VARIABLES
Standard form requires that all constraints be
in the form of equations (equalities).
A slack variable is added to a ≤ constraint
(weak inequality) to convert it to an equation
(=).
A slack variable typically represents an unused
resource.
A slack variable contributes nothing to the
objective function value.
Standard Form:
Maximize Z = $40x1 + $50x2 + 0s1 + 0s2
subject to: 1x1 + 2x2 + s1 = 40
4x2 + 3x2 + s2 = 120
x1, x2, s1, s2 ≥ 0
11
Solution Points A, B, and C with Slack
MINIMIZATION PROBLEM
12
A MINIMIZATION PROBLEM (1 OF 5)
Two brands of fertilizer available - Super-gro, Crop-quick.
Field requires at least 16 pounds of nitrogen and 24 pounds of
phosphate.
Super-gro costs $6 per bag, Crop-quick $3 per bag.
Problem: How much of each brand to purchase to minimize
total cost of fertilizer given following data ?
Chemical Contribution
Nitrogen Phosphate
Brand
(lb/bag) (lb/bag)
Super-gro 2 4
Crop-quick 4 3
A MINIMIZATION PROBLEM (2 OF 5)
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)
13
A MINIMIZATION PROBLEM (3 OF 5)
A MINIMIZATION PROBLEM (4 OF 5)
14
A MINIMIZATION PROBLEM (5 OF 5)
SURPLUS VARIABLES
A surplus variable is subtracted from a ≥ constraint to
convert it to an equation (=).
A surplus variable represents an excess above a
constraint requirement level.
A surplus variable contributes nothing to the
calculated value of the objective function.
Subtracting surplus variables in the farmer problem
constraints:
2x1 + 4x2 - s1 = 16 (nitrogen)
4x1 + 3x2 - s2 = 24 (phosphate)
15
SURPLUS VARIABLES CONTINUED
16
MULTIPLE OPTIMAL SOLUTIONS
INFEASIBLE PROBLEM
17
UNBOUNDED PROBLEM
LP PROBLEM
18
PROBLEM STATEMENT
Recipe requirements:
MODEL FORMULATION
Step 1:
Identify decision variables.
x1 = lb of chicken in mixture
x2 = lb of beef in mixture
Step 2:
Formulate the objective function.
Minimize Z = $3x1 + $5x2
where Z = cost per 1,000-lb batch
$3x1 = cost of chicken
$5x2 = cost of beef
19
MODEL FORMULATION
Step 3:
Establish Model Constraints
x1 + x2 = 1,000 lb
x1 ≥ 500 lb of chicken
x2 ≥ 200 lb of beef
x1/x2 ≥ 2/1 or x1 - 2x2 ≥ 0
x1, x2 ≥ 0
The Model: Minimize Z = $3x1 + 5x2
subject to: x1 + x2 = 1,000 lb
x1 ≥ 50
x2 ≥ 200
x1 - 2x2 ≥ 0
x1,x2 ≥ 0
GRAPHICAL SOLUTION
20
SOLUTION
Solve the following model
graphically:
Maximize Z = 4x1 + 5x2
subject to: x1 + 2x2 ≤ 10
6x1 + 6x2 ≤ 36
x1 ≤ 4
x1, x2 ≥ 0
SOLUTION
21
SOLUTION
Maximize Z = 4x1 + 5x2
subject to: x1 + 2x2 ≤ 10
6x1 + 6x2 ≤ 36
x1 ≤ 4
x1, x2 ≥ 0
Step 3 and 4: Determine the
solution points and optimal
solution
RECAP
A decision amongst alternative courses of action is required.
The decision is represented in the model by decision variables.
variables
The problem encompasses a goal, expressed as an objective
function,
function that the decision maker wants to achieve.
Restrictions (represented by constraints
constraints)) exist that limit the
extent of achievement of the objective.
The objective and constraints must be definable by linear
mathematical functional relationships.
22