Professional Documents
Culture Documents
OPIM101 4 Updated
OPIM101 4 Updated
Decision Analysis
OPIM 101
Liang Xu
Assistant Professor of Operations Management
leonxu@smu.edu.sg
Recess
- Part 1: LP Sensitivity Analysis (answering “what if” questions)
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$D$4 Quantity Total 120 20 120 13.33 20
$D$10 Red Total 360 0 480 1E+30 120
$D$11 Yellow Total 260 0 300 1E+30 40
$D$12 Blue Total 300 1.67 300 60 120
Max +
subject to
+ Active constraint: positive shadow price
+ Inactive constraint: zero shadow price
+
Sensitive Analysis
100% Rule
∑ (change / allowable change) ≤ 1
1. For each RHS that changes, compute the amount of
change divided by the total allowable change
Recess
- Part 1: LP Sensitivity Analysis (answering “what if” questions)
Blending Problem
Price Octane Rating Sulfur Content Availability (barrels)
Blending Problem
Decision variables
𝑥𝑖𝑗 barrels of Crude oil i that goes into production of Gasoline j where and
Summation Operator
10
∑ 𝑥 𝑖= 𝑥 1+ 𝑥 2 +…+ 𝑥10
- Simple Sum:
𝑖=1
- Double Sum
∑ 𝒄 ∗ 𝒙 𝒊=𝒄 ∗ ∑ 𝒙𝒊
𝒊=𝟏 𝒊=𝟏
∑ 𝒄 =𝒏 ∗ 𝒄
𝒊= 𝟏
𝒏 𝒏 𝒏
∑ ( 𝒙 𝒊+ 𝒚 𝒊 )= ∑ 𝒙𝒊 + ∑ 𝒚 𝒊
𝒊=𝟏 𝒊=𝟏 𝒊=𝟏
Blending Problem
Total Profits
Supply Constraints
∀𝑖 Demand Constraints
Octane Constraints
Non-negativity
∀𝑖, ∀ 𝑗 Constraints Sulphur Constraints
Loading Problem
You are in charge of loading cargo ships for TransAtlantic
Shipping Co (TSC) at the port of Singapore. You have
been asked to prepare a loading plan for a TSC freighter
destined for Europe. There is demand from four different
contractors to transport the following products aboard
this ship:
Loading Problem
You can choose to load any of the available products up to
the available amount. However, the ship has three cargo
holds with the following capacity restrictions:
Loading Problem
How would you load these four products to the three cargo
holds in order to achieve highest profit? Please formulate
as a Linear programming model and solve it in LP.
Loading Problem
• Is it a blending problem?
• Decision Variables?
• Objective?
• Constraints?
Loading Problem
Decision variables:
The weight of each of the
four products loaded in tons of
each of the cargo hold (12 product 4 tons of
decision variables); product 1
tons of
product 3
: tons of product 𝑖 shipped
by cargo j , where 𝑖 = 1, 2, tons of
3, 4 and 𝑗 = f (forward), c product 2
Loading Problem
Objective Function:
Maximize profit from shipped products
Loading Problem
Constraints:
There are 4,800 tons of product 1 available.
Loading Problem
Constraints:
Forward cargo hold has weight capacity of 3,000 tons.
Loading Problem
Constraints:
Forward cargo hold has volume capacity of 145,000 cubic
feet.
Loading Problem
Constraints:
Balance constraints across cargo holds:
– The weight in the forward cargo hold must be within 5% of the
weight in the rear cargo hold.
– The weight in center cargo hold must be between 40% to 60% of
the total weight on board.
Loading Problem
Subject to
(product availability)
(weight capacity)
(volume capacity)
(center
cargo
balancing)
25
(Non-negativity constraints)
SMU Classification: Restricted
26
SMU Classification: Restricted
1.05+ 1.12
1.05 +1.12+1.16
1.05 1.0516
1.05
1.05
1.05+1.12
1 2 3 4 5 6 7 8 9
+
𝑎2 + + 14,000 + 18,000
+ + +16,000 20,000
++
Subject to
,,
Subject to
,,
Class Outline
LP Modelling Examples:
Network Models:
- Assignment Problem
- Transportation Problem
Assignment Problem
MachineCo owns four machines on which it needs to
complete four jobs. Each machine must be assigned to
a single job. The setup time required for each machine
to complete the jobs is given below. Minimize total setup
time.
Job 1 Job 2 Job 3 Job 4
Machine 1 14 5 8 7
Machine 2 2 12 6 5
Machine 3 7 8 3 9
Machine 4 2 4 6 10
Assignment Problem
Determines the most efficient assignment of
People to people (projects)
Jobs to machines
Contracts to bidders
Location of new factory / warehouse
Objective: minimize costs or distances.
Constraints: stock at each origin and requirement at
each destination.
Assignment Problem
MachineCo owns four machines on which it needs to
complete four jobs. Each machine must be assigned to
a single job. The setup time required for each machine
to complete the jobs is given below. Minimize total setup
time.
Job 1 Job 2 Job 3 Job 4
Machine 1 14 5 8 7
Machine 2 2 12 6 5
Machine 3 7 8 3 9
Machine 4 2 4 6 10
Assignment Problem
Subject to
Assignment Problem
How to solve using Solver?
Subject to
Assignment Problem
How to solve using Solver?
Subject to
Binary Decision
Variables
This is not an
LP.
Assignment Problem
In an assignment problem where only one job or worker is
assigned to one machine or project, we have the following
important results:
•
The binary constraint can be ignored and the problem
can be solved by LP.
Assignment Problem
Subject to
Assignment Problem
Assignment Problem
In an assignment problem where only one job or worker is
assigned to one machine or project, we have the following
important results:
•
The binary constraint can be ignored and the problem
can be solved by LP.
•
There is a special-purpose algorithm (more efficient than
LP) to solve the assignment problem
Assignment Problem
Why do we have special purpose algorithms?
- Their computation times are generally 100 times faster
than the simplex algorithm
- They require less computer memory (and hence can
permit larger problems to be solved)
Unbalanced Assignment
If number of machines > number of jobs, how to update the
formulation?
ubject to Subject to
Unbalanced Assignment
If number of machines < number of jobs, how to update the
formulation?
ubject to Subject to
Unbalanced Assignment
Formulation 1 (unbalanced formulation)
- number of machines > number of jobs: Change machine equalities to
inequalities
- number of machines < number of jobs: Change job equalities to inequalities
Marriage Problem
Imagine the following situation. Mickey Mouse, Donald
Duck, Popeye, and the Beast are marooned on a desert
island with Minnie Mouse, Daisy Duck, Olive Oyl, and
Beauty. The table which follows indicates the disutility
each couple would experience if they spent all of their
time together. Match them as couples to minimize the
disutility.
Marriage Problem
Disutility Beauty Daisy Minnie Olive Oyl
Score Duck Mouse
Beast 0 4 3 4
Donald 2 1 1 7
Mickey 2 2 0 5
Popeye 2 4 2 2
Marriage Problem
Decision variables?
Objective?
Constraints?
Marriage Problem
Decision variables:
: 1 if male i is assigned to female j,
0 otherwise (if male is not assigned to female j).
where 𝑖 = 1, 2, 3, 4 and 𝑗 = 1, 2, 3, 4.
,
,
,
,
Decision Analysis – OPIM 101 57
Week 4
SMU Classification: Restricted
Marriage Problem
Objective:
Minimize the total disutility from assignments
Define disutility parameter:
disutility from assigning male i to female j
Marriage Problem
Constraints:
Each male is assigned to one and only one female
Marriage Problem
Constraints:
Each female is assigned to one and only one male
Marriage Problem
Subject to