SlideShare a Scribd company logo
1 of 37
Download to read offline
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 1
The Ascendance of the Dual
Simplex Method: A Geometric View
Robert Fourer
4er@ampl.com
AMPL Optimization Inc.
www.ampl.com — +1 773-336-AMPL
U.S.-Mexico Workshop on
Optimization and Its Applications
Huatulco — 8-12 January 2018
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 2
The Ascendance of the Dual Simplex
Method: A Geometric View
First described in the 1950s, the dual simplex evolved in
the 1990s to become the method most often used in solving
linear programs. Factors in the ascendance of the dual
simplex method include Don Goldfarb’s proposal for a
steepest-edge variant, and an improved understanding of
the bounded-variable extension. The ways that these come
together to produce a highly effective algorithm are still
not widely appreciated, however. This talk employs a
geometric approach to the dual simplex method to provide
a unified and straightforward description of the factors that
work in its favor.
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 3
Motivation
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Basic variables , nonbasic variables
 Coefficient columns of basic variables
form a nonsingular matrix
Basic solution
 ̅ 0, ̅
Feasible basic solution
 ̅ 0
4
Primal Linear Program
Minimize
Subject to , 0
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Binding constraints , nonbinding constraints
 Coefficient rows of binding constraints
form a nonsingular matrix
Vertex solution

Feasible vertex solution

5
Dual Linear Program
Maximize
Subject to
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Binding constraints , nonbinding constraints
 Coefficient rows of binding constraints
form a nonsingular matrix
Vertex solution
 	 0,
Feasible vertex solution
 0
6
Dual Linear Program
Maximize
Subject to , 0
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Given
 feasible basic solution ̅ and corresponding basis matrix
Choose a nonbasic variable to enter
 solve
 select ∈ :	 	 0
Choose a basic variable to leave
 solve
 select ∈ : 	Θ ̅ ⁄ min ̅ /
Update
 ̅ ← Θ
 ̅ ← ̅ Θ	 for all ∈
7
Primal Simplex Method
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Given
 feasible vertex solution and corresponding basis matrix
Choose a binding constraint to leave
 solve
 select ∈ : 	 0
Choose a nonbinding constraint to enter
 solve
 select ∈ : 	Φ / min 	 /
Update
 ← Φ
 ← Φ for all ∈
8
Dual Simplex Method
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Work of 	 · is the same for any
 For each nonzero in column of , add to sum
 Need all in an -vector
Primal simplex
 Select one 0 ( ) for ∈
 inner products, but often ≪
Dual simplex
 Compute min 	 / ( )
 Always inner products
9
Inner Products with : Column-Wise
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Store by row as well as by column
 Accumulate inner products together
Work of · depends on sparsity of
 For each nonzero ,
 for each nonzero in row of , add to sum for
Faster in dual simplex
 tends to be especially sparse
Faster in primal if you update them all
 ← /
 ← for all ∈
10
Inner Products with : Row-Wise
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 11
Primal Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Simplex step
 If	 enters, solution ̅ changes by
 Entering variable ̅ increases to
 Basic variables ̅ change by (where )
 Objective is reduced by
Steepness of step
 /
reduction of objective per unit change in solution
Main steepest-edge computations
 Choose largest / over all ∈ with 0
 Update for ∈
 Update for ∈ . . .
12
Primal Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Updating
 ← /
 known after updating
 not known except for , but is known
 ←
 ← 2 	
Hard part is
 Solve
 Then compute as for each ∈
 One extra solve and | | extra inner products
13
Primal Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 14
Dual Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 15
Dual Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 16
Dual Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Simplex step
 If constraint ∈ is relaxed,
 Slack variable increases to
 Variables change by (where )
 Objective is reduced by
Steepness of step
 /
reduction of objective per unit change in solution
Main steepest-edge computations
 Choose largest / over all ∈ with 0
 Update for ∈
 Update for ∈ . . .
