50
(How) does Machine Learning impact OR? Marco L¨ ubbecke Lehrstuhl f¨ ur Operations Research RWTH Aachen University @mluebbecke NGB/LNMB Seminar · Lunteren, NL · January 16, 2019

(How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

(How) does Machine Learning impact OR?

Marco LubbeckeLehrstuhl fur Operations Research

RWTH Aachen University

@mluebbecke

NGB/LNMB Seminar · Lunteren, NL · January 16, 2019

Page 2: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

1994

@mluebbecke · How does ML impact OR? · 2/33

Page 3: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

1994

@mluebbecke · How does ML impact OR? · 2/33

Page 4: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

2019

@mluebbecke · How does ML impact OR? · 3/33

Page 5: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

2019

@mluebbecke · How does ML impact OR? · 3/33

Page 6: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X

, d features, labels Y

(xi

, yi

)

(φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 7: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X

, d features,

labels Y

(xi, yi)

(φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 8: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X , d features, labels Y

(xi, yi) (φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 9: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X , d features, labels Y

(xi, yi) (φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 10: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X , d features, labels Y

(xi, yi) (φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 11: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Supervised Learning: Classification

I data X , d features, labels Y

(xi, yi) (φ(xi), yi)φ : X → Rd

algorithm

f : Rd → Y

s.t. errorxi∈X

(f(φ(xi)), yi) “small”

“learns”

an optimization problem

@mluebbecke · How does ML impact OR? · 4/33

Page 12: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Optimization naturally appears in ML

“Optimization lies at the heart of ML. Most MLproblems reduce to optimization problems.

— Bennett, Parrado-Hernandez (2006) ”I minimize e.g., prediction error

I continuous, convex optimization

I discrete, integer optimization

@mluebbecke · How does ML impact OR? · 5/33

Page 13: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Optimal Classification Trees

I several mixed-integer programs e.g., Bertsimas & Dunn (2017)

I can impose additional structural constraints! Bastert (2018)

I “path-based” integer program Fırat et al. (2018)

source: www.edureka.co/blog/decision-trees

I goals? use few nodes, shallow depth, . . .

I improves accuracy over classical CART method

@mluebbecke · How does ML impact OR? · 6/33

Page 14: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Example: Robustifying against adverserial Inputs

@mluebbecke · How does ML impact OR? · 7/33

Page 15: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Many Opportunities for Discrete Optimization in ML

I capture combinatorial explosion

I feature selection

I outlier detection

I parameter tuning

I . . .

→ check out what the Montreal people are up to

@mluebbecke · How does ML impact OR? · 8/33

Page 16: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

How about the converse Direction?

I “emulating the expert” Barmann, Martin, Pokutta & Schneider (2017)

I observe a decision maker max cTtruex : x ∈ X(p)

I learn their objective function given (pt, x∗t )t=1,...,T

I online learning

@mluebbecke · How does ML impact OR? · 9/33

Page 17: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

ML may help improving Optimization Algorithms

I e.g., branching in B&B

I full strong branching gives locally perfect information

I predict the strong branching score of a variable

I features describe state of a variable

I supervised learning: regression

→ promising proof-of-conceptMarcos Alvarez, Louveaux & Wehenkel (2017)

I survey on ML in branching/searching Lodi & Zarpellon (2017)

→ a lot more research in 2018

@mluebbecke · How does ML impact OR? · 10/33

Page 18: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

More ML for algorithmic Ingegredients of B&B

I search strategy / node selection He et al. (2014)

I which primal heuristic to run when? Khalil et al. (2017)

I challenge: cut selection

@mluebbecke · How does ML impact OR? · 11/33

Page 19: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

A Progress Bar for Branch-and-Bound?

I predict the runtime of branch-and-bound algorithmsHutter, Xu, Hoos & Leyton-Brown (2014)

I CPLEX 12.1 on 1510 publicly available MIPs

pred

icte

d

actual runtime

@mluebbecke · How does ML impact OR? · 12/33

Page 20: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning the Optimum (for specific Problems)

@mluebbecke · How does ML impact OR? · 13/33

Page 21: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning when to solve a MIP by Branch-and-Price

I our MIP solver GCG detects many potential DW reformulations

MIP+

CPU time

...

...

100+ features#conss, #vars, %constype,%vartype, #blocks, . . .

φk-NN

binary classifier f

“run SCIP or GCG?”

learnsfaster

SCIP GCG

fSCIP 69.5% 9.9%GCG 6.9% 13.7%

Kruber, L, Parmentier (2017)

@mluebbecke · How does ML impact OR? · 14/33

Page 22: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning when to solve a MIP by Branch-and-Price

I our MIP solver GCG detects many potential DW reformulations

MIP+

CPU time

...

...

100+ features#conss, #vars, %constype,%vartype, #blocks, . . .

φ

k-NN

binary classifier f

“run SCIP or GCG?”

learnsfaster

SCIP GCG

fSCIP 69.5% 9.9%GCG 6.9% 13.7%

Kruber, L, Parmentier (2017)

@mluebbecke · How does ML impact OR? · 14/33

Page 23: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning when to solve a MIP by Branch-and-Price

I our MIP solver GCG detects many potential DW reformulations

MIP+

CPU time

...

...

100+ features#conss, #vars, %constype,%vartype, #blocks, . . .

φk-NN

binary classifier f

“run SCIP or GCG?”

learns

fasterSCIP GCG

fSCIP 69.5% 9.9%GCG 6.9% 13.7%

Kruber, L, Parmentier (2017)

@mluebbecke · How does ML impact OR? · 14/33

Page 24: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning when to solve a MIP by Branch-and-Price

I our MIP solver GCG detects many potential DW reformulations

MIP+

CPU time

...

...

100+ features#conss, #vars, %constype,%vartype, #blocks, . . .

φk-NN

binary classifier f

“run SCIP or GCG?”

learnsfaster

SCIP GCG

fSCIP 69.5% 9.9%GCG 6.9% 13.7%

Kruber, L, Parmentier (2017)

@mluebbecke · How does ML impact OR? · 14/33

Page 25: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning how to attack MIQPs

I linearize quadratic part or not Bonami et al. (2018)

I “ML to parametrize optimization algorithm”

+ try to derive structural explanations/insights

@mluebbecke · How does ML impact OR? · 15/33

Page 26: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

What ML Answers can we (Optimizers) expect?

I we get statistical answers → not what we are used to see

I we have domain/expert knowledge: e.g., pseudo-costs

I ML may give a better predictor, but no explanation

→ more precisely: no structural explanation

I some info can be extracted from most influential features

→ interpretability is a huge theoretical and practical topic

@mluebbecke · How does ML impact OR? · 16/33

Page 27: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Decision Making: Machine Learning

“Machine Learning and Artificial Intelligencedelivers the most value when you need tomake lots of similar decisions quickly.

— Ingo Mierswa, Rapidminer ”I simple decisions: e.g., auto correct current word

I solution: often a single score → greedy

I keep/learn habits: extrapolate from the past (!)

@mluebbecke · How does ML impact OR? · 17/33

Page 28: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Typical Example: Predictive Maintenance

source: blog.capterra.com/should-you-invest-in-a-predictive-maintenance-strategy/

@mluebbecke · How does ML impact OR? · 18/33

Page 29: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Exploit all Options: Prescriptive Maintenance

source: www.siemens.com/press/pool/de/pressebilder/photonews/pn200826/300dpi/pn200826-12 300dpi.jpg

@mluebbecke · How does ML impact OR? · 19/33

Page 30: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Decision Making: Optimization

“How often can the result of an optimizationmodel be captured in a single variable?

— Ed Rothberg, Gurobi ”I solution: not only the objective value!

I complex decisions/plans: e.g., timetables, crew schedules, . . .

I global scope: models all (reasonable) interdependencies

@mluebbecke · How does ML impact OR? · 20/33

Page 31: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Perfect Partners

“Current Standard:” Predictive then Prescriptive Analytics

ML harnesses the bigness of data (the past and present);Optimization captures the bigness of options (the future).

I e.g., predict arc travel times Gmira et al. (2017)

I e.g., predict availability of charging stations L., (ongoing)

@mluebbecke · How does ML impact OR? · 21/33

Page 32: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning (about) optimal good Solutions

I learn how good (partial) solutions look like

I this may help finding good solutions faster

I reinforcement learning to predict trajectories Le, Liu, Lau (2016)

I predict partial optimal job-shop schedules Shylo, Shams (2018)

→ guide a tabu search

I predict (aggr.) solutions to stochastic ILPs Larsen et al. (2018)

→ high-speed, high-accuracy for particular problems

I deep-learning / container pre-marshalling Tierney et al. (2018)

→ guide a tree search

...

@mluebbecke · How does ML impact OR? · 22/33

Page 33: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

MLers think ML can do Optimization

@mluebbecke · How does ML impact OR? · 23/33

Page 34: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

MLers think ML can do Optimization

I open source library github.com/deepmind/graph_nets

@mluebbecke · How does ML impact OR? · 23/33

Page 35: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

MLers think ML can do Optimization

@mluebbecke · How does ML impact OR? · 23/33

Page 36: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

MLers think ML can do Optimization

@mluebbecke · How does ML impact OR? · 23/33

Page 37: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

MLers think ML can do Optimization

@mluebbecke · How does ML impact OR? · 23/33

Page 38: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Maybe they are right?

@mluebbecke · How does ML impact OR? · 24/33

Page 39: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Maybe they are right?

@mluebbecke · How does ML impact OR? · 24/33

Page 40: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Maybe they are right?

@mluebbecke · How does ML impact OR? · 24/33

Page 41: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

We need to (and do) talk to each other

I classification ML4Opt: end-to-end, offline, online

@mluebbecke · How does ML impact OR? · 25/33

Page 42: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

We need to (and do) talk to each other

@mluebbecke · How does ML impact OR? · 25/33

Page 43: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

What’s next?

@mluebbecke · How does ML impact OR? · 26/33

Page 44: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Robust Optimization

I data-driven design of uncertainty sets Bertsimas et al. (2018)

I a practical notion of robustness?

@mluebbecke · How does ML impact OR? · 27/33

Page 45: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning (about) Optimization Models?

I a business school student asked me why we need models

I ML can make sense of data

I optimization models are also “data”

→ (how) can ML help us make sense of optimization models?

I can ML learn (+ help automate) good modeling?

@mluebbecke · How does ML impact OR? · 28/33

Page 46: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Learning (about) Optimization Problems?

potential first step:

I can ML learn the semantics of a MIP model (“the problem”)?

⇒ e.g., help the modeler find a better formulation

@mluebbecke · How does ML impact OR? · 29/33

Page 47: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

The AI Umbrella?

I OR vs. analytics discussion X

I OR vs. AI discussion ?

@mluebbecke · How does ML impact OR? · 30/33

Page 48: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Why is this relevant?

source: blogs.worldbank.org/category/tags/artificial-intelligence

I if the fourth industrial revolution is about AI,OR should be part of it

@mluebbecke · How does ML impact OR? · 31/33

Page 49: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

Why is this relevant?

I besides (perceived) relevance

I and besides the enormous public reception:

I job openings in industry

I position titles in academia

I calls by funding bodies

I journal mission statements

I recognition by peers

→ all AI/ML “framed”. . .

@mluebbecke · How does ML impact OR? · 32/33

Page 50: (How) does Machine Learning impact OR? - lnmb · Learning (about) optimal good Solutions I learn how good (partial) solutions look like I this may help nding good solutions faster

(How) does Machine Learning impact OR?

Marco LubbeckeLehrstuhl fur Operations Research

RWTH Aachen University

@mluebbecke

NGB/LNMB Seminar · Lunteren, NL · January 16, 2019

@mluebbecke · How does ML impact OR? · 33/33