Lectures27and28 Optimization PDF
Lectures27and28 Optimization PDF
Project Reminders
n Presentations are next week: December 9 midnight
(YouTube) or December 10 during class time
n Presentation (slide deck + delivery, etc.) is 20% of your
project grade
n Five minute presentations
n Consider the presentation as a five minute “pitch” of your
project idea and what you have done so far
n The analysis does not have to be totally complete at this stage
as you will still have time left to work on the project
n Still you should have done enough work in data processing
and at least run some initial models by this point
n The presentation should entice us to read your report to see
how the “story” ends
Today’s Agenda
n Internet Advertising
Online Advertising
$80,000
$70,000
$60,000
$50,000
$40,000
$30,000
$20,000
$10,000
$0
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016
Vickrey Auctions
Click-Through-Rates (CTRs)
Position 1
Position 2 Query
Depth = 4
Position 3
Position 4
n Constraints:
n Cannot exceed advertisers’ budgets
n Cannot display more ads in any position than the number of queries
n Three Queries:
n “hotel near MIT”
n “MIT hotel”
n “Cambridge hotel”
n Four Bidders:
n Kendall Hotel
n Marriott Boston/Cambridge
n Royal Sonesta
n Hotel Marlowe
Bid
Hotel “hotel near “MIT hotel” “Cambridge Daily Budget
MIT” hotel”
Kendall $8 $12 $0 $10
Marriott $25 $15 $25 $50
Sonesta $15 $0 $15 $20
Marlowe $15 $20 $10 $30
Queries/day 15 20 25
Common Mathematical
Ingredients
Common Mathematical Ingredients
Objective to be optimized Minimize
LP Example
Resource
Data English Currier Primrose 1 Primrose 2 Bluetail
Availability
Clay (lbs.) 10 15 10 10 20 130
Enamel (lbs.) 1 2 2 1 1 13
Dry Room 3 1 6 6 3 45
(hours)
Kiln (hours) 2 4 2 5 3 23
Earnings 51 102 66 66 89
($/Set)
Define Variables
Construct Constraints
n In this example:
n (Clay) 10 E + 15 C + 10 P1 + 10 P2 + 20 B ≤ 130
n (Enamel) 1 E + 2 C + 2 P1 + 1 P2 + 1 B ≤ 13
n (Dry Room) 3 E + 1 C + 6 P1 + 6 P2 + 3 B ≤ 45
n (Kiln) 2 E + 4 C + 2 P1 + 5 P2 + 3 B ≤ 23
n (Primrose) P1 – P2 = 0
Nonnegativity Conditions
(Variable Restrictions)
n There are usually a few intuitive constraints that we
have to explicitly mention
n These include assumptions about decision variables being
nonnegative and/or integers
n In this example:
n E≥0
n C≥0
n P1 ≥ 0
n P2 ≥ 0
n B≥0
Maximize 51 E + 102 C + 66 P1 + 66 P2 + 89 B
Subject to:
(Clay) 10 E + 15 C + 10 P1 + 10 P2 + 20 B ≤ 130
(Enamel) 1 E + 2 C + 2 P1 + 1 P2 + 1 B ≤ 13
(Dry Room) 3 E + 1 C + 6 P1 + 6 P2 + 3 B ≤ 45
(Kiln) 2 E + 4 C + 2 P1 + 5 P2 + 3 B ≤ 23
(Primrose) P1 – P2 = 0
(Nonnegativity) E, C, P1, P2, B ≥ 0
Common Mathematical
Ingredients
Common Mathematical Ingredients
Objective to be optimized Maximize profit
n Goal: find a feasible solution that optimizes the objective function. This is
called a constrained optimization problem.
n An optimal solution is a feasible solution that achieves the best value of the
objective function over all other feasible solutions.
Optimization
n Three Queries:
n “hotel near MIT”
n “MIT hotel”
n “Cambridge hotel”
n Four Bidders:
n Kendall Hotel
n Marriott Boston/Cambridge
n Royal Sonesta
n Hotel Marlowe
Bid
Hotel “hotel near “MIT hotel” “Cambridge Daily Budget
MIT” hotel”
Kendall $8 $12 $0 $10
Marriott $25 $15 $25 $50
Sonesta $15 $0 $15 $20
Marlowe $15 $20 $10 $30
Queries/da 15 20 25
y
Queries 15 20 25
/day
IEOR 242, Fall 2019 - Lecture 27
+ Quality Score = (expected bid 50
revenue/click) x 1,000
Marlowe $15 0.086 1,290 2 $20 0.086 1,720 1 $10 0.108 1,080 3 $30
Queries 15 20 25
/Day
Bidding Landscapes
n “MIT hotel”
n Bidding Landscape is {Marlowe, Kendall, Marriott}
n “Cambridge hotel”
n Bidding Landscape is {Marriott, Sonesta, Marlowe}
n For “hotel near MIT” we can display any of the following ordered “slates”:
n { Marriott, Marlowe }, { Marriott, Sonesta }, { Marriott, Kendall }, { Marlowe,
Sonesta }, { Marlowe, Kendall }, { Sonesta, Kendall }, { Marriott }, { Marlowe },
{ Sonesta }, { Kendall }
n These are called the “slates” for the query “hotel near MIT”
Slates
{Marriott}
{Marlowe}
{Sonesta}
{Kendall}
Decision Variables
{Marriott} x16
{Marlowe} x17
{Sonesta} x18
{Kendall} x19
Query Constraints
“MIT hotel”:
x20 + x21 + x22 + x23 + x24 + x25 ≤ 20
“Cambridge hotel”:
x30 + x31 + x32 + x33 + x34 + x35 ≤ 25
revenue/click) x 1,000
Marlowe $15 0.086 1,290 2 $20 0.086 1,720 1 $10 0.108 1,080 3 $30
Queries 15 20 25
/Day
Price-Per-Click
Hotel “hotel near MIT” “MIT hotel” “Cambridge hotel”
Kendall $0.01 $8.36 --
Marriott $23.89 $0.01 $18.43
Sonesta $11.94 -- $12.56
Marlowe $11.34 $13.54 $0.01
Marriott $25 1,350 1 $23.89 $15 810 3 $0.01 $25 1,750 1 $18.43 $50
Marlowe $15 1,290 2 $11.34 $20 1,720 1 $13.54 $10 1,080 3 $0.01 $30
Queries/D 15 20 25
ay
Objective Function
Sonesta budget: 11.94x (0.04*x11+ 0.04*x13+ 0.065*x15+ 0.065*x18) + 12.56x( 0.054*x30+ 0.086*x32+0.086*x34) ≤ 20
Marlowe budget: 11.34x (0.054*x10+ 0.086*x13+ 0.086*x14+ 0.086*x17) +13.54x(0.086*x20+ 0.086*x21+ 0.086*x23)
+ 0.01x( 0.067*x31+ 0.067*x32+0.108*x35) ≤ 30
Queries for “hotel near MIT”: x10 + x11 + x12 + x13 + x14 + x15 + x16 + x17 + x18 + x19 ≤ 15
Queries for “MIT hotel”: x20 + x21 + x22 + x23 + x24 + x25 ≤ 20
Queries for “Cambridge hotel”: x30 + x31 + x32 + x33 + x34 + x35 ≤ 25
x10 , x11 , x12 , x13 , x14 , x15 , x16 , x17 , x18 , x19 , x20 , x21 , x22 , x23 , x24 , x25 , x30 , x31 , x32 , x33 , x34 , x35 integers
Optimal Solution
“hotel near MIT” “MIT hotel” “Cambridge hotel”
Optimal Optima Optimal
Slate Value Slate l Slate Value
Value
{Marriott, Marlowe} 9 {Marlowe, {Marriott, Sonesta} 25
18
Kendall}
{Marriott, Sonesta} 4 {Marlowe, {Marriott, Marlowe}
1
Marriott}
{Marriott, Kendall} {Kendall, Marriott} 1 {Sonesta, Marlowe}
{Marlowe, Sonesta} 2 {Marlowe} {Marriott}
{Marlowe, Kendall} {Kendall} {Sonesta}
{Sonesta, Kendall} {Marriott} {Marlowe}
{Marriott}
{Marlowe}
{Sonesta}
{Kendall}
“Predict-then-Optimize Pipeline”
Advertiser’s Problem
“Predict-then-Optimize Pipeline”
An Observation
Predict-then-Optimize Framework
n Training data:
Predict-then-Optimize Paradigm
Predict Optimize
0
n This equivalence -2 -1 0 1 2
happens with:
0-1 Loss
1
Hinge Loss
-3 -2 -1 0 1
yibTxi
2 3
n Definition:
n Recall
n Where
n Therefore
n Plugging in yields
Starting Node
IEOR 242, Fall 2019 - Lecture 27
+ 105
Conclusions
An Increasing Problem…
A Dominant Proposal
Some Intuition
Perfect Hindsight/Foresight
Scenario
n Suppose that it’s January 1, 2019, a genie grants you
one wish, and you decide (quite generously) to
redo all of the kidney transplants that happened in
2018. What should you do?
Perfect Hindsight/Foresight
Scenario, cont.
n In such a perfect hindsight/foresight scenario, you
might consider solving an optimization problem
Patients Organs
1 1
2 2
.. ..
. .
P O
Decision Variables
Fairness Constraints
Shadow Prices
Reduced “Costs”
Overall Approach
Evaluation
Evaluation, cont.
Resulting Formula
Simulation
Results
n Simulation
results of the
KTC policy
and the
previously
described
new policy:
Conclusions