17
Dual Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Updating
 ← ( /
 known after updating
 not known except for , but	 is known
 ←
 ← 2 	
Hard part is
 Solve
 Then is for each	 ∈
 One extra solve but no extra inner products
18
Dual Steepest Edge
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 19
Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Generalize 0 to ℓ
 State simplex methods for ℓ, finite
 Extend to allow some ℓ ∞ and/or 	 ∞
 Check that ℓ 0, ∞ reduces to previous case
Further improve the dual simplex method
 Take longer steps
 Adapt to degeneracy
20
Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Basic variables , nonbasic variables ∪
 Coefficient columns of basic variables
form a nonsingular matrix
Basic solution
 ̅ ℓ for ∈ ,		 ̅ for ∈
 ̅ ∑ ℓ∈ ∑ ∈ ,
Feasible basic solution
 ℓ ̅
21
Primal LP with Bounded Variables
Minimize
Subject to , ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 22
Dual LP with Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 23
Dual LP with Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 24
Dual LP with Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
What is : ℓ 	 ??
 Sum of concave piecewise-linear functions	 : ℓ 	
 Slope of for 0
 Slope of ℓ for 0
 Example for 0 ℓ ∞ :
25
Dual LP with Bounded Variables
Maximize : ℓ 	
Subject to
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Binding constraints ,
nonbinding constraints ∪
 Coefficient rows of binding constraints
form a nonsingular matrix
“Vertex” solution
 0,
 ∈ for 0
 ∈ for 0
Always feasible!
26
Dual LP with Bounded Variables
Maximize : ℓ 	
Subject to
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Given
 feasible basic solution ̅ and corresponding basis matrix
Choose a nonbasic variable to enter
 solve
 select ∈ :	 0 or
select ∈ :	 0
Choose a basic variable to leave
 solve ( ∈ ) or ( ∈ )
 select Θ min	 Θ , Θ , Θ :
 ∈ :	Θ ̅ ℓ min ̅ ℓ ⁄
 ∈ :	Θ ̅ ⁄ min ̅ ⁄
 :	Θ ℓ
Update . . .
27
Primal Simplex, Bounded Variables
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Given
 feasible vertex solution and corresponding basis matrix
Choose a binding constraint to leave
 solve ∑ ℓ∈ ∑ ∈
 select ∈ : 	 ℓ or
Choose a nonbinding constraint to enter
 solve (if ℓ ) or (if )
 select Φ min	 Φ , Φ ) :
 ∈ : Φ / min 	 /
 ∈ : Φ / min 	 /
Update . . .
28
Dual Simplex, Bounded Variables
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Some ℓ ∞ and/or 	 ∞	??
 A basis may be infeasible
 0 but ℓ ∞
 0 but ∞
 Minimize “sum of infeasible variables” to get feasible
 Replace each ℓ ∞ by 1
 Replace each ∞ by 1
 Replace all finite bounds by 0
All ℓ 0 and 	 ∞	??
 Then 0
 Primal and dual algorithms
reduce to their simpler forms
29
In Principle, Bounds Can Be Infinite
∞ ∞
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Decisions are bounded
 Variables are bounded
 Slacks on inequality constraints are bounded
Integer-valued decisions have small values
 Many are zero-one!
Standard presolve routines compute bounds
 Compute bounds where none given by user
 Tighten bounds in multiple passes
30
In Practice, Bounds Tend to be Finite
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Standard iteration
 increases to Φ (if ℓ ) or decreases to Φ (if )
 moves to 0
Suppose increases/decreases further . . .
 moves past 0, but solution remains feasible
 Rate of improvement in objective degrades by ℓ
 If increasing, objective slope
changes from to ℓ
 If decreasing, objective slope
changes from ℓ to
 If rate still positive, can continue
until next , ∈ reaches 0
31
Long Steps
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Replace single ratio test by a loop
 Set initial objective improvement rate to
ℓ (if ℓ ) or (if )
 Form set of all ratios that may be reached:
:	⁄ ∈ , 0 ∪ :	⁄ ∈ , 0
 Repeat for increasing 	 ∈	⁄ ∶
 Let ← ℓ
 Let ← ∖ ⁄
until 0
Equivalent to “weighted selection”
 In theory, faster than sorting
 In practice, a small part of iteration cost
32
Long Step Iteration
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Change bounds for some fractional ̅ , ∈
 Increase ℓ to ̅ , resulting in ̅ ℓ
 Decrease to ̅ , resulting in ̅
 Either way, binding constraint ∈ can leave
 Continue with dual simplex steps until optimal again
Fix some fractional binary ̅ , ∈
 Increase ℓ to 1, resulting in ̅ ℓ
 Decrease to ℓ 0, resulting in ̅
 Either way, binding constraint ∈ can leave
 Since now ℓ , using long steps
the constraint will never become binding again
33
Re-Optimization for MIPs
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Choosing a binding constraint to relax
 For 0, place ∈
 For 0, place ∈
 For 0 ???
 Guess ∈ if you think is likely to increase
 Guess ∈ if you think is likely to decrease
