Professional Documents
Culture Documents
Lecture 1 EMSE 6850 - Quantitative Models For Systems Engineers
Lecture 1 EMSE 6850 - Quantitative Models For Systems Engineers
Lecture 1 EMSE 6850 - Quantitative Models For Systems Engineers
Instructor:
• Professor’s Background
• Course Logistics
• Syllabus Walkthrough
• Preferred first name for class (please provide any special pronunciation tips):
• Circle Any Prerequisite Courses taken (do not worry if not taken):
– EMSE 6020
– APSC 3115
• Software: The class will make extensive use of Excel, Excel Solver and Risk
Solver Platform for Education. We will also use the textbook CD. Activation and
installation instructions for Excel Solver and Risk Solver Platform for Education are
provided at the end of this Syllabus.
Learning Objectives
• Learning Objectives: To be able to formulate decision problems into
models - algebraic and spreadsheet - and solve them using management
science techniques, from linear programming (integer and binary) to decision
analysis, forecasting and goal seeking/programming.
• Homework 20%
• Midterm 40%
Class Attendance & Exams
• Final exam: The final exam will be held in class on Tuesday, November 10.
It will be closed book and closed notes.
BOTTOM LINE: BRING YOUR ANALYTIC SKILLS – WE WILL WORK THROUGH THE MATH TOGETHER
Course Overview – What it is about
• Management Science – Field of study where we develop models to help us
make decisions with the intention of optimizing performance under given
constraints
• Transportation Problems
• Assignment Problems
• Decision Making
• Forecasting
Timeline Overview – 1st Half
Chapter 9
Timeline Overview – 2nd Half
Appendix A – Tips for Using Microsoft Excel
• An Excel file is called a Workbook consisting of a number of worksheets.
Excel 2013
Working with Solver
• Models must be confined to a single worksheet. That is, Solver DOES NOT
allow the model on a given sheet to have its components spread across
different sheets
• When Solver is Run, ONLY the model on the CURRENTLY displayed sheet is
Solved
• Important NOTE: You must “control-click” and “drag” the worksheet tab
rather than simply selecting the cells containing the model and using copy and
paste. This will ensure that ALL contents of the sheet (formulas, data, and
Solver information) are replicated.
Working with RSPE Solver
• There is a second tool called RSPE Solver we will be using.
• Unlike Solver, RSPE Solver DOES allow the model on a given sheet to have
its components spread across different sheets
• RSPE has a type of built in model called Decision Trees (We will see these in
Chapter 9)
Working with Cells
• There is a second tool called RSPE Solver we will be using.
• Unlike Solver, RSPE Solver DOES allow the model on a given sheet to have
its components spread across different sheets
• RSPE has a type of built in model called Decision Trees (We will see these in
Chapter 9)
Table of Contents
Chapter 1 (Introduction)
• Break-Even Analysis
Modeling in a Nutshell
www.carnegielearning.com (2014) -
http://nola14.mrmeyer.com/tag/day-o
ne/
Structured Approach
Learning From Data – AMLBooks.com March 27, 2012 Yaser S. Abu-Mostafa, Malik Magdon-Ismail, Hsuan-Tien Lin
Model Selection
• Data:
– If they go ahead with this product, a fixed cost of $10 million is incurred.
– The variable cost is $1000 per iWatch produced.
– Each iWatch sold would generate $2000 in revenue.
– A sales forecast will be obtained.
Question: Should they produce the iWatch, and if so, how many?
1-2
Expressing the Problem Mathematically
• Decision variable:
– Q = Number of iWatches to produce
• Costs:
– Fixed Cost = $10 million (if Q > 0)
– Variable Cost = $1000 Q
– Total Cost =
• 0, if Q = 0
• $10 million + $1000 Q, if Q > 0
• Profit:
– Profit = Total revenue – Total cost
• Profit = 0, if Q = 0
• Profit = $2000Q – ($10 million + $1000Q) = –$10 million + $1000Q, if Q > 0
1-3
Special Products Co. Spreadsheet
A B C D E F
1 Special Products Co. Break-Even Analysis
2
3 Data Results
Range Name Cell
4 Unit Revenue $2,000 Total Revenue $40,000,000
FixedCost C5
5 Fixed Cost $10,000,000 Total Fixed Cost $10,000,000
MarginalCost C6
6 Marginal Cost $1,000 Total Variable Cost $20,000,000
ProductionQuantity C9
7 Sales Forecast 30,000 Profit (Loss) $10,000,000
8
Profit F7
9 Production Quantity 20,000 SalesForecast C7
TotalFixedCost F5
TotalRevenue F4
TotalVariableCost F6
UnitRevenue C4
1-4
The Effect of Varying Production Quantities
Graphical Analysis of the Problem
1-5
Algebraic Analysis
•Profit
= -$10 million + $1000* = 0 @ break even point
Solving for :
Therefore:
Subject to:
The Algebraic Expression for the Profit is called the Objective Function
=
Decision Point: Since we know the equation for break-even why not build it into the spreadsheet? That is, in Cell C9
Try: C9 = IF(SalesForecast>BreakEvenPoint, SalesForecast,0)
1-6
The “Real World” versus “Models”
• In the real world when making decisions we must not over constrain our assumptions
• For the prior question, what if management did not believe the sales forecast based on
experience? They don’t want to get locked into building too many iWatches and end
up with excess inventory. A more conservative approach might be to lower the
production quantity to reduce the risk of excess inventory. This also creates the risk
of a shortage of product later on
In 2007 it was hardly unthinkable that a math wizard like David X. Li might someday earn a Nobel Prize. After all, financial economists—
even Wall Street quants—have received the Nobel in economics before, and Li's work on measuring risk has had more impact, more
quickly, than previous Nobel Prize-winning contributions to the field. Today, though, as dazed bankers, politicians, regulators, and investors
survey the wreckage of the biggest financial meltdown since the Great Depression, Li is probably thankful he still has a job in finance at all.
The Wyndor Glass Company Product Mix Problem (Section 2.1) 2.2
Formulating the Wyndor Problem on a Spreadsheet (Section 2.2) 2.3–2.8
The Algebraic Model for Wyndor (Section 2.3) 2.9
The Graphical Method Applied to the Wyndor Problem (Section 2.4) 2.10–2.20
Using the Excel Solver with the Wyndor Problem (Section 2.5) 2.21–2.25
Risk Solver Platform for Education (Section 2.6) 2.26–2.33
A Minimization Example—The Profit & Gambit Co. (Section 2.7) 2.34–2.39
Wyndor Glass Co. Product Mix Problem
Questions:
1. Should they go ahead with launching these two new products?
2. If so, what should be the product mix?
2-39
Structured Approach - Review
1. Define the Problem and Gather Data:
Assumptions: We will ignore the possibility that max profit may be attained by producing none of one product and as much as possible of
the second product. Needed:
Linear Programming
A B C D E F G
1 Wyndor Glass Co. Product-Mix Problem
2
3 Doors Windows
4 Unit Profit $300 $500
5 Hours
6 Hours Used Per Unit Produced Available
7 Plant 1 1 0 4
8 Plant 2 0 2 12
9 Plant 3 3 2 18
2-41
Developing a Spreadsheet Model
• Step #2: Changing Cells
– Add a cell in the spreadsheet for every decision that needs to be made.
– If you don’t have any particular initial values, just enter 0 in each.
– It is a good idea to color code these “changing cells” (e.g., yellow with border).
A B C D E F G
1 Wyndor Glass Co. Product-Mix Problem
2
3 Doors Windows
4 Unit Profit $300 $500
5 Hours
6 Hours Used Per Unit Produced Available
7 Plant 1 1 0 4
8 Plant 2 0 2 12
9 Plant 3 3 2 18
10
11 Doors Windows
12 Units Produced 0 0
2-42
Developing a Spreadsheet Model
• Step #3: Objective Cell
– Develop an equation that defines the objective of the model.
– Typically this equation involves the data cells and the changing cells in order to
determine a quantity of interest (e.g., total profit or total cost).
– It is a good idea to color code this cell (e.g., orange with heavy border).
2-43
Developing a Spreadsheet Model
• Step #4: Constraints
– For any resource that is restricted, calculate the amount of that resource used in a
cell on the spreadsheet (an output cell).
– Define the constraint in three consecutive cells. For example, if Quantity A <=
Quantity B, put these three items (Quantity A, <=, Quantity B) in consecutive cells.
A B C D E F G
1 Wyndor Glass Co. Product-Mix Problem
2
3 Doors Windows
4 Unit Profit $300 $500
5 Hours Hours
6 Hours Used Per Unit Produced Used Available
7 Plant 1 1 0 0 <= 4
8 Plant 2 0 2 0 <= 12
9 Plant 3 3 2 0 <= 18
10
11 Doors Windows Total Profit
12 Units Produced 0 0 $0
2-44
Formulas for the Spreadsheet Model
A B C D E F G
1 Wyndor Glass Co. Product-Mix Problem
2
3 Doors Windows
4 Unit Profit $300 $500
5 Hours Hours
6 Hours Used Per Unit Produced Used Available
7 Plant 1 1 0 0 <= 4
8 Plant 2 0 2 0 <= 12
9 Plant 3 3 2 0 <= 18
10
11 Doors Windows Total Profit
12 Units Produced 0 0 $0
2-45
A Trial Solution
The spreadsheet for the Wyndor problem with a trial solution (4 doors and 3
windows) entered into the changing cells.
Notice:
• G12 is the Objective Cell (Profit)
• Hours Used MUST meet CONSTRAINTS for Hours Available
2-46
Even Better! – Or Maybe Not?
The spreadsheet for the Wyndor problem with a trial solution (5 doors and 4
windows) entered into the changing cells.
Notice:
• Hours Used is > Hours Available for Plant 1 & Plant 3
• Therefore the above does NOT represent a FEASIBLE Solution
2-47
Characteristics of of Linear Programming Models
5. Constraints:
Non-Negative
Linear Equations or Linear Inequality Equations
P = Profit
2-49
Common Terminology
2-50
Graphing the Product Mix
6 (4, 6)
4 A product mix of
D = 2 and W = 3
3 (2, 3)
1
Origin
-2 -1 0 1 2 3 4 5 6 7 8 D
Production rate (units per week) for doors
-1
-2
Linear programming problems having only two decision variables, like the Wyndor problem, can be solved by using a graphical method.
2-51
Graph Showing Constraints: D ≥ 0 and W ≥ 0
6
Production rate for windows
0 2 4 6 8 D
Production rate for doors
2-52
Nonnegative Solutions Permitted by D ≤ 4
D=4
6
Production rate for windows
0 2 4 6 8 D
Production rate for doors
2-53
Nonnegative Solutions Permitted by 2W ≤ 12
Production rate for windows
W
2 W = 12
6
0 2 4 6 8 D
Production rate for doors
2-54
Boundary Line for Constraint 3D + 2W ≤ 18
Production rate for windows
W
10
(0, 9)
8
1
(1, 7 _)
2
6 (2, 6)
3 D + 2 W = 18
1
(3, 4 _)
2
4
(4, 3)
2
1
(5, 1 _)
2
(6, 0)
0 2 4 6 8 D
Production rate for doors
2-55
Changing Right-Hand Side Creates Parallel Constraint
Boundary Lines
Production rate for windows
W
12
10
3D + 2W = 24
3D + 2W = 18
4
2 3D + 2W = 12
0 2 4 6 8 10 D
Production rate for doors
2-56
Nonnegative Solutions Permitted by
3D + 2W ≤ 18
Production rate for windows
W
10
3D + 2W = 18
4
0 2 4 6 8 D
Production rate for doors
2-57
Graph of Feasible Region
Production rate for windows
W
10
3 D + 2 W = 18
8
D=4
6 2 W =12
Feasible
region
2
0 2 4 6 8 D
Production rate for doors
2-58
Objective Function (P = 1,500)
W
Production rate
for windows
8
Feasible
4
region
P = 1500 = 300D + 500W
0 2 4 6 8 D
Production rate for doors
2-59
Finding the Optimal Solution
Production rate W
for windows
8
Feasible
4
region
P = 1500 = 300D + 500W
0 2 4 6 8 10 D
Production rate for doors
2-60
Summary of the Graphical Method
• Draw the constraint boundary line for each constraint. Use the origin (or any
point not on the line) to determine which side of the line is permitted by the
constraint.
• Find the feasible region by determining where all constraints are satisfied
simultaneously.
• Determine the slope of one objective function line. All other objective
function lines will have the same slope.
• Move a straight edge with this slope through the feasible region in the
direction of improving values of the objective function. Stop at the last instant
that the straight edge still passes through a point in the feasible region. This
line given by the straight edge is the optimal objective function line.
2-61
Using Excel’s Solver to Solve Linear Programming
Problems
• Graphical Method gives good insight and geometric intuition for LP but is
limited to problems with two decision variables.
2-62
Identifying the Objective Cell and Changing Cells
• Choose the “Solver” from the Data tab.
• Select the cell you wish to optimize in the “Set Objective” window.
• Choose “Max” or “Min” depending on whether you want to maximize or minimize the
objective cell.
• Enter all the changing cells in the “By Changing Variable Cells” window.
2-63
Adding Constraints
• To begin entering constraints, click the “Add” button to the right of the
constraints window.
• Fill in the entries in the resulting Add Constraint dialogue box.
2-64
The Completed Solver Dialogue Box
2-65
The Solver Results Dialogue Box
2-66
The Optimal Solution
2-67
Using Risk Solver Platform for Educaton (RSPE) to
Solve Linear Programming Problems
• RSPE is a Premium Version of Solver the provides greatly enhanced
functionality
2-68
My Version of RSPE on Excel 2013
Risk Solver Platform for Education (RSPE) – Textbook
Solution
2-70
My Version After Optimization
Specifying the Objective Cell with RSPE
2-72
Specifying the Changing Cells with RSPE
2-73
Adding Constraints with RSPE
2-74
Adding Constraints with RSPE
2-75
Making Changes with the Model Pane in RSPE
2-76
Specifying Options with RSPE
Standard
Assumption
2-77
The Optimal Solution with RSPE
2-78
The Profit & Gambit Co.
2-79
By the Numbers
2-81
Applying the Graphical Method
Amount of print media advertising
PM
Feasible
10
region
PM = 3
2
-TV + 4 PM = 4
3 TV + 2 PM = 18
-4 -2 0 2 4 6 8 10 TV
Amount of TV advertising
2-82
The Optimal Solution
PM
10
Feasible
Cost = 15 = TV + 2 PM region
Cost = 10 = TV + 2 PM
4
(4,3)
optimal
solution
0 5 10 15 TV
Amount of TV advertising
2-83
Profit & Gambit Co. Spreadsheet Model
2-84
Model Showing Formulas
My Approach Using Solver
Minimize
Decision
Variables Sales must
Achieve at least
Minimum Desired
Increase
It Works!!!
Solved with RSPE
Now You Try It
Homework #1 Due September 15, 2015 by 5:00 p.m. BEFORE THE CLASS!
• Textbook Chapter 1:
Problems 1.5, 1.7
Textbook Chapter 2:
Problems 2.5, 2.15, 2.16
• Please always put EMSE 6850, your last name and the HW number in the email subject
line (e.g. EMSE 6850, Smith, HW1). These spreadsheets will be used for reference when
grading.
• Please label your homework with EMSE 6850, your last name and the HW number on top
of each page for any hard copies