strong ip formulations - university of waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... ·...

109
Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 1/45 C&O 370: Deterministic OR Models Strong IP Formulations Jochen Könemann http://www.math.uwaterloo.ca/jochen

Upload: others

Post on 27-Sep-2019

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 1/45

C&O 370: Deterministic OR Models

Strong IP Formulations

Jochen Könemannhttp://www.math.uwaterloo.ca/∼jochen

hwolkowi
Sticky Note
Thanks Jochen for providing these notes. Henry Wolkowicz http://orion.uwaterloo.ca/~hwolkowi/ CO370/CM443 W11
hwolkowi
Highlight
Page 2: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 2/45

Guidelines for Strong Formulations

Page 3: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 3/45

LP vs IP

■ Good linear programming formulations have as few variablesand constraints as possible.

Remember: Running time of LP solvers depends heavily onnumber of variables and on number of constraints.

hwolkowi
Highlight
Page 4: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 3/45

LP vs IP

■ Good linear programming formulations have as few variablesand constraints as possible.

Remember: Running time of LP solvers depends heavily onnumber of variables and on number of constraints.

■ Different for IP!◆ Computational experiments suggest that the choice in

formulation crucially influences solution time andsometimes solvability

◆ Feasible region of LP relaxation resembles convex hull offeasible integer points closely

hwolkowi
Highlight
hwolkowi
Highlight
Page 5: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 4/45

LP Relaxation

■ The important novelty over linear programs is that thesolution space is not any more convex.

Page 6: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 4/45

LP Relaxation

■ The important novelty over linear programs is that thesolution space is not any more convex.

■ Example

max 3x1 + 10x2 (IP)

s.t. x1 + 4x2 ≤ 8

x1 + x2 ≤ 4

x1, x2 ≥ 0

x1, x2 integer

Page 7: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 5/45

LP Relaxation

■ Geometric view:

0 1 2 3 4 50

1

2

3

4

5

Page 8: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 6/45

LP Relaxation

■ We obtain the linear programming relaxation of an integerprogram by dropping the integrality constraints

0 1 2 3 4 50

1

2

3

4

5

Page 9: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 7/45

Convex Hull

■ We have seen: optimal solution to LP relaxation is fractional.Can we write a different LP with the same set of feasibleinteger solutions for which has an integral optimal solution?

Page 10: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 7/45

Convex Hull

■ We have seen: optimal solution to LP relaxation is fractional.Can we write a different LP with the same set of feasibleinteger solutions for which has an integral optimal solution?

■ Yes! Let X be the set of all solutions to original IP. Thendefine the convex hull of X as

CH(X) :={x ∈ Rn : x =

x∈X

λx · x,

x∈X

λx = 1

λx ≥ 0 ∀x ∈ X}

Page 11: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 8/45

Convex Hull

■ The convex hull CH(X) of feasible integer solutions X is thesmallest polyhedron containing X:

0 1 2 3 4 50

1

2

3

4

5

Page 12: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 8/45

Convex Hull

■ The convex hull CH(X) of feasible integer solutions X is thesmallest polyhedron containing X:

0 1 2 3 4 50

1

2

3

4

5

■ If P is the feasible region of an LP relaxation then CH ⊆ P

Page 13: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

● LP vs IP

● LP Relaxation

● Convex Hull

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 8/45

Convex Hull

■ The convex hull CH(X) of feasible integer solutions X is thesmallest polyhedron containing X:

0 1 2 3 4 50

1

2

3

4

5

■ If P is the feasible region of an LP relaxation then CH ⊆ P

■ Each vertex of the convex hull corresponds to an integersolution!

Page 14: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 9/45

Valid Inequalities

Page 15: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 10/45

Introduction

■ In this class, we are interested in integer programs of thefollowing general form:

max{cT x : x ∈ X} (IP)

and X = {x : Ax ≤ b, X ∈ Zn+}.

Page 16: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 10/45

Introduction

■ In this class, we are interested in integer programs of thefollowing general form:

max{cT x : x ∈ X} (IP)

and X = {x : Ax ≤ b, X ∈ Zn+}.