. . . can’t be sure though until you choose
 solve ∑ ℓ∈ ∑ ∈
 select ∈ : 	 ℓ or
34
Degeneracy
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Choosing a nonbinding constraint to add
 Set initial objective improvement rate to
ℓ (if ℓ ) or (if )
 Collect all ratios that may be reached:
:	⁄ ∈ , 0 ∪ :	⁄ ∈ , 0
 Some of these ratios may be zero!
 For ∈ , 	 = 0 and 0
 For ∈ , 	 = 0 and 0
 Repeat for every 	⁄ 0 ∈ ∶
 Let ← ℓ
 Let ← ∖ ⁄
while	 0
 If 0, iteration is degenerate
 If still 0, continue with
nondegenerate iteration
35
Degeneracy
: ℓ 	
ℓ
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
For some	 0, you “guess wrong”
 ∈ , but decreases
 ∈ , but increases
As a result, you are overly optimistic about
the objective improvement rate r
Long-step ratio test corrects for your wrong guesses
 If the corrected 0 then
you can take a nondegenerate step after all
None of this changes the optimality condition
 ℓ for all ∈
36
Degeneracy: Benefit of Long Steps
Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View
U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018
Fast inner products
Dual steepest edge
Bounded-variable extension
 Feasibility for finite bounds
 Long steps
 More nondegenerate steps
37
Ascendance of the Dual Simplex

More Related Content

Similar to The Ascendance of the Dual Simplex Method: A Geometric View

Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docxAssignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
sherni1
 
LNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine LearningLNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine Learning
butest
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
butest
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luv
Ashok Sharma
 

Similar to The Ascendance of the Dual Simplex Method: A Geometric View (18)

Paper review: Learned Optimizers that Scale and Generalize.
Paper review: Learned Optimizers that Scale and Generalize.Paper review: Learned Optimizers that Scale and Generalize.
Paper review: Learned Optimizers that Scale and Generalize.
 
EPFL workshop on sparsity
EPFL workshop on sparsityEPFL workshop on sparsity
EPFL workshop on sparsity
 
Model-Based Optimization / CP 2018
Model-Based Optimization / CP 2018Model-Based Optimization / CP 2018
Model-Based Optimization / CP 2018
 
Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docxAssignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
Assignment 2 Organisms in Your BiomeIn this assignment, you wil.docx
 
Hedonic Models & New Characteristics
Hedonic Models & New CharacteristicsHedonic Models & New Characteristics
Hedonic Models & New Characteristics
 
ESR8 Liangyou Li - EXPERT Summer School - Malaga 2015
ESR8 Liangyou Li - EXPERT Summer School - Malaga 2015ESR8 Liangyou Li - EXPERT Summer School - Malaga 2015
ESR8 Liangyou Li - EXPERT Summer School - Malaga 2015
 
LNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine LearningLNCS 5050 - Bilevel Optimization and Machine Learning
LNCS 5050 - Bilevel Optimization and Machine Learning
 
IEA DSM Task 24 BEHAVE presentation 2014
IEA DSM Task 24 BEHAVE presentation 2014IEA DSM Task 24 BEHAVE presentation 2014
IEA DSM Task 24 BEHAVE presentation 2014
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Model-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS InternationalModel-Based Optimization / INFORMS International
Model-Based Optimization / INFORMS International
 
RDataMining slides-association-rule-mining-with-r
RDataMining slides-association-rule-mining-with-rRDataMining slides-association-rule-mining-with-r
RDataMining slides-association-rule-mining-with-r
 
March 2, 2018 - Machine Learning for Production Forecasting
March 2, 2018 - Machine Learning for Production ForecastingMarch 2, 2018 - Machine Learning for Production Forecasting
March 2, 2018 - Machine Learning for Production Forecasting
 
Ihdels presentation
Ihdels presentationIhdels presentation
Ihdels presentation
 
JakartaOne Livestream CN4J: Bringing Reactive to Enterprise Developers
JakartaOne Livestream CN4J: Bringing Reactive to Enterprise DevelopersJakartaOne Livestream CN4J: Bringing Reactive to Enterprise Developers
JakartaOne Livestream CN4J: Bringing Reactive to Enterprise Developers
 
Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...
Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...
Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...
 
First part of my NYU Tandon course "Numerical and Simulation Techniques in Fi...
First part of my NYU Tandon course "Numerical and Simulation Techniques in Fi...First part of my NYU Tandon course "Numerical and Simulation Techniques in Fi...
First part of my NYU Tandon course "Numerical and Simulation Techniques in Fi...
 
