Managerial Decision Modeling With Spreadsheets: Linear Programming Models: Graphical and Computer Methods
Managerial Decision Modeling With Spreadsheets: Linear Programming Models: Graphical and Computer Methods
Managerial Decision Modeling With Spreadsheets: Linear Programming Models: Graphical and Computer Methods
Learning Objectives
Understand basic assumptions and properties of linear programming (LP). Use graphical solution procedures for LP problems with only two variables to understand how LP problems are solved. Understand special situations such as redundancy, infeasibility, unboundedness, and alternate optimal solutions in LP problems. Understand how to set up LP problems on a spreadsheet and solve them using Excels solver.
2
(2) solution.
(3) interpretation.
3
Profit firm seeks to maximize is based on profit contribution per unit of each product.
Firm would like to determine How many units of each product it should produce Maximize overall profit given its limited resources.
4
Due to existing inventory of chairs, Flair is to make no more than 60 new chairs.
Each table sold results in $7 profit, while each chair produced yields $5 profit.
Decision Variables
Problem facing Flair is to determine how many chairs and tables to produce to yield maximum profit?
Objective Function
Objective function states goal of problem.
What major objective is to be solved?
Maximize profit!
An LP model must have a single objective function. In Flairs problem, total profit may be expressed as: Using decision variables T and C Maximize $7 T + $5 C
($7 profit per table) x (number of tables produced) + ($5 profit per chair) x (number of chairs produced)
7
Constraints
Denote conditions that prevent one from selecting any specific subjective value for decision variables. In Flair Furnitures problem, there are three restrictions on solution.
Restrictions 1 and 2 have to do with available carpentry and painting times, respectively. Restriction 3 is concerned with upper limit on number of chairs.
Constraints
There are 240 carpentry hours available. 4T + 3C < 240 There are 100 painting hours available. 2T + 1C 100 The marketing specified chairs limit constraint. C 60
4T + 3C 240
2T + 1C 100 C 60 T 0 C 0
(carpentry constraint)
(painting constraint) (chairs limit constraint)
12
Optimal Solution
Optimal Solution: Corner Point 4: T=30 (tables) and C=40 (chairs) with $410 profit
13
14
Manufacturer may seek to distribute its products from several factories to its many regional warehouses in such a way as to minimize total shipping costs. Hospital may want to provide its patients with a daily meal plan that meets certain nutritional standards while minimizing food purchase costs.
15
16
Example of Two Variable Minimization Linear Programming Problem Holiday Meal Turkey Ranch
Brand A feed costs ranch $0.02 per pound, while Brand B feed costs $0.03 per pound. Ranch owner would like lowest-cost diet that meets
Vitamin
Iron
3
0
48
1
2 cents
3 cents
18
Formulation of LP Problem:
Minimize cost (in cents) Subject to: 5A + 10B 90 4A + 3B 48 A 1 A 0, B 0 = 2A + 3B (protein constraint) (vitamin constraint) (iron constraint) (nonnegativity constraint)
Where: A denotes number of pounds of Brand A feed, and B denote number of pounds of Brand B feed.
19
20
2.6
1. Graph each constraint equation. 2. Identify feasible solution region, that is, area that satisfies all constraints simultaneously. 3. Select one of two following graphical solution techniques and proceed to solve problem.
2.7 Special Situations in Solving LP Problems Redundancy: A redundant constraint is constraint that
does not affect feasible region in any way.
Maximize Profit = 2X + 3Y subject to: X + Y 20 2X + Y 30 X 25 X, Y 0
24
2.7 Special Situations in Solving LP Problems Infeasibility: A condition that arises when an LP problem
has no solution that satisfies all of its constraints.
X + 2Y 6 2X + Y 8 X 7
25
X 5
Y 10 X + 2Y 10
X, Y 0
26
optimal solution.
Graphically, when the isoprofit (or isocost)
At profit level of $12, isoprofit line will rest directly on top of first constraint line. This means that any point along line between corner points 1 and 2 provides an optimal X and Y combination. 28
The CD-ROM that accompanies this textbook contains excel file for each example problem discussed here.
29
Entering Data
Labels and Titles Parameters and Coefficients Objective Function
Use fixed cell address Use =sumproduct(range1, range2) function
2.
Maximize profit = $7T + $5C Subject to constraints 4T + 3C 240 (carpentry constraint) 2T + 1C 100 (painting constraint) C 60 (chairs limit constraint) T, C 0 (non-negativity)
31
In Solver:
LP model: Program 2.1 B, page 51. LP options: Program 2.1 C, page 52. Results options: Program 2.1 D, page 53.
32
Tables
Number of Units
Chairs
Profit
Constraints Carpentry Hours Painting Hours Chairs Limit
Objective
4 2
3 1 1 LHS
Summary
Introduced a mathematical modeling technique called linear programming (LP). LP models used to find an optimal solution to problems that have a series of constraints binding objective value. Showed how models with only two decision variables can be solved graphically. To solve LP models with numerous decision variables and constraints, one need a solution procedure such as simplex algorithm. Described how LP models can be set up on Excel and solved using Solver.
35