■ We have seen: To be able to solve (IP) efficiently, we want{x : Ax ≤ b} to be close to the convex hull CH(X) of thefeasible integer solutions.

Page 17: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 10/45

Introduction

■ In this class, we are interested in integer programs of thefollowing general form:

max{cT x : x ∈ X} (IP)

and X = {x : Ax ≤ b, X ∈ Zn+}.

■ We have seen: To be able to solve (IP) efficiently, we want{x : Ax ≤ b} to be close to the convex hull CH(X) of thefeasible integer solutions.

■ Fact: There is A and b such that

CH(X) = {x : Ax ≤ b}

Page 18: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 10/45

Introduction

■ In this class, we are interested in integer programs of thefollowing general form:

max{cT x : x ∈ X} (IP)

and X = {x : Ax ≤ b, X ∈ Zn+}.

■ We have seen: To be able to solve (IP) efficiently, we want{x : Ax ≤ b} to be close to the convex hull CH(X) of thefeasible integer solutions.

■ Fact: There is A and b such that

CH(X) = {x : Ax ≤ b}

■ A may be be huge! We will not be able to generate adescription of the convex hull in polynomial time for allproblems.

Page 19: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 11/45

Valid Inequalities

■ A more tractable task: Find valid inequalities forX := {x : Ax ≤ b, x integer}.

An inequalityπx ≤ π0

is valid for X if is satisfied for all x ∈ X.

Page 20: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 11/45

Valid Inequalities

■ A more tractable task: Find valid inequalities forX := {x : Ax ≤ b, x integer}.

An inequalityπx ≤ π0

is valid for X if is satisfied for all x ∈ X.■ Recall the IP from last class:

max 3x1 + 10x2 (IP)

s.t. x1 + 4x2 ≤ 8

x1 + x2 ≤ 4

x1, x2 ≥ 0

x1, x2 integer

Page 21: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 12/45

Introduction

Geometric view of LP relaxation:

0 1 2 3 4 50

1

2

3

4

5

Page 22: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 12/45

Introduction

Geometric view of LP relaxation:

0 1 2 3 4 50

1

2

3

4

5

Optimum solution: x1 = 8/3, x2 = 4/3.

Can you find a good valid inequality for this example?

Page 23: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 13/45

Introduction

Geometric view:

0 1 2 3 4 50

1

2

3

4

5

Inequality x1/3 + x2 ≤ 2 is valid for (IP)!

Page 24: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 13/45

Introduction

Geometric view:

0 1 2 3 4 50

1

2

3

4

5

Inequality x1/3 + x2 ≤ 2 is valid for (IP)!Its addition to existing inequalities yields the convex hull of allfeasible integer solutions.

Page 25: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 14/45

Introduction

■ In example, inequality x1/3 + x2 ≤ 2 was useful as itsaddition to original constraints yielded CH(X).

Remember last class: Adding this inequality gives us theoptimum integer solution at once! No branch and boundsearch necessary!

Page 26: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 14/45

Introduction

■ In example, inequality x1/3 + x2 ≤ 2 was useful as itsaddition to original constraints yielded CH(X).

Remember last class: Adding this inequality gives us theoptimum integer solution at once! No branch and boundsearch necessary!

■ What are the useful valid inequalities in general?

Page 27: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 14/45

Introduction

■ In example, inequality x1/3 + x2 ≤ 2 was useful as itsaddition to original constraints yielded CH(X).

Remember last class: Adding this inequality gives us theoptimum integer solution at once! No branch and boundsearch necessary!

■ What are the useful valid inequalities in general?■ How do we find these inequalities? Are there systematic

ways?

Page 28: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

Page 29: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?

Page 30: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?■ No! This implies that 3x1 + 2x3 + x5 ≤ −2. That is

impossible since all variables are in {0, 1}.

Page 31: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?■ No! This implies that 3x1 + 2x3 + x5 ≤ −2. That is

impossible since all variables are in {0, 1}.■ So all feasible solutions must satisfy

x2 + x4 ≥ 1

Page 32: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?■ No! This implies that 3x1 + 2x3 + x5 ≤ −2. That is

