SlideShare a Scribd company logo
1 of 23
Download to read offline
Alkis Vazacopoulos
Robert Ashford
Optimization Direct Inc.
CPLEX
Very Large Optimization Models
And parallel processing
Summary
• Challenges of Large Scale Optimization
• Heuristic Software Approach
• Scheduling, supply chain and telecomms
examples
• Benefits and problems of parallelism
Large Scale Optimization
• Many models now solved routinely which would have
been impossible (‘unsolvable’) a few years ago
• BUT: have super-linear growth of solving effort as model
size/complexity increases
• AND: customer models keep getting larger
• Globalized business has larger and more complex supply
chain
• Optimization expandinginto new areas, especially
scheduling
• Detailed models easier to sell to management and end-
users
The Curse of Dimensionality: Size Matters
• Super-linear solve time growth often supposed
• The reality is worse
• Few data sets available to support this
• Look at randomly selected sub-models of two scheduling
models
• Simple basic model
• More complex model with additional entity types
• Two hour time limit on each solve
• 8 threads on 4 core hyperthreaded Intel i7-4790K
• See how solve time varies with integers after presolve
Simple model
0
1000
2000
3000
4000
5000
6000
7000
8000
0 10000 20000 30000 40000 50000
Solution  time  in  seconds
Numer  of  ineteger  entities
Complex model
0
1000
2000
3000
4000
5000
6000
7000
8000
0 5000 10000 15000 20000 25000 30000
Solution  time
Integer  entities
Why size matters
• Solver has to
• (Presolve, probe and) solve LP relaxation
• Find and apply cuts
• Branch on remaining infeasibilities (and find and apply cuts too)
• Look for feasible solutions with heuristics all the while
• Simplex relaxation solves theoretically NP, but in practice effort
increases between linearly and quadratic
• Barrier solver effort grows more slowly, but:
• cross-over still grows quickly
• usually get more integer infeasibilities
• can’t use last solution/basis to accelerate
• Cutting grows faster than quadratic: each cut requires more
effort, more cuts/round, more rounds of cuts, each round harder
to apply.
• Branching is exponential: 2n in number of (say) binaries n
What can be done?
• Decomposition
• Solve smaller models
• Use ‘good’ formulations
• As tight as possible
• Avoid symmetry
• Settle for a good solution
• Use heuristics
• Use more powerful hardware
• Can usually make minor improvements by having a faster
processor and memory
• Big potential is from parallel processing
• Use 4, 8 12, 24,… or more threads on separate ‘processors’
Parallel Processing
• CPU clock speed is not improving
• Power consumed (and heat generated accordingto the
square of the speed
• Memory speed is not improving (much)
• Can fit more processors onto a single chip
• Can get wider registers
• Vectorization
• do several (up to 8) fp calculationsat once on 512 bit
register (SIMD)
• of limited use in sparse optimization
• Cannot use full processor capability if using many cores
Heuristic Solution Software
• Proof of optimality may be impractical, but want good solutions to (say)
20%
• Uses CPLEX callable library
• First-feasible-solution heuristics
• Improvement heuristic
• Solves sequence of smaller sub-model(s)
• approach used e.g. by RINS and local branching
• Use model structure to create sub-models and combine solutions
• Assess solution quality by a very aggressive root solve of whole model
• Multiple instances can be run concurrently with different seeds
• Can run on only one core
• Can interrupt at any point and take best solution so far
time limit / call-back /SIGINT
Parallel Heuristic Approach
• Run several heuristic threads with different seeds
simultaneously
• CPLEX callable library very flexible, so
• Exchange solution information between runs
• Kill sub-model solves when done better elsewhere
• Improves sub-model selection
• Opportunistic or deterministic
• 5 instances run on 24 core	
  Intel	
  2	
  x	
  Xeon	
  E5-­‐2690v3	
  running	
  
at	
  up	
  to	
  3.5	
  GHz	
  (DDR4-­‐2133	
  memory)
Example: Large Scale Scheduling, Supply
Chain and Telecomms Models
† No usable (say within 30% gap) solution after 3 days run time
on fastest hardware (Intel i7 4790K ‘Devil’s Canyon’)
Model entities rows cols integers
Easy 314 299288 57804 57804
Medium† 314 389560 94200 94200
Difficult† 406 371964 149132 149132
Large 302965 2836736 4892396 18271400
Huge 27000 2577916 12944400 12944400
Heuristic Results on Scheduling Models
8	
  Cores	
  on	
  Intel	
  2	
  x	
  Xeon	
  E5-­‐2690v3	
  3GHz
Solution Time Gap
Easy 96 231.06 0%
Medium 113 28800 ≤	
  13%
Difficult 773.8 28800 ≤	
  56%
Large 1.1493E+7 28800 ≤	
  1%
Huge 370 28800 ≤	
  61%
Lower	
  bounds	
  	
  established	
  by	
  separate	
  CPLEX	
  runs
Times	
  are	
  in	
  seconds
Huge Model Heuristic Behavior
300
500
700
900
1100
1300
1500
0 5000 10000 15000 20000 25000 30000
Solution  Value
Seconds
1  Threads
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
Large Model Heuristic Behavior
0.00E+00
5.00E+08
1.00E+09
1.50E+09
2.00E+09
2.50E+09
3.00E+09
3.50E+09
4.00E+09
4.50E+09
5.00E+09
0 5000 10000 15000 20000 25000 30000
Solution  Value
Seconds
1  Thread
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
Large Model Heuristic Behavior
11000000
11500000
12000000
12500000
13000000
13500000
14000000
14500000
15000000
0 5000 10000 15000 20000 25000 30000
Solution  Value
Seconds
1  Thread
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
Difficult Model Heuristic Behavior
300
500
700
900
1100
1300
1500
0 5000 10000 15000 20000 25000 30000
Solution  Value
Seconds
1  Thread
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
Medium Model Heuristic Behavior
100
110
120
130
140
150
160
170
180
190
200
0 5000 10000 15000 20000 25000 30000
Solution  Value
Seconds
1  Threads
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
Easy Model Heuristic Behavior
0
500
1000
1500
2000
2500
0 100 200 300 400 500 600
Solution  Value
Seconds
1  Thread
4  Threads
8  Threads
12  Threads
16  Threads
24  Threads
What’s Gone Wrong?
• Size (or rather density) matters again
• More threads can give worse results
• Used 24 core Intel Xeon E5-2690v3 server
• Not used hyperthreading
• Memory transfer speed is ~20GB/sec
• MIP solves become memory bus bound
Work Rate
0
200
400
600
800
1000
1200
1400
1 6 11 16 21
Work  Rate  (ticks/thread/sec)
Threads
Easy  (13.0)
Medium  (10.5)
Difficult  (8.5)
Large  (2.7)
Huge  (4.2)
Conclusions
• Hard size barriers to solve (to optimality) times
• May have to be satisfied with solutions of unproven
quality/optimality
• Heuristic methods demand serious consideration
• Parallel solution methods best way of exploiting modern
hardware
• Even these are limited by memory bus speeds
Thanks for listening
Robert Ashford
rwa@optimizationdirect.com
www.optimizationdirect.com

More Related Content

What's hot

What's hot (6)

Metaphors for Retrospectives - March 2017
Metaphors for Retrospectives - March 2017Metaphors for Retrospectives - March 2017
Metaphors for Retrospectives - March 2017
 
Lean Based Sofware Development
Lean Based Sofware DevelopmentLean Based Sofware Development
Lean Based Sofware Development
 
Methodology kanban
Methodology   kanbanMethodology   kanban
Methodology kanban
 
Altus Alliance 2016 - Transitioning From On-Premise to the Cloud
Altus Alliance 2016 - Transitioning From On-Premise to the CloudAltus Alliance 2016 - Transitioning From On-Premise to the Cloud
Altus Alliance 2016 - Transitioning From On-Premise to the Cloud
 
Cpk: indispensable index or misleading measure? by PQ Systems
Cpk: indispensable index or misleading measure? by PQ SystemsCpk: indispensable index or misleading measure? by PQ Systems
Cpk: indispensable index or misleading measure? by PQ Systems
 
Cross-department Kanban Systems - 3 dimensions of scaling #llkd15
Cross-department Kanban Systems - 3 dimensions of scaling #llkd15Cross-department Kanban Systems - 3 dimensions of scaling #llkd15
Cross-department Kanban Systems - 3 dimensions of scaling #llkd15
 

Viewers also liked

Excel+ppt+word2003使用技巧方法大全
Excel+ppt+word2003使用技巧方法大全Excel+ppt+word2003使用技巧方法大全
Excel+ppt+word2003使用技巧方法大全
0hanfeng0
 
Advanced Production Accounting of a Flotation Plant
Advanced Production Accounting of a Flotation PlantAdvanced Production Accounting of a Flotation Plant
Advanced Production Accounting of a Flotation Plant
Alkis Vazacopoulos
 
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
08600 Vasilkov
 
Espacio en el mensaje publicitario
Espacio en el mensaje publicitarioEspacio en el mensaje publicitario
Espacio en el mensaje publicitario
fjennyguerrero
 
Impulse!final inauguracion
Impulse!final inauguracionImpulse!final inauguracion
Impulse!final inauguracion
orbitalight
 
Chronological Decomposition Heuristic: A Temporal Divide-and-Conquer Strateg...
Chronological Decomposition Heuristic:  A Temporal Divide-and-Conquer Strateg...Chronological Decomposition Heuristic:  A Temporal Divide-and-Conquer Strateg...
Chronological Decomposition Heuristic: A Temporal Divide-and-Conquer Strateg...
Alkis Vazacopoulos
 
Контент и конверсионный трафик. Взаимное влияние
Контент и конверсионный трафик. Взаимное влияниеКонтент и конверсионный трафик. Взаимное влияние
Контент и конверсионный трафик. Взаимное влияние
Анастасия Эебердиева
 
Выпускной
ВыпускнойВыпускной
Выпускной
AkuJIa
 

Viewers also liked (19)

Pooling optimization problem
Pooling optimization problemPooling optimization problem
Pooling optimization problem
 
Excel+ppt+word2003使用技巧方法大全
Excel+ppt+word2003使用技巧方法大全Excel+ppt+word2003使用技巧方法大全
Excel+ppt+word2003使用技巧方法大全
 
Advanced Production Accounting of a Flotation Plant
Advanced Production Accounting of a Flotation PlantAdvanced Production Accounting of a Flotation Plant
Advanced Production Accounting of a Flotation Plant
 
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
Самаврядування васильківської ЗОШ І-ІІІ ступенів № 1
 
Development of Communicative Competence Analysis
Development of Communicative Competence AnalysisDevelopment of Communicative Competence Analysis
Development of Communicative Competence Analysis
 
Test powerpoint
Test powerpointTest powerpoint
Test powerpoint
 
NLR PACE Program
NLR PACE ProgramNLR PACE Program
NLR PACE Program
 
Espacio en el mensaje publicitario
Espacio en el mensaje publicitarioEspacio en el mensaje publicitario
Espacio en el mensaje publicitario
 
Assessment p health
Assessment p healthAssessment p health
Assessment p health
 
пищевые добавки
пищевые добавкипищевые добавки
пищевые добавки
 
Impulse!final inauguracion
Impulse!final inauguracionImpulse!final inauguracion
Impulse!final inauguracion
 
6 vamos al mundo
6 vamos al mundo6 vamos al mundo
6 vamos al mundo
 
Презентация Васильківської ЗОШ І-ІІІ ст№9 "Вулиця Бурки"
Презентация Васильківської ЗОШ І-ІІІ ст№9 "Вулиця Бурки"Презентация Васильківської ЗОШ І-ІІІ ст№9 "Вулиця Бурки"
Презентация Васильківської ЗОШ І-ІІІ ст№9 "Вулиця Бурки"
 
Chronological Decomposition Heuristic: A Temporal Divide-and-Conquer Strateg...
Chronological Decomposition Heuristic:  A Temporal Divide-and-Conquer Strateg...Chronological Decomposition Heuristic:  A Temporal Divide-and-Conquer Strateg...
Chronological Decomposition Heuristic: A Temporal Divide-and-Conquer Strateg...
 
Контент и конверсионный трафик. Взаимное влияние
Контент и конверсионный трафик. Взаимное влияниеКонтент и конверсионный трафик. Взаимное влияние
Контент и конверсионный трафик. Взаимное влияние
 
Advanced property tracking Industrial Modeling Framework
Advanced property tracking Industrial Modeling FrameworkAdvanced property tracking Industrial Modeling Framework
Advanced property tracking Industrial Modeling Framework
 
Выпускной
ВыпускнойВыпускной
Выпускной
 
Hermais
HermaisHermais
Hermais
 
Pendahuluan
PendahuluanPendahuluan
Pendahuluan
 

Similar to Very largeoptimizationparallel

Similar to Very largeoptimizationparallel (20)

CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case StudiesCPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
CPLEX Optimization Studio, Modeling, Theory, Best Practices and Case Studies
 
Large scalecplex
Large scalecplexLarge scalecplex
Large scalecplex
 
Solving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization StudioSolving Large Scale Optimization Problems using CPLEX Optimization Studio
Solving Large Scale Optimization Problems using CPLEX Optimization Studio
 
Scaling with sync_replication using Galera and EC2
Scaling with sync_replication using Galera and EC2Scaling with sync_replication using Galera and EC2
Scaling with sync_replication using Galera and EC2
 
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
[DBA]_HiramFleitas_SQL_PASS_Summit_2017_Summary
 
Parallel Distributed Deep Learning on HPCC Systems
Parallel Distributed Deep Learning on HPCC SystemsParallel Distributed Deep Learning on HPCC Systems
Parallel Distributed Deep Learning on HPCC Systems
 
Scaling tappsi
Scaling tappsiScaling tappsi
Scaling tappsi
 
Designing, Building, and Maintaining Large Cubes using Lessons Learned
Designing, Building, and Maintaining Large Cubes using Lessons LearnedDesigning, Building, and Maintaining Large Cubes using Lessons Learned
Designing, Building, and Maintaining Large Cubes using Lessons Learned
 
Everything I Ever Learned About JVM Performance Tuning @Twitter
Everything I Ever Learned About JVM Performance Tuning @TwitterEverything I Ever Learned About JVM Performance Tuning @Twitter
Everything I Ever Learned About JVM Performance Tuning @Twitter
 
Fundamentals.pptx
Fundamentals.pptxFundamentals.pptx
Fundamentals.pptx
 
Cassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra CommunityCassandra CLuster Management by Japan Cassandra Community
Cassandra CLuster Management by Japan Cassandra Community
 
PAC 2019 virtual Alexander Podelko
PAC 2019 virtual Alexander Podelko PAC 2019 virtual Alexander Podelko
PAC 2019 virtual Alexander Podelko
 
AWS Webcast - An Introduction to High Performance Computing on AWS
AWS Webcast - An Introduction to High Performance Computing on AWSAWS Webcast - An Introduction to High Performance Computing on AWS
AWS Webcast - An Introduction to High Performance Computing on AWS
 
Simulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud InfrastructuresSimulation of Heterogeneous Cloud Infrastructures
Simulation of Heterogeneous Cloud Infrastructures
 
Introduction to Algorithms And DataStructure
Introduction to Algorithms And DataStructureIntroduction to Algorithms And DataStructure
Introduction to Algorithms And DataStructure
 
Memory efficient java tutorial practices and challenges
Memory efficient java tutorial practices and challengesMemory efficient java tutorial practices and challenges
Memory efficient java tutorial practices and challenges
 
PraveenBOUT++
PraveenBOUT++PraveenBOUT++
PraveenBOUT++
 
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
 
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
JavaOne2016 - Microservices: Terabytes in Microseconds [CON4516]
 
Low-latency Multi-threaded Ensemble Learning for Dynamic Big Data Streams
Low-latency Multi-threaded Ensemble Learning for Dynamic Big Data StreamsLow-latency Multi-threaded Ensemble Learning for Dynamic Big Data Streams
Low-latency Multi-threaded Ensemble Learning for Dynamic Big Data Streams
 

More from Alkis Vazacopoulos

Missing-Value Handling in Dynamic Model Estimation using IMPL
Missing-Value Handling in Dynamic Model Estimation using IMPL Missing-Value Handling in Dynamic Model Estimation using IMPL
Missing-Value Handling in Dynamic Model Estimation using IMPL
Alkis Vazacopoulos
 
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
Alkis Vazacopoulos
 
Hybrid Dynamic Simulation (HDS) Industrial Modeling Framework (HDS-IMF)
Hybrid Dynamic Simulation (HDS)  Industrial Modeling Framework (HDS-IMF)Hybrid Dynamic Simulation (HDS)  Industrial Modeling Framework (HDS-IMF)
Hybrid Dynamic Simulation (HDS) Industrial Modeling Framework (HDS-IMF)
Alkis Vazacopoulos
 

More from Alkis Vazacopoulos (20)

Automatic Fine-tuning Xpress-MP to Solve MIP
Automatic Fine-tuning Xpress-MP to Solve MIPAutomatic Fine-tuning Xpress-MP to Solve MIP
Automatic Fine-tuning Xpress-MP to Solve MIP
 
Data mining 2004
Data mining 2004Data mining 2004
Data mining 2004
 
Amazing results with ODH|CPLEX
Amazing results with ODH|CPLEXAmazing results with ODH|CPLEX
Amazing results with ODH|CPLEX
 
Bia project poster fantasy football
Bia project poster  fantasy football Bia project poster  fantasy football
Bia project poster fantasy football
 
NFL Game schedule optimization
NFL Game schedule optimization NFL Game schedule optimization
NFL Game schedule optimization
 
2017 Business Intelligence & Analytics Corporate Event Stevens Institute of T...
2017 Business Intelligence & Analytics Corporate Event Stevens Institute of T...2017 Business Intelligence & Analytics Corporate Event Stevens Institute of T...
2017 Business Intelligence & Analytics Corporate Event Stevens Institute of T...
 
Posters 2017
Posters 2017Posters 2017
Posters 2017
 
Retail Pricing Optimization
Retail Pricing Optimization Retail Pricing Optimization
Retail Pricing Optimization
 
Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX Informs 2016 Solving Planning and Scheduling Problems with CPLEX
Informs 2016 Solving Planning and Scheduling Problems with CPLEX
 
ODHeuristics
ODHeuristicsODHeuristics
ODHeuristics
 
Missing-Value Handling in Dynamic Model Estimation using IMPL
Missing-Value Handling in Dynamic Model Estimation using IMPL Missing-Value Handling in Dynamic Model Estimation using IMPL
Missing-Value Handling in Dynamic Model Estimation using IMPL
 
Finite Impulse Response Estimation of Gas Furnace Data in IMPL Industrial Mod...
Finite Impulse Response Estimation of Gas Furnace Data in IMPL Industrial Mod...Finite Impulse Response Estimation of Gas Furnace Data in IMPL Industrial Mod...
Finite Impulse Response Estimation of Gas Furnace Data in IMPL Industrial Mod...
 
Industrial Modeling Service (IMS-IMPL)
Industrial Modeling Service (IMS-IMPL)Industrial Modeling Service (IMS-IMPL)
Industrial Modeling Service (IMS-IMPL)
 
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
Dither Signal Design Problem (DSDP) for Closed-Loop Estimation Industrial Mod...
 
Xmr im
Xmr imXmr im
Xmr im
 
Distillation Curve Optimization Using Monotonic Interpolation
Distillation Curve Optimization Using Monotonic InterpolationDistillation Curve Optimization Using Monotonic Interpolation
Distillation Curve Optimization Using Monotonic Interpolation
 
Multi-Utility Scheduling Optimization (MUSO) Industrial Modeling Framework (M...
Multi-Utility Scheduling Optimization (MUSO) Industrial Modeling Framework (M...Multi-Utility Scheduling Optimization (MUSO) Industrial Modeling Framework (M...
Multi-Utility Scheduling Optimization (MUSO) Industrial Modeling Framework (M...
 
Advanced Parameter Estimation (APE) for Motor Gasoline Blending (MGB) Indust...
Advanced Parameter Estimation (APE) for Motor Gasoline Blending (MGB)  Indust...Advanced Parameter Estimation (APE) for Motor Gasoline Blending (MGB)  Indust...
Advanced Parameter Estimation (APE) for Motor Gasoline Blending (MGB) Indust...
 
Hybrid Dynamic Simulation (HDS) Industrial Modeling Framework (HDS-IMF)
Hybrid Dynamic Simulation (HDS)  Industrial Modeling Framework (HDS-IMF)Hybrid Dynamic Simulation (HDS)  Industrial Modeling Framework (HDS-IMF)
Hybrid Dynamic Simulation (HDS) Industrial Modeling Framework (HDS-IMF)
 
Partial Differential Equations (PDE’s) Industrial Modeling Framework (PDE-IMF)
Partial Differential Equations (PDE’s)  Industrial Modeling Framework (PDE-IMF)Partial Differential Equations (PDE’s)  Industrial Modeling Framework (PDE-IMF)
Partial Differential Equations (PDE’s) Industrial Modeling Framework (PDE-IMF)
 

Recently uploaded

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
shivangimorya083
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
AroojKhan71
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
JohnnyPlasten
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
shivangimorya083
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
Lars Albertsson
 

Recently uploaded (20)

Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...Vip Model  Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
Vip Model Call Girls (Delhi) Karol Bagh 9711199171✔️Body to body massage wit...
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% SecureCall me @ 9892124323  Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
Call me @ 9892124323 Cheap Rate Call Girls in Vashi with Real Photo 100% Secure
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptxBPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
BPAC WITH UFSBI GENERAL PRESENTATION 18_05_2017-1.pptx
 

Very largeoptimizationparallel

  • 1. Alkis Vazacopoulos Robert Ashford Optimization Direct Inc. CPLEX Very Large Optimization Models And parallel processing
  • 2. Summary • Challenges of Large Scale Optimization • Heuristic Software Approach • Scheduling, supply chain and telecomms examples • Benefits and problems of parallelism
  • 3. Large Scale Optimization • Many models now solved routinely which would have been impossible (‘unsolvable’) a few years ago • BUT: have super-linear growth of solving effort as model size/complexity increases • AND: customer models keep getting larger • Globalized business has larger and more complex supply chain • Optimization expandinginto new areas, especially scheduling • Detailed models easier to sell to management and end- users
  • 4. The Curse of Dimensionality: Size Matters • Super-linear solve time growth often supposed • The reality is worse • Few data sets available to support this • Look at randomly selected sub-models of two scheduling models • Simple basic model • More complex model with additional entity types • Two hour time limit on each solve • 8 threads on 4 core hyperthreaded Intel i7-4790K • See how solve time varies with integers after presolve
  • 5. Simple model 0 1000 2000 3000 4000 5000 6000 7000 8000 0 10000 20000 30000 40000 50000 Solution  time  in  seconds Numer  of  ineteger  entities
  • 6. Complex model 0 1000 2000 3000 4000 5000 6000 7000 8000 0 5000 10000 15000 20000 25000 30000 Solution  time Integer  entities
  • 7. Why size matters • Solver has to • (Presolve, probe and) solve LP relaxation • Find and apply cuts • Branch on remaining infeasibilities (and find and apply cuts too) • Look for feasible solutions with heuristics all the while • Simplex relaxation solves theoretically NP, but in practice effort increases between linearly and quadratic • Barrier solver effort grows more slowly, but: • cross-over still grows quickly • usually get more integer infeasibilities • can’t use last solution/basis to accelerate • Cutting grows faster than quadratic: each cut requires more effort, more cuts/round, more rounds of cuts, each round harder to apply. • Branching is exponential: 2n in number of (say) binaries n
  • 8. What can be done? • Decomposition • Solve smaller models • Use ‘good’ formulations • As tight as possible • Avoid symmetry • Settle for a good solution • Use heuristics • Use more powerful hardware • Can usually make minor improvements by having a faster processor and memory • Big potential is from parallel processing • Use 4, 8 12, 24,… or more threads on separate ‘processors’
  • 9. Parallel Processing • CPU clock speed is not improving • Power consumed (and heat generated accordingto the square of the speed • Memory speed is not improving (much) • Can fit more processors onto a single chip • Can get wider registers • Vectorization • do several (up to 8) fp calculationsat once on 512 bit register (SIMD) • of limited use in sparse optimization • Cannot use full processor capability if using many cores
  • 10. Heuristic Solution Software • Proof of optimality may be impractical, but want good solutions to (say) 20% • Uses CPLEX callable library • First-feasible-solution heuristics • Improvement heuristic • Solves sequence of smaller sub-model(s) • approach used e.g. by RINS and local branching • Use model structure to create sub-models and combine solutions • Assess solution quality by a very aggressive root solve of whole model • Multiple instances can be run concurrently with different seeds • Can run on only one core • Can interrupt at any point and take best solution so far time limit / call-back /SIGINT
  • 11. Parallel Heuristic Approach • Run several heuristic threads with different seeds simultaneously • CPLEX callable library very flexible, so • Exchange solution information between runs • Kill sub-model solves when done better elsewhere • Improves sub-model selection • Opportunistic or deterministic • 5 instances run on 24 core  Intel  2  x  Xeon  E5-­‐2690v3  running   at  up  to  3.5  GHz  (DDR4-­‐2133  memory)
  • 12. Example: Large Scale Scheduling, Supply Chain and Telecomms Models † No usable (say within 30% gap) solution after 3 days run time on fastest hardware (Intel i7 4790K ‘Devil’s Canyon’) Model entities rows cols integers Easy 314 299288 57804 57804 Medium† 314 389560 94200 94200 Difficult† 406 371964 149132 149132 Large 302965 2836736 4892396 18271400 Huge 27000 2577916 12944400 12944400
  • 13. Heuristic Results on Scheduling Models 8  Cores  on  Intel  2  x  Xeon  E5-­‐2690v3  3GHz Solution Time Gap Easy 96 231.06 0% Medium 113 28800 ≤  13% Difficult 773.8 28800 ≤  56% Large 1.1493E+7 28800 ≤  1% Huge 370 28800 ≤  61% Lower  bounds    established  by  separate  CPLEX  runs Times  are  in  seconds
  • 14. Huge Model Heuristic Behavior 300 500 700 900 1100 1300 1500 0 5000 10000 15000 20000 25000 30000 Solution  Value Seconds 1  Threads 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 15. Large Model Heuristic Behavior 0.00E+00 5.00E+08 1.00E+09 1.50E+09 2.00E+09 2.50E+09 3.00E+09 3.50E+09 4.00E+09 4.50E+09 5.00E+09 0 5000 10000 15000 20000 25000 30000 Solution  Value Seconds 1  Thread 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 16. Large Model Heuristic Behavior 11000000 11500000 12000000 12500000 13000000 13500000 14000000 14500000 15000000 0 5000 10000 15000 20000 25000 30000 Solution  Value Seconds 1  Thread 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 17. Difficult Model Heuristic Behavior 300 500 700 900 1100 1300 1500 0 5000 10000 15000 20000 25000 30000 Solution  Value Seconds 1  Thread 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 18. Medium Model Heuristic Behavior 100 110 120 130 140 150 160 170 180 190 200 0 5000 10000 15000 20000 25000 30000 Solution  Value Seconds 1  Threads 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 19. Easy Model Heuristic Behavior 0 500 1000 1500 2000 2500 0 100 200 300 400 500 600 Solution  Value Seconds 1  Thread 4  Threads 8  Threads 12  Threads 16  Threads 24  Threads
  • 20. What’s Gone Wrong? • Size (or rather density) matters again • More threads can give worse results • Used 24 core Intel Xeon E5-2690v3 server • Not used hyperthreading • Memory transfer speed is ~20GB/sec • MIP solves become memory bus bound
  • 21. Work Rate 0 200 400 600 800 1000 1200 1400 1 6 11 16 21 Work  Rate  (ticks/thread/sec) Threads Easy  (13.0) Medium  (10.5) Difficult  (8.5) Large  (2.7) Huge  (4.2)
  • 22. Conclusions • Hard size barriers to solve (to optimality) times • May have to be satisfied with solutions of unproven quality/optimality • Heuristic methods demand serious consideration • Parallel solution methods best way of exploiting modern hardware • Even these are limited by memory bus speeds
  • 23. Thanks for listening Robert Ashford rwa@optimizationdirect.com www.optimizationdirect.com