Optimization
Optimization
2
Part I: Linear Programming
Model Formulation and Graphical Solution
• Model Formulation
• Steps in application:
1- Identify problem as solvable by linear programming.
2- Formulate a mathematical model of the unstructured problem.
3- Solve the model.
4
Model Components and Formulation
5
A Maximization Model Example (1 of 2)
Problem Definition
Resource Requirements
Product Labor Clay Profit
(hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
6
A Maximization Model Example (2 of 2)
Resource availability:
40 hours of labor per day
120 pounds of clay
Decision Variables:
x1=number of bowls to produce/day
x2= number of mugs to produce/day
Objective function
maximize Z = $40x1 + 50x2
where Z= profit per day
Resource Constraints:
1x1 + 2x2 40 hours of labor
4x1 + 3x2 120 pounds of clay
Non-negativity Constraints:
x10; x2 0
Complete Linear Programming Model:
maximize Z=$40x1 + 50x2
subject to
1x1 + 2x2 40
4x2 + 3x2 120
7
x1, x2 0
Feasible/Infeasible Solutions
• A feasible solution does not violate any of the constraints:
Example x1= 5 bowls
x2= 10 mugs
Z = $40 x1 + 50x2= $700
Labor constraint check:
1(5) + 2(10) = 25 < 40 hours, within constraint
Clay constraint check:
4(5) + 3(10) = 70 < 120 pounds, within constraint
8
Graphical Solution of Linear Programming Models
9
Graphical Solution of a Maximization Model
Coordinate Axes
10
Graphical Solution of a Maximization Model
Labor Constraint
11
Graphical Solution of a Maximization Model
Labor Constraint Area
12
Graphical Solution of a Maximization Model
Clay Constraint Area
13
Graphical Solution of a Maximization Model
Both Constraints
14
Graphical Solution of a Maximization Model
Feasible Solution Area
15
Graphical Solution of a Maximization Model
Objective Function = $800
16
Graphical Solution of a Maximization Model
Alternative Objective Functions
Alternative objective function lines for profits, Z, of $800, $1,200, and $1,600
17
Graphical Solution of a Maximization Model
Optimal Solution
18
Graphical Solution of a Maximization Model
Optimal Solution Coordinates
19
Graphical Solution of a Maximization Model
Corner Point Solutions
20
Graphical Solution of a Maximization Model
Optimal Solution for New Objective Function
21
Slack Variables
22
Complete Linear Programming Model in Standard Form
23
A Minimization Model Example
Problem Definition
• 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
24
A Minimization Model Example Model Construction
Decision variables x1
= bags of Super-gro
x2 = bags of Crop-quick
The objective function:
minimize Z = $6x1 + 3x2
where $6x1 = cost of bags of Super-gro
3x2 = cost of bags of Crop-quick
Model constraints:
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (nonnegativity constraint)
25
A Minimization Model Example
Complete Model Formulation and Constraint Graph
26
A Minimization Model Example
Feasible Solution Area
27
A Minimization Model Example
Optimal Solution Point
28
A Minimization Model Example
Surplus Variables
29
A Minimization Model Example
Graphical Solutions
30
Irregular Types of Linear Programming Problems
• For some linear programming models, the general rules do not apply.
31
Multiple Optimal Solutions
Graph of the Beaver Creek Pottery Company example with multiple optimal solutions
32
An Infeasible Problem
33
An Unbounded Problem
An unbounded problem
34
Characteristics of Linear Programming Problems
35