impossible since all variables are in {0, 1}.■ So all feasible solutions must satisfy

x2 + x4 ≥ 1

■ How about x1 = 1 and x2 = 0?

Page 33: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?■ No! This implies that 3x1 + 2x3 + x5 ≤ −2. That is

impossible since all variables are in {0, 1}.■ So all feasible solutions must satisfy

x2 + x4 ≥ 1

■ How about x1 = 1 and x2 = 0?■ This implies 3 + 2x3 − 3x4 + x5 ≥ 3 − 3 = 0.

Page 34: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 15/45

Finding Valid Inequalities

■ Another set of integer solutions:

X := {x ∈ {0, 1}5 : 3x1 − 4x2 + 2x3 − 3x4 + x5 ≤ −2}

■ Can there be a solution with x2 = x4 = 0?■ No! This implies that 3x1 + 2x3 + x5 ≤ −2. That is

impossible since all variables are in {0, 1}.■ So all feasible solutions must satisfy

x2 + x4 ≥ 1

■ How about x1 = 1 and x2 = 0?■ This implies 3 + 2x3 − 3x4 + x5 ≥ 3 − 3 = 0.■ Implies: Whenever x1 = 1 then x2 must have value 1 as well.

Valid inequality:x1 ≤ x2

Page 35: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 16/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

Page 36: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 16/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ What is the LP relaxation of this IP?

Page 37: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 16/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ What is the LP relaxation of this IP?■ LP relaxation of above IP:

max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, 0 ≤ y ≤ 1}

Page 38: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 16/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ What is the LP relaxation of this IP?■ LP relaxation of above IP:

max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, 0 ≤ y ≤ 1}

■ This relaxation is bad! The LP optimum is x = 5, y = .05 withvalue 5 − .25 = 4.75.

IP optimum has value 0!

Page 39: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 16/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ What is the LP relaxation of this IP?■ LP relaxation of above IP:

max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, 0 ≤ y ≤ 1}

■ This relaxation is bad! The LP optimum is x = 5, y = .05 withvalue 5 − .25 = 4.75.

IP optimum has value 0!■ x ≤ 100 · y is a big-M constraint where the M is chosen

poorly.

Is there a good valid inequality? Can you find a better M?

Page 40: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 17/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

Page 41: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 17/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ The inequalityx ≤ 5y

is valid! Variable x can only be positive if y = 1. Whenevery = 1, x must have value at most 5.

Page 42: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 17/45

Finding Valid Inequalities

■ Another IP:max(x − 5y) s.t. (x, y) ∈ X

with X := {(x, y) : x ≤ 100 · y, 0 ≤ x ≤ 5, y ∈ {0, 1}}

■ The inequalityx ≤ 5y

is valid! Variable x can only be positive if y = 1. Whenevery = 1, x must have value at most 5.

■ CH(X) = {(x, y) : x ≤ 5y, 0 ≤ y ≤ 1}.

Page 43: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 18/45

Finding Valid Inequalities

■ One more example:

X := {x ∈ Z4+ : 13x1 + 20x2 + 11x3 + 6x4 ≥ 72}

Page 44: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 18/45

Finding Valid Inequalities

■ One more example:

X := {x ∈ Z4+ : 13x1 + 20x2 + 11x3 + 6x4 ≥ 72}

■ The inequality

α · (13x1 + 20x2 + 11x3 + 6x4) ≥ α · 72

is valid for X for all α ≥ 0.

Page 45: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 18/45

Finding Valid Inequalities

■ One more example:

X := {x ∈ Z4+ : 13x1 + 20x2 + 11x3 + 6x4 ≥ 72}

■ The inequality

α · (13x1 + 20x2 + 11x3 + 6x4) ≥ α · 72

is valid for X for all α ≥ 0.■ Valid inequality for α = 1

11:

13

11x1 +

20

11x2 +

11

11x3 +

6

11x4 ≥

72

11

Page 46: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 19/45

Finding Valid Inequalities

■ Valid inequality for α = 1

11:

13

11x1 +

20

11x2 +

11

11x3 +

6

11x4 ≥

72

11

■ Rounding up all coefficients on left-hand side does not affectvalidity:

2x1 + 2x2 + x3 + x4 ≥72

11

Page 47: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

● Introduction

● Valid Inequalities

● Finding Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 19/45

Finding Valid Inequalities

■ Valid inequality for α = 1

11:

13

11x1 +

20

11x2 +

11

11x3 +

6

11x4 ≥

72

11

■ Rounding up all coefficients on left-hand side does not affectvalidity:

2x1 + 2x2 + x3 + x4 ≥72

11

■ Left-hand side is integer! Can round up right-hand side:

2x1 + 2x2 + x3 + x4 ≥ 7

This inequality is valid for original set X.

Page 48: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 20/45

Chvátal-Gomory Procedure

Page 49: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 21/45

Valid Inequalities for LP

■ Back to IP example from last class:

max 3x1 + 10x2 (IP)

s.t. x ∈ P

P = {(x1, x2) : x1 + 4x2 ≤ 8, (1)

x1 + x2 ≤ 4, x ≥ 0}

x1, x2 integer

Page 50: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 21/45

Valid Inequalities for LP

■ Back to IP example from last class:

max 3x1 + 10x2 (IP)

s.t. x ∈ P

P = {(x1, x2) : x1 + 4x2 ≤ 8, (1)

x1 + x2 ≤ 4, x ≥ 0}

x1, x2 integer

■ Notice that the inequality

u1(x1 + 4x2) + u2(x1 + x2) ≤ 8u1 + 4u2

is valid for P for any u1, u2 ≥ 0

Page 51: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 21/45

Valid Inequalities for LP

■ Back to IP example from last class:

max 3x1 + 10x2 (IP)

s.t. x ∈ P

P = {(x1, x2) : x1 + 4x2 ≤ 8, (1)

x1 + x2 ≤ 4, x ≥ 0}

x1, x2 integer

■ Notice that the inequality

u1(x1 + 4x2) + u2(x1 + x2) ≤ 8u1 + 4u2

is valid for P for any u1, u2 ≥ 0

■ In fact: Any valid inequality for P can be obtained in this way.

Page 52: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 22/45

Valid Inequalities for LP

■ Notice that the inequality

u1(x1 + 4x2) + u2(x1 + x2) ≤ 8u1 + 4u2

is valid for P for any u1, u2 ≥ 0

■ Let’s try this with u1 = 2/3, u2 = 1/3:

2

3(x1 + 4x2) +

1

3(x1 + x2) ≤

16

3+

4

3

Page 53: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 22/45

Valid Inequalities for LP

■ Notice that the inequality

u1(x1 + 4x2) + u2(x1 + x2) ≤ 8u1 + 4u2

is valid for P for any u1, u2 ≥ 0

■ Let’s try this with u1 = 2/3, u2 = 1/3:

2

3(x1 + 4x2) +

1

3(x1 + x2) ≤

16

3+

4

3

■ . . . and this is equivalent to

x1 + 3x2 ≤20

3

Page 54: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 23/45

Valid Inequalities for LP

Geometric view:

0 1 2 3 4 50

1

2

3

4

5

Red line is the inequality x1 + 3x2 ≤ 20

3.

It is clearly satisfied by all points in P .

Page 55: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .

Page 56: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .■ Every feasible solution for the LP relaxation satisfies this

inequality.

We haven’t gained anything, have we?

Page 57: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .■ Every feasible solution for the LP relaxation satisfies this

inequality.

We haven’t gained anything, have we?■ Well, if x1, x2 are integer, then the left-hand side of (1) is

integer.

Page 58: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .■ Every feasible solution for the LP relaxation satisfies this

inequality.

We haven’t gained anything, have we?■ Well, if x1, x2 are integer, then the left-hand side of (1) is

integer.■ For every feasible integer solution in X, the left-hand side of

(1) has value at most ⌊20/3⌋ = 6.

Page 59: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .■ Every feasible solution for the LP relaxation satisfies this

inequality.

We haven’t gained anything, have we?■ Well, if x1, x2 are integer, then the left-hand side of (1) is

integer.■ For every feasible integer solution in X, the left-hand side of