COSA-The-Pathway to keep out weeds of data analysis.pdf
COSA-The-Pathway to keep out weeds  of data analysis.pdfCOSA-The-Pathway to keep out weeds  of data analysis.pdf
COSA-The-Pathway to keep out weeds of data analysis.pdf
 
Assignment oprations research luv
Assignment oprations research luvAssignment oprations research luv
Assignment oprations research luv
 

More from Bob Fourer

The Evolution of Computationally Practical Linear Programming
The Evolution of Computationally Practical Linear ProgrammingThe Evolution of Computationally Practical Linear Programming
The Evolution of Computationally Practical Linear Programming
Bob Fourer
 
Optimization Software and Systems for Operations Research: Best Practices and...
Optimization Software and Systems for Operations Research: Best Practices and...Optimization Software and Systems for Operations Research: Best Practices and...
Optimization Software and Systems for Operations Research: Best Practices and...
Bob Fourer
 

More from Bob Fourer (7)

Model-Based Optimization for Effective and Reliable Decision-Making
Model-Based Optimization for Effective and Reliable Decision-MakingModel-Based Optimization for Effective and Reliable Decision-Making
Model-Based Optimization for Effective and Reliable Decision-Making
 
AMPL in the Cloud
AMPL in the CloudAMPL in the Cloud
AMPL in the Cloud
 
AMPL Workshop, part 2: From Formulation to Deployment
AMPL Workshop, part 2: From Formulation to DeploymentAMPL Workshop, part 2: From Formulation to Deployment
AMPL Workshop, part 2: From Formulation to Deployment
 
Identifying Good Near-Optimal Formulations for Hard Mixed-Integer Programs
Identifying Good Near-Optimal Formulations for Hard Mixed-Integer ProgramsIdentifying Good Near-Optimal Formulations for Hard Mixed-Integer Programs
Identifying Good Near-Optimal Formulations for Hard Mixed-Integer Programs
 
The Evolution of Computationally Practical Linear Programming
The Evolution of Computationally Practical Linear ProgrammingThe Evolution of Computationally Practical Linear Programming
The Evolution of Computationally Practical Linear Programming
 
Optimization Software and Systems for Operations Research: Best Practices and...
Optimization Software and Systems for Operations Research: Best Practices and...Optimization Software and Systems for Operations Research: Best Practices and...
Optimization Software and Systems for Operations Research: Best Practices and...
 
Developing Optimization Applications Quickly and Effectively with Algebraic M...
Developing Optimization Applications Quickly and Effectively with Algebraic M...Developing Optimization Applications Quickly and Effectively with Algebraic M...
Developing Optimization Applications Quickly and Effectively with Algebraic M...
 

Recently uploaded

Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
Muhammad Subhan
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
Overkill Security
 

Recently uploaded (20)

Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 

