SMG - 2 - Introduction To Optimization and Linear Programming
SMG - 2 - Introduction To Optimization and Linear Programming
BAN230
Chapter 2
Introduction to Optimization and
Linear Programming
Yi-Chin Lin
[email protected]
Mathematical Programming (Optimization)
• Motivation • Linear Programming (LP)
• Applications • A Product Mix Example
• Approaches to Solving LP
• Characteristics Problems
• Decisions • Graphical Approach
• Constraints • Spreadsheet Approach
• Objective • Special Conditions
• Mathematical Expressions
2
Motivation
• Business Problems
• Our world is filled with limited recourses
• Gas, land, time, money, workers, space…etc.
• How to efficiently allocate the limited resources to achieve business goals
(e.g. maximized profits or minimized costs)?
• Solution
• Optimization (Mathematical programming, or MP)
3
Applications of Optimization
• Product mix
• Decision: how many of each product to produce?
• Goal: maximized manufacturing profits
• Limited resources: raw materials, labors, time
• Routing and logistics
• Decision: which stores should be served by which warehouse? What is the best route for each
truck?
• Goal: minimized distribution costs from warehouses to stores
• Limited resources: number and capacity of trucks, drivers, time
• Financial planning
• Decision: how to allocate the income to various finance strategies before retirement?
• Goal: maximized savings at the time of retirement
• Limited resources: income, time, investment strategies
4
Characteristics of Optimization Problems
• Each problem involves one or more decisions that must be made
• Each problem has an objective that the decision maker considers
when deciding which course of action is best
• Constraints are likely to be placed on the alternatives available to the
decision maker
5
Expressing Optimization Problems
Mathematically
• Use mathematical terms or symbols to represent each of the three
elements of optimization problems
• Decisions
• An objective
• Constraints
6
Expressing Optimization Problems Mathematically
Decisions
• Decisions (in words)
• The number of different products the manager can choose to produce
• The number of different pieces of merchandise to ship from a warehouse to a
certain store
• The amount of money to be saved to different investment accounts
• Decision variables
• Arbitrary symbols, such as X1, X2, …, Xn
7
Expressing Optimization Problems Mathematically
Objective
• Goal
• Maximize profit associated with a product mix
• Objective function
• Identifies some function of the decision variables that the decision maker
wants to either maximize or minimize
• MAX (or MIN): f(X1, X2, …, Xn)
8
Expressing Optimization Problems Mathematically
Constraints
• Constraints (in words)
• Different products require different number of labors and hours
• The total number of labors and hours are limited
• Constraints (mathematically)
• Are functions of the decision variables that must be less than or equal to,
greater than or equal to, or equal to some constant Variables
A less than or equal to constraint f(X1, X2, …, Xn) ≤ b Constant
Definitions of Xi
MAX (or MIN): f0 (X1, X2, …, Xn)
Subject to: fl (X1, X2, …, Xn) ≤ bl
fk (X1, X2, …, Xn) ≥ bk
fm(X1, X2, …, Xn) = bm
Optimization: maximize (or minimize) the objective function without violating any
of the constraints.
10
Mathematical Programming Techniques
• Linear programming (LP)
• The functions in a model form straight lines or flat surfaces
• Nonlinear programming
• The functions in a model form curved lines or curved surfaces
• Integer programming
• The optimal values of the decision variables in a model must be integers
11
An Example of LP Problem: Product Mix
Blue Ridge Hot Tubs manufactures and sells two models of hot tubs: the Aqua-Spa and the Hydro-Lux.
Howie Jones, the owner and manager of the company, needs to decide how many of each type of hot tub
to produce during his next production cycle. Howie buys prefabricated fiberglass hot tub shells from a
local supplier and adds the pump and tubing to the shells to create his hot tubs. (This supplier has the
capacity to deliver as many hot tub shells as Howie needs.) Howie installs the same type of pump into
both hot tubs. He will have only 200 pumps available during his next production cycle. From a
manufacturing standpoint, the main difference between the two models of hot tubs is the amount of
tubing and labor required. Each Aqua-Spa requires 9 hours of labor and 12 feet of tubing. Each Hydro-Lux
requires 6 hours of labor and 16 feet of tubing. Howie expects to have 1,566 production labor hours and
2,880 feet of tubing available during the next production cycle. Howie earns a profit of $350 on each
Aqua-Spa he sells and $300 on each Hydro-Lux he sells. He is confident that he can sell all the hot tubs he
produces. The question is, how many Aqua-Spas and Hydro-Luxes should Howie produce if he wants to
maximize his profits during the next production cycle?
12
An Example of LP Problem: Product Mix
Blue Ridge Hot Tubs manufactures and sells two models of hot tubs: the Aqua-Spa and the Hydro-Lux.
Howie Jones, the owner and manager of the company, needs to decide how many of each type of hot tub
to produce during his next production cycle. Howie buys prefabricated fiberglass hot tub shells from a
local supplier and adds the pump and tubing to the shells to create his hot tubs. (This supplier has the
capacity to deliver as many hot tub shells as Howie needs.) Howie installs the same type of pump into
both hot tubs. He will have only 200 pumps available during his next production cycle. From a
manufacturing standpoint, the main difference between the two models of hot tubs is the amount of
tubing and labor required. Each Aqua-Spa requires 9 hours of labor and 12 feet of tubing. Each Hydro-Lux
requires 6 hours of labor and 16 feet of tubing. Howie expects to have 1,566 production labor hours and
2,880 feet of tubing available during the next production cycle. Howie earns a profit of $350 on each
Aqua-Spa he sells and $300 on each Hydro-Lux he sells. He is confident that he can sell all the hot tubs he
produces. The question is, how many Aqua-Spas and Hydro-Luxes should Howie produce if he wants to
maximize his profits during the next production cycle?
13
An Example of LP Problem: Product Mix
Model Formulation Step 1
• Decisions in words
• Numbers of each type of hot tub to produce
• Decision variables in mathematics (symbols and their boundaries)
• The number of Aqua-Spas to produce: X1
• The number of Hydro-Luxes to produce: X2
14
An Example of LP Problem: Product Mix
Model Formulation Step 2
• Objective in words
• Maximize profits
• Objective function (a linear combination of the decision variables)
• MAX: 350X1 + 300X2
15
An Example of LP Problem: Product Mix
Model Formulation Step 3
• Constraints
Pump Labor (hours) Tubing (feet)
Aqua-Spa 1 9 12
Hydro-Lux 1 6 16
Constraints 200 1,566 2,880
MAX:350X1 + 300X2
Subject to: 1X1 + 1X2 ≤ 200
9X1 + 6X2 ≤ 1,566
12X1 + 16X2 ≤ 2,880
1X1 ≥ 0
1X2 ≥ 0
17
Approaches to Solving LP Problems
• Graphical approach
• Spreadsheet approach (Chapter 3)
18
Solving LP Problems
An Graphical Approach
• Can be used only if there are two decision variables
• Graphically identify the feasible region (the set of feasible solutions)
by plotting the constraints
• Find the optimal solution by one of the following two approaches
• Level curve approach
• Corner point approach
19
Solving LP Problems
X2
250
Plotting the First Constraint
200
150
Boundary line of
X1 + X2 = 200
100
Feasible region of
X1 + X2 ≤ 200
50
(nonnegativity)
Boundary line of
150 9X1 + 6X2 = 1,566
100
Feasible region of
X1 + X2 ≤ 200 and
50
9X1 + 6X2 ≤ 1,566
(nonnegativity)
(0,180)
150
23
Solving LP Problems
250
X
Finding the Optimal Solution: Level Curves
2
200
150
Boundary line of
X1 + X2 = 200
200
Boundary line of
9X1 + 6X2 = 1,566
150
Optimal Solution
Optimal solution Solve
100 (122, 78) X1 + X2 = 200
9X1 + 6X2 = 1,566
Solution
50 (X1, X2) = (122, 78)
Maximized profit
$350*122+$300*78=$66,100
27
Solving LP Problems
X
250
Finding the Optimal Solution: Corner Points
2
200
$54,000
150 $64,000
Optimal Solution
100
1. Calculate the value of the
$66,100 objective function at each of
the corner points
2. The corner point with the
50 largest value is the optimal
solution
$0 $60,900
29
Alternate Optimal Solutions
• More than one optimal solution
• If we used a computer to solve
this problem, it would identify
only one of the corner points of
this edge as the optimal solution
• Sometimes it is more desirable
30
Redundant Constraints
• Is a constraint that plays no role in
determining the feasible region of the
problem
• There will always be an excess number
of pumps available
• Redundant constraints may not be
redundant in the future when
coefficients are changed
31
Unbounded Solutions
• The objective function can be made
infinitely large (in the case of a
maximization problem) or infinitely small
(in the case of a minimization problem)
• Possible causes
• Omitted constraints
• Misspecified inequalities
32
Infeasibility
• An LP problem is infeasible if there
is no way to simultaneously satisfy
all the constraints in the problem
• Possible causes
• Misspecified inequalities
• Unrealistic constraints
33