(1) has value at most ⌊20/3⌋ = 6.■ Inequality x1 + 3x2 ≤ 6 is valid for CH(X) but not valid for P .

Page 60: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 24/45

Strengthening Inequalities

■ Have seen that inequality

x1 + 3x2 ≤20

3(1)

is valid for P .■ Every feasible solution for the LP relaxation satisfies this

inequality.

We haven’t gained anything, have we?■ Well, if x1, x2 are integer, then the left-hand side of (1) is

integer.■ For every feasible integer solution in X, the left-hand side of

(1) has value at most ⌊20/3⌋ = 6.■ Inequality x1 + 3x2 ≤ 6 is valid for CH(X) but not valid for P .■ We gained strength over the LP relaxation of (IP).

Page 61: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 25/45

Valid Inequalities for LP

Geometric view:

0 1 2 3 4 50

1

2

3

4

5

Red line is the inequality x1 + 3x2 ≤ 6.Adding this inequality gives the convex hull CH(X) of all integersolutions in X.

Page 62: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 26/45

CG Procedure

■ Suppose you have a valid inequality for the polyhedron Pgiven by the relaxation of your integer program:

n∑

j=1

ajxj ≤ b

How can we strengthen this inequality to lead to a validinequality for X?

Page 63: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 27/45

CG Procedure

■ The Chvátal-Gomory procedure:1. xi is non-negative for all i ∈ {1, . . . , n}. So the inequality

n∑

j=1

⌊aj⌋xj ≤ b (1)

is valid for P as well.

Page 64: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 27/45

CG Procedure

■ The Chvátal-Gomory procedure:1. xi is non-negative for all i ∈ {1, . . . , n}. So the inequality

n∑

j=1

⌊aj⌋xj ≤ b (1)

is valid for P as well.2. The left-hand side of (1) is integer for (x1, . . . , xn) ∈ X.

Therefore,n∑

j=1

⌊aj⌋xj ≤ ⌊b⌋

is a valid inequality for X.

Page 65: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 28/45

Discussion

■ Notice that the linear program

max 3x1 + 10x2

s.t. x1 + 4x2 ≤ 8

x1 + x2 ≤ 4

x1 + 3x2 ≤ 6

x1, x2 ≥ 0

describes the convex hull CH(X) of all feasible integersolutions for the original LP.

Page 66: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 28/45

Discussion

■ Notice that the linear program

max 3x1 + 10x2

s.t. x1 + 4x2 ≤ 8

x1 + x2 ≤ 4

x1 + 3x2 ≤ 6

x1, x2 ≥ 0

describes the convex hull CH(X) of all feasible integersolutions for the original LP.

■ Solving this LP gives us an integer solution right away. Noneed for branch and bound!

Page 67: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 28/45

Discussion

■ Notice that the linear program

max 3x1 + 10x2

s.t. x1 + 4x2 ≤ 8

x1 + x2 ≤ 4

x1 + 3x2 ≤ 6

x1, x2 ≥ 0

describes the convex hull CH(X) of all feasible integersolutions for the original LP.

■ Solving this LP gives us an integer solution right away. Noneed for branch and bound!

■ CG Procedure is a tool to strengthen valid inequalities for theLP relaxation.

Page 68: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 29/45

Discussion

■ Is adding more valid inequalities useful?

Page 69: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 29/45

Discussion

■ Is adding more valid inequalities useful?■ Advantages: More strong inequalities lead to a better

approximation of CH(X), the convex hull of integer solutions.

Hopefully this reduces the size of our branch & bound tree.

Page 70: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 29/45

Discussion

■ Is adding more valid inequalities useful?■ Advantages: More strong inequalities lead to a better

approximation of CH(X), the convex hull of integer solutions.

Hopefully this reduces the size of our branch & bound tree.■ Disadvantages: The size of the LP formulation may grow

quite dramatically. We need to solve an LP at each node inthe branch & bound tree.

Page 71: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

● Valid Inequalities for LP

● Strengthening Inequalities

● CG Procedure

● Discussion

Cutting-Plane Algorithms

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 29/45

Discussion

■ Is adding more valid inequalities useful?■ Advantages: More strong inequalities lead to a better

