Or Part 1 - Lecture 3 - IntegerProgramming
Or Part 1 - Lecture 3 - IntegerProgramming
2024
Contents
min x1 + x2 + x3 + x4 + x5 + x6 + x7
s.t. x1 + x4 + x5 + x6 + x7 ≥ d1
x1 + x2 + x5 + x6 + x7 ≥ d2
x1 + x2 + x3 + x6 + x7 ≥ d3
x1 + x2 + x3 + x4 + x7 ≥ d4
x1 + x2 + x3 + x4 + x5 ≥ d5
x2 + x3 + x4 + x5 + x6 ≥ d6
x3 + x4 + x5 + x6 + x7 ≥ d7
x1 , x2 , x3 , x4 , x5 , x6 , x7 ∈ Z+
Integer linear programs Formulations
Contents
Matrix form:
min ct x min ct x
s.t. Ax ≤ b s.t. Ax ≤ b
n
x∈Z x ∈ Zp × Rq
Solving integer linear programs 2D graphical resolution
Contents
Weight Value
Type 1 3 kg 3$
Type 2 5 kg 4$
Constraints:
at most 4 items
at most 15 kg
Objective: bring
maximum value
Solving integer linear programs 2D graphical resolution
Weight Value
max 3x1 + 4x2 Type 1 3 kg 3$
subject to Type 2 5 kg 4$
x1 + x2 ≤ 4
Constraints:
3x1 + 5x2 ≤ 15
at most 4 items
x1 , x2 ∈ Z+ at most 15 kg
Objective: bring
maximum value
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
4
max 3x1 + 4x2
3
subject to
2
x1 + x2 ≤ 4
3x1 + 5x2 ≤ 15 1
x1 , x2 ∈ Z+
0 1 2 3 4 5 x1
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
LP relaxation x2
4
max 3x1 + 4x2
3
subject to
x1 + x2 ≤ 4 2 (2.5, 1.5)
3x1 + 5x2 ≤ 15 1
Z
Z
x1 , x2 ∈ + R
Z
0 1 2 3 4 5 x1
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
Branch-and-bound method in 2D
(P2 ) max = 13
0 1 2 3 4 5 x1
at (x1 , x2 ) = (3, 1) ∈ Z2
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
(P2 ) max = 13
at (x1 , x2 ) = (3, 1) ∈ Z2
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
x2
(P2 ) max = 13
0 1 2 3 4 5 x1
at (x1 , x2 ) = (3, 1) ∈ Z2
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
x2
(P1.2.1.1 ) max = 12
4
at (x1 , x2 ) = (0, 3) ∈ Z2 (0, 3)
3 opt = 12
(P1.2.1.1 ) max = 11
2
at (x1 , x2 ) = (1, 2) ∈ Z2 (1, 2)
(3, 1)
opt = 11
1 opt = 13
(P2 ) max = 13
at (x1 , x2 ) = (3, 1) ∈ Z2 0 1 2 3 4 5 x1
Solving integer linear programs 2D graphical resolution
Branch-and-bound method in 2D
x2
4
max = 13 3
2
at (x1 , x2 ) = (3, 1) ∈ Z 2
(3, 1)
1 opt = 13
0 1 2 3 4 5 x1
Solving integer linear programs Branch-and-bound method
Contents
Contents