The Ascendance of the Dual Simplex Method: A Geometric View

  • 1. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 1 The Ascendance of the Dual Simplex Method: A Geometric View Robert Fourer 4er@ampl.com AMPL Optimization Inc. www.ampl.com — +1 773-336-AMPL U.S.-Mexico Workshop on Optimization and Its Applications Huatulco — 8-12 January 2018
  • 2. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 2 The Ascendance of the Dual Simplex Method: A Geometric View First described in the 1950s, the dual simplex evolved in the 1990s to become the method most often used in solving linear programs. Factors in the ascendance of the dual simplex method include Don Goldfarb’s proposal for a steepest-edge variant, and an improved understanding of the bounded-variable extension. The ways that these come together to produce a highly effective algorithm are still not widely appreciated, however. This talk employs a geometric approach to the dual simplex method to provide a unified and straightforward description of the factors that work in its favor.
  • 3. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 3 Motivation
  • 4. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Basic variables , nonbasic variables  Coefficient columns of basic variables form a nonsingular matrix Basic solution  ̅ 0, ̅ Feasible basic solution  ̅ 0 4 Primal Linear Program Minimize Subject to , 0
  • 5. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Binding constraints , nonbinding constraints  Coefficient rows of binding constraints form a nonsingular matrix Vertex solution  Feasible vertex solution  5 Dual Linear Program Maximize Subject to
  • 6. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Binding constraints , nonbinding constraints  Coefficient rows of binding constraints form a nonsingular matrix Vertex solution  0, Feasible vertex solution  0 6 Dual Linear Program Maximize Subject to , 0
  • 7. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Given  feasible basic solution ̅ and corresponding basis matrix Choose a nonbasic variable to enter  solve  select ∈ : 0 Choose a basic variable to leave  solve  select ∈ : Θ ̅ ⁄ min ̅ / Update  ̅ ← Θ  ̅ ← ̅ Θ for all ∈ 7 Primal Simplex Method
  • 8. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Given  feasible vertex solution and corresponding basis matrix Choose a binding constraint to leave  solve  select ∈ : 0 Choose a nonbinding constraint to enter  solve  select ∈ : Φ / min / Update  ← Φ  ← Φ for all ∈ 8 Dual Simplex Method
  • 9. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Work of · is the same for any  For each nonzero in column of , add to sum  Need all in an -vector Primal simplex  Select one 0 ( ) for ∈  inner products, but often ≪ Dual simplex  Compute min / ( )  Always inner products 9 Inner Products with : Column-Wise
  • 10. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Store by row as well as by column  Accumulate inner products together Work of · depends on sparsity of  For each nonzero ,  for each nonzero in row of , add to sum for Faster in dual simplex  tends to be especially sparse Faster in primal if you update them all  ← /  ← for all ∈ 10 Inner Products with : Row-Wise
  • 11. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 11 Primal Steepest Edge
  • 12. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Simplex step  If enters, solution ̅ changes by  Entering variable ̅ increases to  Basic variables ̅ change by (where )  Objective is reduced by Steepness of step  / reduction of objective per unit change in solution Main steepest-edge computations  Choose largest / over all ∈ with 0  Update for ∈  Update for ∈ . . . 12 Primal Steepest Edge
  • 13. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Updating  ← /  known after updating  not known except for , but is known  ←  ← 2 Hard part is  Solve  Then compute as for each ∈  One extra solve and | | extra inner products 13 Primal Steepest Edge
  • 14. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 14 Dual Steepest Edge
  • 15. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 15 Dual Steepest Edge
  • 16. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 16 Dual Steepest Edge
  • 17. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Simplex step  If constraint ∈ is relaxed,  Slack variable increases to  Variables change by (where )  Objective is reduced by Steepness of step  / reduction of objective per unit change in solution Main steepest-edge computations  Choose largest / over all ∈ with 0  Update for ∈  Update for ∈ . . . 17 Dual Steepest Edge
  • 18. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Updating  ← ( /  known after updating  not known except for , but is known  ←  ← 2 Hard part is  Solve  Then is for each ∈  One extra solve but no extra inner products 18 Dual Steepest Edge
  • 19. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 19 Bounded Variables
  • 20. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Generalize 0 to ℓ  State simplex methods for ℓ, finite  Extend to allow some ℓ ∞ and/or ∞  Check that ℓ 0, ∞ reduces to previous case Further improve the dual simplex method  Take longer steps  Adapt to degeneracy 20 Bounded Variables
  • 21. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Basic variables , nonbasic variables ∪  Coefficient columns of basic variables form a nonsingular matrix Basic solution  ̅ ℓ for ∈ , ̅ for ∈  ̅ ∑ ℓ∈ ∑ ∈ , Feasible basic solution  ℓ ̅ 21 Primal LP with Bounded Variables Minimize Subject to , ℓ
  • 22. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 22 Dual LP with Bounded Variables
  • 23. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 23 Dual LP with Bounded Variables
  • 24. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 24 Dual LP with Bounded Variables
  • 25. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 What is : ℓ ??  Sum of concave piecewise-linear functions : ℓ  Slope of for 0  Slope of ℓ for 0  Example for 0 ℓ ∞ : 25 Dual LP with Bounded Variables Maximize : ℓ Subject to : ℓ ℓ
  • 26. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Binding constraints , nonbinding constraints ∪  Coefficient rows of binding constraints form a nonsingular matrix “Vertex” solution  0,  ∈ for 0  ∈ for 0 Always feasible! 26 Dual LP with Bounded Variables Maximize : ℓ Subject to : ℓ ℓ
  • 27. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Given  feasible basic solution ̅ and corresponding basis matrix Choose a nonbasic variable to enter  solve  select ∈ : 0 or select ∈ : 0 Choose a basic variable to leave  solve ( ∈ ) or ( ∈ )  select Θ min Θ , Θ , Θ :  ∈ : Θ ̅ ℓ min ̅ ℓ ⁄  ∈ : Θ ̅ ⁄ min ̅ ⁄  : Θ ℓ Update . . . 27 Primal Simplex, Bounded Variables
  • 28. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Given  feasible vertex solution and corresponding basis matrix Choose a binding constraint to leave  solve ∑ ℓ∈ ∑ ∈  select ∈ : ℓ or Choose a nonbinding constraint to enter  solve (if ℓ ) or (if )  select Φ min Φ , Φ ) :  ∈ : Φ / min /  ∈ : Φ / min / Update . . . 28 Dual Simplex, Bounded Variables : ℓ ℓ
  • 29. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Some ℓ ∞ and/or ∞ ??  A basis may be infeasible  0 but ℓ ∞  0 but ∞  Minimize “sum of infeasible variables” to get feasible  Replace each ℓ ∞ by 1  Replace each ∞ by 1  Replace all finite bounds by 0 All ℓ 0 and ∞ ??  Then 0  Primal and dual algorithms reduce to their simpler forms 29 In Principle, Bounds Can Be Infinite ∞ ∞
  • 30. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Decisions are bounded  Variables are bounded  Slacks on inequality constraints are bounded Integer-valued decisions have small values  Many are zero-one! Standard presolve routines compute bounds  Compute bounds where none given by user  Tighten bounds in multiple passes 30 In Practice, Bounds Tend to be Finite
  • 31. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Standard iteration  increases to Φ (if ℓ ) or decreases to Φ (if )  moves to 0 Suppose increases/decreases further . . .  moves past 0, but solution remains feasible  Rate of improvement in objective degrades by ℓ  If increasing, objective slope changes from to ℓ  If decreasing, objective slope changes from ℓ to  If rate still positive, can continue until next , ∈ reaches 0 31 Long Steps : ℓ ℓ
  • 32. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Replace single ratio test by a loop  Set initial objective improvement rate to ℓ (if ℓ ) or (if )  Form set of all ratios that may be reached: : ⁄ ∈ , 0 ∪ : ⁄ ∈ , 0  Repeat for increasing ∈ ⁄ ∶  Let ← ℓ  Let ← ∖ ⁄ until 0 Equivalent to “weighted selection”  In theory, faster than sorting  In practice, a small part of iteration cost 32 Long Step Iteration
  • 33. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Change bounds for some fractional ̅ , ∈  Increase ℓ to ̅ , resulting in ̅ ℓ  Decrease to ̅ , resulting in ̅  Either way, binding constraint ∈ can leave  Continue with dual simplex steps until optimal again Fix some fractional binary ̅ , ∈  Increase ℓ to 1, resulting in ̅ ℓ  Decrease to ℓ 0, resulting in ̅  Either way, binding constraint ∈ can leave  Since now ℓ , using long steps the constraint will never become binding again 33 Re-Optimization for MIPs
  • 34. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Choosing a binding constraint to relax  For 0, place ∈  For 0, place ∈  For 0 ???  Guess ∈ if you think is likely to increase  Guess ∈ if you think is likely to decrease . . . can’t be sure though until you choose  solve ∑ ℓ∈ ∑ ∈  select ∈ : ℓ or 34 Degeneracy : ℓ ℓ
  • 35. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Choosing a nonbinding constraint to add  Set initial objective improvement rate to ℓ (if ℓ ) or (if )  Collect all ratios that may be reached: : ⁄ ∈ , 0 ∪ : ⁄ ∈ , 0  Some of these ratios may be zero!  For ∈ , = 0 and 0  For ∈ , = 0 and 0  Repeat for every ⁄ 0 ∈ ∶  Let ← ℓ  Let ← ∖ ⁄ while 0  If 0, iteration is degenerate  If still 0, continue with nondegenerate iteration 35 Degeneracy : ℓ ℓ
  • 36. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 For some 0, you “guess wrong”  ∈ , but decreases  ∈ , but increases As a result, you are overly optimistic about the objective improvement rate r Long-step ratio test corrects for your wrong guesses  If the corrected 0 then you can take a nondegenerate step after all None of this changes the optimality condition  ℓ for all ∈ 36 Degeneracy: Benefit of Long Steps
  • 37. Robert Fourer, Ascendance of the Dual Simplex Method: A Geometric View U.S.-Mexico Workshop on Optimization and Its Applications, Huatulco, 8-12 January 2018 Fast inner products Dual steepest edge Bounded-variable extension  Feasibility for finite bounds  Long steps  More nondegenerate steps 37 Ascendance of the Dual Simplex