approximation of CH(X), the convex hull of integer solutions.

Hopefully this reduces the size of our branch & bound tree.■ Disadvantages: The size of the LP formulation may grow

quite dramatically. We need to solve an LP at each node inthe branch & bound tree.

■ There is no good answer here. Need to experiment!

Page 72: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 30/45

Cutting-Plane Algorithms

Page 73: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 31/45

General Framework

■ Have seen how to find strong valid inequalities for a given IP.

Page 74: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 31/45

General Framework

■ Have seen how to find strong valid inequalities for a given IP.■ Also know that there maybe too many such inequalities to

write them all out. What can we do?

Page 75: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 31/45

General Framework

■ Have seen how to find strong valid inequalities for a given IP.■ Also know that there maybe too many such inequalities to

write them all out. What can we do?■ Cutting-Plane algorithms solve the LP relaxation of the given

integer program and add strong valid inequalities one by one.

Page 76: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 32/45

General Framework

■ Suppose you want to solve integer program

max cT x (IP)

s.t. x ∈ P0

x integer

for some polyhedron P0.

Page 77: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 32/45

General Framework

■ Suppose you want to solve integer program

max cT x (IP)

s.t. x ∈ P0

x integer

for some polyhedron P0.■ Solve the LP relaxation

max cT x (LP)

s.t. x ∈ P0

of (IP). Let x0 be the solution.

Page 78: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 33/45

General Framework

■ We’re done if x0 is integral. Otherwise find a valid inequality

a0x ≤ b0

for X such thata0x0 > b0

Page 79: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 33/45

General Framework

■ We’re done if x0 is integral. Otherwise find a valid inequality

a0x ≤ b0

for X such thata0x0 > b0

■ Add this inequality to P0:

P1 = P0 ∩ {x : a0x ≤ b0}

Page 80: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 33/45

General Framework

■ We’re done if x0 is integral. Otherwise find a valid inequality

a0x ≤ b0

for X such thata0x0 > b0

■ Add this inequality to P0:

P1 = P0 ∩ {x : a0x ≤ b0}

■ Resolve LP relaxation with P0 replaced by P1.

Page 81: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

● General Framework

● General Framework

Gomory Cuts

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 33/45

General Framework

■ We’re done if x0 is integral. Otherwise find a valid inequality

a0x ≤ b0

for X such thata0x0 > b0

■ Add this inequality to P0:

P1 = P0 ∩ {x : a0x ≤ b0}

■ Resolve LP relaxation with P0 replaced by P1.■ Continue this way until integral solution is found.

Page 82: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 34/45

Gomory Cuts

Page 83: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 35/45

The Idea

■ Consider general IP of the form

max{cx : Ax ≤ b, x ≥ 0 and integer}

Page 84: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 35/45

The Idea

■ Consider general IP of the form

max{cx : Ax ≤ b, x ≥ 0 and integer}

■ Bring to canonical form by adding slack variables:

max{cx : Ax + Is = b, x ≥ 0 and integer, s ≥ 0}

Observe that slack variables must take on integral values ifA, b are integer!

Page 85: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 35/45

The Idea

■ Consider general IP of the form

max{cx : Ax ≤ b, x ≥ 0 and integer}

■ Bring to canonical form by adding slack variables:

max{cx : Ax + Is = b, x ≥ 0 and integer, s ≥ 0}

Observe that slack variables must take on integral values ifA, b are integer!

■ We can therefore assume that the slack variables were partof the original set of variables:

max{cx : Ax = b, x ≥ 0 and integer} (IP)

Page 86: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 36/45

The Idea

■ We can therefore assume that the slack variables were partof the original set of variables:

max{cx : Ax = b, x ≥ 0 and integer} (IP)

■ Solve the linear programming relaxation of (IP) via Simplex.

Page 87: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 36/45

The Idea

■ We can therefore assume that the slack variables were partof the original set of variables:

max{cx : Ax = b, x ≥ 0 and integer} (IP)

■ Solve the linear programming relaxation of (IP) via Simplex.■ Gives a final tableau of the form

BV x1 · · · xj · · · xi · · · xn Value

