PHO4
PHO4
PART 1: INTRODUCTION
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
INTRODUCTION
CONTENT
LEARNING OUTCOMES
INTRODUCTION
DEFINITION
Operations Research (OR) is the methodology to allocate the available resources to the various
activities in a way that is most effective for the organization as a whole.
It is “applied to problems that concern how to conduct and coordinate the operations within an
organization.” By doing OR studies, we generate some suggestions for decision-makers.
Names of similar subjects/ideas:
Management science | Decision science | Optimization method/algorithm | Mathematical programming
INTRODUCTION
DEVELOPMENT HISTORY
From the early 1900s: The use of quantitative methods in management (The scientific
management revolution - Frederic Winslow Taylor).
The World War II (01/09/1939–02/09/1945): deal with strategic and tactical problems faced by
the military.
The Post-World War II period: use of management science in nonmilitary application
+ Simplex method for solving linear programming problems - 1947 - George Dantzig
More recently: Data Science, Big Data, Machine Learning
INTRODUCTION
BUSINESS ANALYTICS
Today, everybody talks about Business Analytics.
Master of Business Administration (MBA) becomes Master of Business Analytics
INTRODUCTION
Decision making is the term generally associated with the first 5 steps of the problem-solving process.
INTRODUCTION
DECISION MAKING
DETERMINISTIC MODEL
v/s
STOCHASTIC | PROBABILISTIC MODEL
INTRODUCTION
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
LINEAR
PROGRAMMING
CONTENT
❑ Introduction to Linear Programming
❑ General Linear Programming Notations
❑ A Simple Maximization Problem
❑ Graphical Solution Procedure
❑ Extreme Points and the Optimal Solutions
❑ Computer application for solving Linear problems
LEARNING OUTCOMES
LINEAR
PROGRAMMING
SOME LINEAR PROGRAMMING PROBLEMS
1. A manufacturer wants to develop a production schedule and an inventory policy that will satisfy sales
demand in future periods. Ideally, the schedule and policy will enable the company to satisfy demand and at the
same time minimize the total production and inventory costs.
2. A financial analyst must select an investment portfolio from a variety of stock and bond investment
alternatives. The analyst would like to establish a portfolio that maximizes the return on investment.
3. A marketing manager wants to determine how best to allocate a fixed advertising budget among
alternative advertising media such as radio, television, online, and magazines. The manager would like to
determine the media mix that maximizes advertising effectiveness.
4. A company has warehouses in a number of locations. For a set of customer demands, the company would
like to determine how much each warehouse should ship to each customer so that total transportation costs are
minimized.
LINEAR
PROGRAMMING
A SIMPLE MAXIMIZATION PROBLEM
CONSTRAINTS
Infeasible solution
Infeasible region
Feasible solution
Feasible region
LINEAR
PROGRAMMING
A SIMPLE MAXIMIZATION PROBLEM: GRAPHICAL SOLUTION PROCEDURE
Optimal Solution
The 120 hours of unused sewing time and 18 hours of unused inspection and packaging time
are referred to as slack for the two departments.
LINEAR
PROGRAMMING
SLACK VARIABLE
Whenever a linear program is written in a form with all constraints expressed as equalities,
it is said to be written in STANDARD FORM.
Binding constraint
Non-binding constraint
LINEAR
PROGRAMMING
EXTREME POINTS AND THE OPTIMAL SOLUTION
Suppose that the profit contribution for standard golf bag is reduced from $10 to $5 per bag,
while the profit contribution for the deluxe golf bag and all the constraints remain unchanged.
The revised objective function: Max (5S + 9D)
Without any change in the constraints, the feasible region does not change.
However, the profit lines have been altered to reflect the new objective function.
The optimal solution to a linear program can be found at an extreme point of the feasible region.
VARIABLES
MATHEMATICAL MODEL
LINEAR
PROGRAMMING
A SIMPLE MINIMIZATION PROBLEM
LINEAR
PROGRAMMING
A SIMPLE MINIMIZATION PROBLEM
LINEAR
PROGRAMMING
SURPLUS VARIABLE
The production of product A exceeds its minimum level by 250 - 125 = 125 gallons.
This excess production for product A is referred to as SURPLUS.
In linear programming terminology, any excess quantity corresponding to
a ≥ constraint is referred to as SURPLUS.
LINEAR
PROGRAMMING
SLACK VARIABLE & SURPLUS VARIABLE
With a ≤ constraint,
a SLACK variable can be added to the left-hand side of the inequality
to convert the constraint to equality form.
With a ≥ constraint,
a SURPLUS variable can be subtracted from the left-hand side of the inequality
to convert the constraint to equality form.
LINEAR
PROGRAMMING
SLACK VARIABLE & SURPLUS VARIABLE
✔ SURPLUS variables are given a coefficient of zero in the objective function because they have no effect on its value.
✔ Adding 02 SURPLUS variables, denoted as S1, S2 (≥ constraint) and 01 SLACK variable, denoted as S3 (≤ constraint)
✔ Whenever a linear program is written in a form with all constraints expressed as equalities, it has STANDARD FORM.
LINEAR
PROGRAMMING
OTHER EXAMPLE: SLACK VARIABLE & SURPLUS VARIABLE
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
SENSITIVITY ANALYSIS
CONTENT
LEARNING OUTCOMES
SENSITIVITY ANALYSIS
Sensitivity analysis is the study of how the changes in the coefficients of an optimization model
affect the optimal solution. Using sensitivity analysis, we can answer questions such as the following:
1. How will a change in the coefficient of the objective function affect the optimal solution?
2. How will a change in the right-hand-side value for a constraint affect the optimal solution?
Remind: Optimal solution: S = 540 standard bags and D = 252 deluxe bags,
was based on profit contribution figures of $10 per standard bag and $9 per deluxe bag
SENSITIVITY ANALYSIS
Line A
Line B
SENSITIVITY ANALYSIS
Sensitivity analysis is the study of how the changes in the coefficients of an optimization model
affect the optimal solution. Using sensitivity analysis, we can answer questions such as the following:
1. How will a change in the coefficient of the objective function affect the optimal solution?
2. How will a change in the right-hand-side value for a constraint affect the optimal solution?
SENSITIVITY ANALYSIS -
Ranges for Objective Function Coefficients and the RHS of the constraints
S (current profit coefficient of 10), has an Allowable increase of 3.5 and an Allowable decrease of 3.7.
If the profit contribution of the Standard bag is between 10 - 3.7 = $ 6.3 and 10 + 3.5 = $ 13.5,
the production of (S= 540; D= 252) will remain the optimal solution.
SENSITIVITY ANALYSIS
SENSITIVITY ANALYSIS -
Ranges for Objective Function Coefficients and the RHS of the constraints
If the constraint RHS is not increased (decreased) by more than the Allowable increase (decrease),
the associated dual value gives the exact change in the value of the Optimal solution per unit increase
in the RHS.
SENSITIVITY ANALYSIS
SENSITIVITY ANALYSIS -
Ranges for Objective Function Coefficients and the RHS of the constraints
Constraint 1: Dual value 4.375 is valid for RHS values within the range [495.6 ; 682.36364]
(630 – 134.4 = 495.6 ; 630 + 52.36364 = 682.36364)
SENSITIVITY ANALYSIS
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
DISTRIBUTION AND NETWORK MODELS
CONTENT
LEARNING OUTCOMES
DISTRIBUTION AND NETWORK MODELS
ORIGIN DESTINATION
DISTRIBUTION AND NETWORK MODELS
TRANSSHIPMENT PROBLEM
SUPPLY DEMAND
✔ Is an extension of the transportation problem.
✔ Add intermediate nodes (transhipment nodes).
✔ Shipments may be made between any pair of the
three general types of nodes.
✔ The supply available at each origin is limited.
✔ The demand at each destination is specified.
✔ The objective is to determine how many units
should be shipped over each arc in the network
so that all destination demands are satisfied with ORIGIN TRANSSHIPMENT DESTINATION
the minimum possible transportation cost.
DISTRIBUTION AND NETWORK MODELS
ASSIGNMENT PROBLEM
SHORTEST-ROUTE PROBLEM
ORIGIN DESTINATION
DISTRIBUTION AND NETWORK MODELS
TOTAL SUPPLY > TOTAL DEMAND TOTAL SUPPLY < TOTAL DEMAND
• No modification in the LP formulation is • Add a dummy origin with a supply equal to the
necessary. difference between the total demand and the total
• Excess supply will appear as SLACK in the supply.
linear programming solution. • Add an arc from the dummy origin to each destination.
• SLACK for any particular origin can be • Assign a zero cost per unit to each arc leaving the
interpreted as the unused supply or amount not dummy origin (no shipments actually will be made
shipped from the origin. from the dummy origin).
• When the optimal solution is implemented, the
destinations showing shipments being received from the
dummy origin will be the shortfall or unsatisfied
demand of the destinations.
DISTRIBUTION AND NETWORK MODELS
TRANSSHIPMENT PROBLEM
SUPPLY DEMAND
✔ Is an extension of the transportation problem.
✔ Add intermediate nodes (transhipment nodes).
✔ Shipments may be made between any pair of the
three general types of nodes.
✔ The supply available at each origin is limited.
✔ The demand at each destination is specified.
✔ The objective is to determine how many units
should be shipped over each arc in the network
so that all destination demands are satisfied with ORIGIN TRANSSHIPMENT DESTINATION
the minimum possible transportation cost.
DISTRIBUTION AND NETWORK MODELS
The objective function reflects the total shipping cost over the 12 shipping routes.
Combining the Objective function and Constraints leads to a 12-variable, 8-constraint LP model
of the transshipment problem.
DISTRIBUTION AND NETWORK MODELS
200
550
150
50 350
400
300
DISTRIBUTION AND NETWORK MODELS
ASSIGNMENT PROBLEM
Origin node (node 1): Has a supply of 1 unit; Connected arc always go out.
Destination node (node 6): Has a demand of 1 unit; Connected arc always go into.
Four transshipment nodes (nodes 2, 3, 4, and 5): Two directed arcs connect between the pairs of transshipment nodes.
DISTRIBUTION AND NETWORK MODELS
Each arc’s flow direction is indicated, and the arc capacity (1.000 vehicles/hour) is shown next to each arc.
The maximum flow problem can be viewed as a capacitated transshipment model.
DISTRIBUTION AND NETWORK MODELS
The objective function that maximizes the flow over the highway system is: Max x71
The flow OUT for Node 1: x12 + x13 + x14
The flow IN for Node 1: x71
=> The constraint: x12 + x13 + x14 - x71 = 0
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
DISTRIBUTION AND NETWORK MODELS
CONTENT
LEARNING OUTCOMES
DISTRIBUTION AND NETWORK MODELS
T = 2.479 ; A = 3.252
10(2.479) + 15(3.252) = 73.574 (k$)
T = 2.479 ≈ 2; A = 3.252 ≈3
10(2.479) + 15(3.252) = 73.574 (k$)
T = 2.479 ≈ 2; A = 3.252 ≈3
10(2.479) + 15(3.252) = 73.574 (k$)
Faced with limited capital for the next 04 years, company needs to select the most profitable projects.
Present value*: The estimated net present value is the net cash flow discounted back to the beginning of year 1
03 materials are used to produce 03 products: Fuel additive, Solvent base, and Carpet cleaning fluid.
The following decision variables are used:
F = tons of fuel additive produced
S = tons of solvent base produced
C = tons of carpet cleaning fluid produced
03 materials are used to produce 03 products: Fuel additive, Solvent base, and Carpet cleaning fluid.
This LP formulation does not include a fixed cost for production setup of the products.
DISTRIBUTION AND NETWORK MODELS
03 materials are used to produce 03 products: Fuel additive, Solvent base, and Carpet cleaning fluid.
Quantity of material
Profit Maximum
to produce a ton of product Setup
PRODUCT per ton of production
cost
product Material 1 Material 2 Material 3 (tons)
Using these setup variables, the total setup cost is: 200.SF + 50.SS + 400.SC
The objective function to include the setup cost: Max (40.F + 30.S + 50.C – 200.SF - 50.SS – 400.SC)
DISTRIBUTION AND NETWORK MODELS
03 materials are used to produce 03 products: Fuel additive, Solvent base, and Carpet cleaning fluid.
Quantity of material
Profit Maximum
to produce a ton of product Setup
PRODUCT per ton of production
cost
product Material 1 Material 2 Material 3 (tons)
The objective function to include the setup cost: Max (40.F + 30.S + 50.C – 200.SF - 50.SS – 400.SC)
The constraints:
F ≤ 50.SF S ≤ 25.SS C ≤ 40.SC
SF, SS, SC = 0 or 1
DISTRIBUTION AND NETWORK MODELS
Quantity of material
Profit Maximum
to produce a ton of product Setup
PRODUCT per ton of production
cost
product Material 1 Material 2 Material 3 (tons)
Capacity constraints:
x11 + x12 + x13 ≤ 10y1 Detroit capacity
x21 + x22 + x23 ≤ 20y2 Toledo capacity
x31 + x32 + x33 ≤ 30y3 Denver capacity
x41 + x42 + x43 ≤ 40y4 Kansas city capacity
x51 + x52 + x53 ≤ 30 St. Louis capacity
Demand constraints:
x11 + x21 + x31 + x41 + x51 = 30 Boston demand
x12 + x22 + x32 + x42 + x52 = 20 Toledo demand
x13 + x23 + x33 + x43 + x53 = 20 Houston demand
Variable constraints:
xij ≥ 0 for all i, j;
y1, y2, y3, y4 =0; 1
DISTRIBUTION AND NETWORK MODELS
CONJOINT ANALYSIS is a market research technique that can be used to learn how prospective
buyers of a product value the product’s attributes.
DISTRIBUTION AND NETWORK MODELS
CONJOINT ANALYSIS
CONJOINT ANALYSIS
Salem Foods is planning to enter the pizza market, where 02 existing brands, Antonio and King,
have the major share of the market.
Salem Foods
DISTRIBUTION AND NETWORK MODELS
CONJOINT ANALYSIS
Salem Foods is planning to enter the pizza market, where 02 existing brands, Antonio and King,
have the major share of the market.
Salem Foods
CONJOINT ANALYSIS
Salem Foods is planning to enter the pizza market, where 02 existing brands, Antonio and King,
have the major share of the market.
Salem Foods
King’s pizza
which has a thin crust, a cheese blend, smooth sauce, and mild-flavored sausage
=> Consumer 1’s utility for the King’s brand pizza is: 11 + 7 + 3 + 26 = 47
DISTRIBUTION AND NETWORK MODELS
Assuming the 8 consumers in the current study is representative of the marketplace for pizza,
we create an integer programming model that helps Salem design a pizza,
which have the highest utility for enough people.
* In Marketing literature, the problem being solved is called the share of choice problem.
The number of customers preferring the Salem brand pizza is just the sum of the yk variables,
=> The objective function is: Max (y1 + y2 + . . . + y8)
DISTRIBUTION AND NETWORK MODELS
To succeed with its brand, Salem Foods realizes that it must entice consumers in the marketplace to
switch from their current favourite brand of pizza to the Salem Foods product.
Consumer 1 only purchases the Salem instead of Antonio’s brand pizza if the levels of the attributes for
the Salem are chosen such that:
Utility for 1st consumer = (11.l11 + 2.l21) + (6.l12 + 7.l22) + (3.l13 + 17.l23) + (26.l14 + 27.l24 + 8.l34) > 52
(Consumer 1’s utility for his current favourite Antonio’s brand pizza is: 2 + 6 + 17 + 27 = 52)
DISTRIBUTION AND NETWORK MODELS
For instance, y1 = 1 when the 1st consumer prefers the Salem pizza and y1 = 0 otherwise.
Thus, the constraint for 1st consumer:
(11.l11 + 2.l21) + (6.l12 + 7.l22) + (3.l13 + 17.l23) + (26.l14 + 27.l24 + 8.l34) ≥ 1 + 52.y1
Salem Foods
Faced with limited capital for the next 04 years, company needs to select the most profitable projects.
Present value*: The estimated net present value is the net cash flow discounted back to the beginning of year 1
Conditional constraint: The acceptance of one option is conditional on the acceptance of another.
For instance: the Warehouse expansion project was conditional on the Plant expansion project
FEASIBILITY TABLE
DISTRIBUTION AND NETWORK MODELS
For instance: the warehouse expansion project had to be accepted whenever the plant expansion
TRUNG-HIEP BUI
scv.udn.vn/buitrunghiep | [email protected] | 0935-743-555
TIME SERIES ANALYSIS & FORECASTING
CONTENT
LEARNING OUTCOMES
TIME SERIES ANALYSIS & FORECASTING
INTRODUCTION
Personnel
Purchasing
FORECASTING
etc.
TIME SERIES ANALYSIS & FORECASTING
INTRODUCTION
ACCOUNTING
New product/process cost estimates, profit projections, cash management.
FINANCE
FORECASTING
Equipment/Replacement needs, timing and amount of funding/borrowing needs.
HUMAN RESOURCES
Hiring activities; layoff planning, including outplacement counseling
MARKETING
Pricing and promotion, e-business strategies, global competition strategies.
MIS
New/revised information systems, Internet services.
TIME SERIES ANALYSIS & FORECASTING
INTRODUCTION
❑ Forecasting methods can be classified as qualitative or quantitative.
❑ Qualitative forecasting methods generally involve the use of expert judgment.
❑ Quantitative forecasting methods can be used when:
(1) past information about the variable being forecast is available,
(2) the information can be quantified,
(3) it is reasonable to assume that the past is prologue.
TIME SERIES ANALYSIS & FORECASTING
❑ Seasonal patterns are recognized by observing recurring patterns over successive periods.
TIME SERIES ANALYSIS & FORECASTING
❑ Seasonal patterns are recognized by observing recurring patterns over successive periods.
TIME SERIES ANALYSIS & FORECASTING
BETTER
When a shift to a new level (change in business condition) occurs, it takes several periods for the forecasting method that uses
the average of all the historical data to adjust to the new level of the time series. However, in this case, the simple naïve method
adjusts very rapidly to the change in level because it uses only the most recent observation available as the forecast.
TIME SERIES ANALYSIS & FORECASTING
❑ The moving averages method uses the average of the most recent k data values in the time series
as the forecast for the next period.
❑ To use moving averages to forecast a time series, we must first select the order k (number of
time series values to be included in the moving average).
The term “moving” is used because every time a new observation becomes available for the time series,
it replaces the oldest observation in the equation and a new average is computed.
TIME SERIES ANALYSIS & FORECASTING
k=3
TIME SERIES ANALYSIS & FORECASTING
❑ The weighted moving averages method involves selecting a different weight for each data value
in the moving average and then computing a weighted average of the most recent k values as the
forecast for the next period.
• Note that the sum of the weights is equal to 1 for the weighted moving average method
❑ The exponential smoothing is a special case of the weighted moving averages method in which
we select only one weight (alpha)—the weight for the most recent observation.
The exponential smoothing forecast for any period is actually a weighted average of all
the previous actual values of the time series.
TIME SERIES ANALYSIS & FORECASTING
❑ The new forecast Y’ t + 1 is equal to the previous forecast Y’t plus an adjustment 𝜶et,
which is the smoothing constant 𝜶 times the most recent forecast error (et = Yt – Y’t).
=> The forecast in period (t + 1) is obtained by adjusting the forecast in period t by a fraction of the forecast
error from period t.
❑ If the time series contains substantial random variability, a small value of the smoothing constant is
preferred. The reason is that if much of the forecast error is due to random variability, we do not want to
overreact and adjust the forecasts too quickly.
❑ If the time series contains little random variability, a forecast error is more likely to represent a real change
in the level of the series. Thus, larger values of the smoothing constant provide the advantage of quickly
adjusting the forecasts to changes in the time series; this allows the forecasts to react more quickly to changing
conditions.
TIME SERIES ANALYSIS & FORECASTING
❑ Regression analysis may be used to forecast a time series with a linear trend.
Although the time series plot shows some up and down movements over the past 10 years, we might agree that the
linear trend line provides a reasonable approximation of the long-run movement in the series.
TIME SERIES ANALYSIS & FORECASTING
❑ Simple Linear Regression: yields the linear relationship between the independent variable and
the dependent variable that minimizes the MSE
=> We can use this method to find a best-fitting line to a set of data that exhibits a linear trend.
❑ The time variable begins at t =1 corresponding to the first time series observation and
continues until t = n corresponding to the most recent time series observation.
❑ Calculus may be used to find the b0 and b1 to yield the line that minimizes the MSE.
TIME SERIES ANALYSIS & FORECASTING
* We do not use past values of the time series to produce forecasts, and so k = 0
TIME SERIES ANALYSIS & FORECASTING
Doesn’t the time series plot indicate any long-term trend in sales?
TIME SERIES ANALYSIS & FORECASTING
However, closer inspection of the time series plot reveals a pattern in the fluctuations.
=> A quarterly seasonal pattern is present.
TIME SERIES ANALYSIS & FORECASTING
❑ Categorical Variables: are used to categorize observations of data. When a categorical variable has k
levels, k – 1 dummy variables (sometimes called 0-1 variables) are required.
❑ If there are 04 seasons (Quarter 1, 2, 3, and 4), we need 03 dummy variables, which are coded as:
❑ We can use the above equation to forecast quarterly sales for next year.
TIME SERIES ANALYSIS & FORECASTING
❑ We can use the above equation to forecast quarterly sales for next year.
❑ We also can obtain the quarterly forecasts for next year by computing the average number in each quarter