Professional Documents
Culture Documents
OPIM101 6 Updated
OPIM101 6 Updated
Decision Analysis
OPIM 101
Liang Xu
Assistant Professor of Operations Management
leonxu@smu.edu.sg
Recess
LP Modelling Examples:
Network Models:
- Assignment Problem
- Transportation Problem
- Transhipment Problem
Flair Furniture
From Memphis Denver NY Chicago LA Boston
NY - - $0 $6 $16 $17
Chicago - - $6 $0 $4 $16
LA - - - - $0 -
Boston - - - - - $0
Flair Furniture
What are the decisions to make? What are the objective and
constraints?
Flair Furniture
s.t. 150
200
=0 Supply node:
outflow – inflow
=0
=130 Transshipment node: outflow –
=130 inflow = 0
Destination node:
inflow – outflow = demand
𝑖 𝑗
at Node 6 at Node 6
6
SMU Classification: Restricted
Class Outline
Integer Linear Programming
Learning Objectives
Integer Linear Programming (ILP)
- Understand the difference between integer linear programming
(ILP) and LP
- Understand how to solve an ILP in Excel
- Understand how to incorporate logical expressions in
quantitative models using binary variables
Wiring hours
Assembly hours
Non-negativity
Integer Values
Integer constraint makes the solution more realistic.
Decision Analysis – OPIM 101 12
Week 6
SMU Classification: Restricted
un
c he
c k!
15
SMU Classification: Restricted
Optimal
solution is not
integer!
19
SMU Classification: Restricted
Subproblem B
Subproblem A
20
SMU Classification: Restricted
Knapsack Problem
https://www.youtube.com/watch?v=Jnc75gjf_84
https://www.youtube.com/watch?v=kKJZ8fznQ1Y
Decision Analysis – OPIM 101 23
Week 6
SMU Classification: Restricted
Knapsack Problem
You are joining some friends on a camping trip. You are
preparing your backpack, and you realize that you
cannot possibly carry all this weight! You rate each item
for its utility on a scale of 1 to 100 (100 = most
beneficial). You want to carry 35 pounds at most. What
is the optimal packing plan to maximize the total utility?
Item 1 2 3 4 5 6 7 8
Weight 1 4 7 6 7 12 5 14
Utility 20 50 80 60 50 75 30 70
Knapsack Problem
How to define the decision variables, objective and
constraints?
Item 1 2 3 4 5 6 7 8
Weight 1 4 7 6 7 12 5 14
Utility 20 50 80 60 50 75 30 70
Knapsack Problem
Decision variables
=1 if Item 𝑖 is chosen;
=0 if Item 𝑖 is not chosen, where 𝑖=1, …, 8
Knapsack Problem
We can define the following parameters:
: utility of item 𝑖, 𝑖=1, …, 8
: weight of item 𝑖 (in pounds), 𝑖=1,…, 8
Knapsack Problem
un
ch
e ck
!
Knapsack Problem
How to model the following variations of constraints in
knapsack problem?
- Item 6 and Item 7 cannot be chosen at the same time.
- Item 6 and Item 7 are either both chosen, or both not chosen.
- If Item 1 is chosen, then Item 5 must be chosen.
- Exactly one of the following three items must be chosen: item 1,
item 2, and item 3.
- If item 1 and 2 are chosen, then item 3 must be chosen.
Knapsack Problem
Item 6 and Item 7 cannot be chosen at the same time
(alternatively, if item 6 is chosen, item 7 would not be
chosen).
𝑥6 + 𝑥 7 ≤1 1 0
0 1
0 0
Knapsack Problem
Item 6 and Item 7 are either both chosen, or both not
chosen.
𝑥6 =𝑥 7
Knapsack Problem
If Item 1 is chosen, then Item 5 must be chosen.
1 1
𝑥5 ≥ 𝑥 1
0 1
0 0
Knapsack Problem
One of and only one of the following three items must be
chosen: item 1, item 2, and item 3.
+ =1
Knapsack Problem
If item 1 and 2 are chosen, then item 3 must be chosen.
-1
Panther Manufacturing
Panther is manufacturing three types of cars: compact, midsize
and large cars. The production of cars requires both steel and
labor. The profit of cars, the available steel and labor, as well
as the production requirement are summarized in the
following table. What is the optimal production plan to
maximize the total profit?
Compact Midsize Large Available
Steel (ton) 1.5 3 5 6,000
Labor (hr.) 30 25 40 60,000
Profit ($) 2,000 3,000 4,000
Panther Manufacturing
Decision Variables:
xi : Number of cars of type 𝑖 produced, where 𝑖=1,…,3 denote
compact, midsize and large cars, respectively.
Panther Manufacturing
Suppose that the production of each car type would utilize a
specific manufacturing facility (one facility for each car type)
and the one-time setup cost of each facility is $30,000.
To maximize the profit, how to build up an integer programming
model?
Panther Manufacturing
“producing each car type requires a specific production facility
(one facility for each car type). The setup cost for each facility
is $30,000”
Define = 1 if production
facility for type car is set up;
= 0 otherwise,
Panther Manufacturing
Define binary variables , and .where =1 if the facility type 𝑖 car is set up; =0
otherwise.
“ if , = 0, , must also be 0” can be expressed as `` ≤ ,”
, , , are sufficiently large values.
s.t.
+
+
,, How to choose , , ?
for
, = integer
for
41
SMU Classification: Restricted
Panther Manufacturing
How to choose ?
+ 𝑥1 ≤ 2,000 𝑀 1 ≥ 2,000
+ 30
+ 𝑥1 ≤ 2,000 𝑀 2 ≥ 2,000
+ 25
+
𝑥1 ≤ 1,2 00 𝑀 3 ≥ 1,200
+ 40
Panther Manufacturing
Panther Manufacturing
Panther Manufacturing
Production of each type of car is only economically feasible if at
least 1,000 cars of that type are produced. That is, if one type
of cars is produced, then at least 1,000 cars should be
produced (or in other words, we either produce no cars of
each type or we produce at least 1000 cars of each type)
How to formulate the problem?
Panther Manufacturing
“Production of a type of car is only economically feasible if
at least 1,000 cars of that type are produced”
If = 0, must also be 0; if , ”
Panther Manufacturing
max 2000𝑥1+3000𝑥2+4000𝑥3
• “if , ”:
• “if , ”:
𝑥1 ,𝑥2 ,𝑥3
Decision Analysis – OPIM 101 49
Week 6
SMU Classification: Restricted
Panther Manufacturing
Midterm FAQ’s
1. What is the exact duration of the exam?
The duration will be 120 minutes. It will be in class time, please
come to class ON TIME!
Midterm FAQ’s
3. Which chapters from the book will be in the exam?
Chapters 1, 2, 3, 4, 5, 6 from Ragsdale, 1, 2, 3, 5, 6, 7 from
Taylor and 1, 2, 3, 6, 7 from ASWM, 7,8,9, 10 from RSHH. I
will design exam based on my lectures from Week1-Week6.
4. What is the format of the exam?
True/false, multiple choice, quantitative questions (similar to in-
class, homework questions).
NOTHING THAT WE HAVE NOT COVERED IN THE CLASS
Midterm FAQ’s
5. You Can Use Excel! There will be questions to be solved with
more than two decision variables.
Be efficient in building models from scratch …
Topics
Introduction to Decision Analysis: Concepts, definitions, applications.
Linear programming – Graphical solution, special cases, sensitivity
analysis, formulation tricks, more than 2 variable solution
Blending Problem, Financial Planning Problem.
Assignment Problem, Transhipment Problem
Transportation Problem – Inventory Problem
Integer Linear Programming, Binary Variables, Logical Constraints