z c1 cj ci cn z

......

... 0...

...xi ai1 aij 1 ain bi

......

... 0...

...

Page 88: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 37/45

The Idea

■ Final tableau of the form

BV x1 · · · xj · · · xi · · · xn Value

z c1 cj ci cn z

......

... 0...

...xi ai1 aij 1 ain bi

......

... 0...

...

■ The optimal basis is B = {1, . . . , m} and the non-basis isN = {1, . . . , n} \ B.

Page 89: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 37/45

The Idea

■ Final tableau of the form

BV x1 · · · xj · · · xi · · · xn Value

z c1 cj ci cn z

......

... 0...

...xi ai1 aij 1 ain bi

......

... 0...

...

■ The optimal basis is B = {1, . . . , m} and the non-basis isN = {1, . . . , n} \ B.

■ Row of xi corresponds to:

xi +∑

j∈N

aijxj = bi

Any feasible solution to (IP) must satisfy this equation!

Page 90: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 38/45

Gomory Cuts

■ Row of xi corresponds to:

xi +∑

j∈N

aijxj = bi (1)

Any feasible solution to (IP) must satisfy this equation!

Page 91: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 38/45

Gomory Cuts

■ Row of xi corresponds to:

xi +∑

j∈N

aijxj = bi (1)

Any feasible solution to (IP) must satisfy this equation!■ Assume that value bi of xi is not integer

Page 92: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 38/45

Gomory Cuts

■ Row of xi corresponds to:

xi +∑

j∈N

aijxj = bi (1)

Any feasible solution to (IP) must satisfy this equation!■ Assume that value bi of xi is not integer■ Use Chvátal-Gomory procedure and conclude that any

feasible solution to (IP) must also satisfy

xi +∑

j∈N

⌊aij⌋xj ≤ ⌊bi⌋

Page 93: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 38/45

Gomory Cuts

■ Row of xi corresponds to:

xi +∑

j∈N

aijxj = bi (1)

Any feasible solution to (IP) must satisfy this equation!■ Assume that value bi of xi is not integer■ Use Chvátal-Gomory procedure and conclude that any

feasible solution to (IP) must also satisfy

xi +∑

j∈N

⌊aij⌋xj ≤ ⌊bi⌋

■ From (1):

xi = bi −∑

j∈N

aijxj

Page 94: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 39/45

Gomory Cuts

■ Any feasible solution to (IP) must also satisfy

xi +∑

j∈N

⌊aij⌋xj ≤ ⌊bi⌋ (1)

■ . . . andxi = bi −

j∈N

aijxj (2)

■ Combining (1) and (2) leads to a new valid inequality for (IP):∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋ (3)

Page 95: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 39/45

Gomory Cuts

■ Any feasible solution to (IP) must also satisfy

xi +∑

j∈N

⌊aij⌋xj ≤ ⌊bi⌋ (1)

■ . . . andxi = bi −

j∈N

aijxj (2)

■ Combining (1) and (2) leads to a new valid inequality for (IP):∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋ (3)

■ Notice that current optimum solution x does not satisfy (1) asxj = 0 for all j ∈ N .x therefore does not satisfy (3) either!

Page 96: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 40/45

Gomory Cuts

■ The new valid inequality is called a Gomory Cut:∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋

Page 97: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 40/45

Gomory Cuts

■ The new valid inequality is called a Gomory Cut:∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋

■ Add this to optimum tableau and use dual simplex tore-optimize!

Page 98: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 40/45

Gomory Cuts

■ The new valid inequality is called a Gomory Cut:∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋

■ Add this to optimum tableau and use dual simplex tore-optimize!

■ Repeat until optimum solution is integral.

Page 99: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 41/45

An Example

■ Back to IP example from last class:

max 3x1 + 10x2 (IP)

s.t. x ∈ P

P = {(x1, x2) : x1 + 4x2 ≤ 8, (2)

x1 + x2 ≤ 4, x ≥ 0}

x1, x2 integer

Page 100: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 41/45

An Example

■ Back to IP example from last class:

max 3x1 + 10x2 (IP)

s.t. x ∈ P

P = {(x1, x2) : x1 + 4x2 ≤ 8, (2)

x1 + x2 ≤ 4, x ≥ 0}

x1, x2 integer

■ Final tableau:BV x1 x2 s1 s2 Value

z 0 0 7/3 2/3 64/3

x2 0 1 1/3 -1/3 4/3x1 1 0 -1/3 4/3 8/3

Page 101: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 42/45

An Example

BV x1 x2 s1 s2 Value

z 0 0 7/3 2/3 64/3

x2 0 1 1/3 -1/3 4/3x1 1 0 -1/3 4/3 8/3

■ Both variables x1 and x2 are fractional. What is the Gomorycut for x1 row?

Page 102: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 42/45

An Example

BV x1 x2 s1 s2 Value

z 0 0 7/3 2/3 64/3

x2 0 1 1/3 -1/3 4/3x1 1 0 -1/3 4/3 8/3

■ Both variables x1 and x2 are fractional. What is the Gomorycut for x1 row?

■ Gomory cut formula is∑

j∈N

(aij − ⌊aij⌋)xj ≥ bi − ⌊bi⌋

and therefore cut is

2

3s1 +

1

3s2 ≥

2

3

Page 103: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 43/45

An Example

■ Add new slack-variable s3 and row

−2

3s1 −

1

3s2 + s3 = −

2

3

to final tableau.

Page 104: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 43/45

An Example

■ Add new slack-variable s3 and row

−2

3s1 −

1

3s2 + s3 = −

2

3

to final tableau.■ Tableau becomes:

BV x1 x2 s1 s2 s3 Value

z 0 0 7/3 2/3 0 64/3

x2 0 1 1/3 -1/3 0 4/3x1 1 0 -1/3 4/3 0 8/3s3 0 0 -2/3 -1/3 1 -2/3

Page 105: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 43/45

An Example

■ Add new slack-variable s3 and row

−2

3s1 −

1

3s2 + s3 = −

2

3

to final tableau.■ Tableau becomes:

BV x1 x2 s1 s2 s3 Value

z 0 0 7/3 2/3 0 64/3

x2 0 1 1/3 -1/3 0 4/3x1 1 0 -1/3 4/3 0 8/3s3 0 0 -2/3 -1/3 1 -2/3

■ Use dual simplex to remove infeasibility.

Page 106: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 44/45

An Example

BV x1 x2 s1 s2 s3 Value

z 0 0 1 0 2 20

x2 0 1 1 0 -1 2x1 1 0 -3 0 4 0s2 0 0 2 1 -3 2

■ All variables have integer values. Done!

Page 107: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 45/45

Discussion

■ We were really lucky with the Gomory cut we chose but . . .◆ . . . in practice we’re often not that lucky and have to go

through many iterations.◆ . . . fractional coefficients cause numerical instability.

Page 108: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 45/45

Discussion

■ We were really lucky with the Gomory cut we chose but . . .◆ . . . in practice we’re often not that lucky and have to go

through many iterations.◆ . . . fractional coefficients cause numerical instability.

■ There are often better cuts to add than Gomory cuts◆ Chvàtal-Gomory cuts, specially tailored cuts, . . .

Page 109: Strong IP Formulations - University of Waterloohwolkowi/henry/teaching/w11/370.w11/w11co370... · Strong Formulations LP vs IP LP Relaxation Convex Hull Valid Inequalities Chvátal-Gomory

Strong Formulations

Valid Inequalities

Chvátal-Gomory Procedure

Cutting-Plane Algorithms

Gomory Cuts

● The Idea

● Gomory Cuts

● An Example

● Discussion

Jochen Könemann, March 19, 2007 CO 370 – Deterministic Operations Research Models - p. 45/45

Discussion

■ We were really lucky with the Gomory cut we chose but . . .◆ . . . in practice we’re often not that lucky and have to go

through many iterations.◆ . . . fractional coefficients cause numerical instability.

■ There are often better cuts to add than Gomory cuts◆ Chvàtal-Gomory cuts, specially tailored cuts, . . .

■ Cuts are often used in Branch & Bound◆ Add cuts while you go and reduce B&B tree size.