Lecture 3 - Branch and Bound
Lecture 3 - Branch and Bound
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
2. Sub Problem 2
SUB PROBLEM 2 = SP 1 + X34 = M ; Solve With Hungarian Method
Destination
Row's min
City 1 2 3 4 5 value
1 M 132 217 164 58 58
2 132 M 290 201 79 79
Origin 3 217 290 M M 303 217
4 164 201 113 M 196 113
5 58 79 303 196 M 58
Destination
City 1 2 3 4 5
1 M 74 159 106 0
2 53 M 211 122 0
Origin 3 0 73 M M 86
4 51 88 0 M 83
5 0 21 245 138 M
Column's
min value 0 21 0 106 0
2. Sub Problem 2 (cont’)
Destination
City 1 2 3 4 5
1 M 53 159 0 0
2 53 M 211 16 0
Origin 3 0 52 M M 86
4 51 67 0 M 83
5 0 0 245 32 M
Scan rows first
Skip first row because there are 2 zero value
Second row, third row, fourth row and five row, each have zero
After that scan column
The fourth column has one zero
2. Sub Problem 2 (cont’)
Destination
City 1 2 3 4 5
5 58 79 303 196 M
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
SP 2
2 Z =652
X14 = X25 = X31
= X43 = X52 = 1
X25 = M X52 = M
3. Sub Problem 4
SUB PROBLEM 4 = SP 2 + X25 = M ; Solve With Hungarian Method
Destination
City 1 2 3 4 5
1 M 132 217 164 58
2 132 M 290 201 M
Origin 3 217 290 M M 303
4 164 201 113 M 196
5 58 79 303 196 M
(Optimal Solution)
Branching
SP 1
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
SP 2
2 Z =652
X14 = X25 = X31
= X43 = X52 = 1
X25 = M X52 = M
SP 4
Z =668
X15 = X24 = X31
= X43 = X52 = 1
Candidate Solution
3
4. Sub Problem 5
SUB PROBLEM 5 = SP 2 + X52 = M ; Solve With Hungarian Method
Destination
City 1 2 3 4 5
1 M 132 217 164 58
2 132 M 290 201 79
Origin 3 217 290 M M 303
4 164 201 113 M 196
5 58 M 303 196 M
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
SP 2
2 Z =652
X14 = X25 = X31
= X43 = X52 = 1
X25 = M X52 = M
SP 4 SP 5
Z =668 Z =704
X15 = X24 = X31
= X43 = X52 = 1
Candidate Solution
X14 = X25 = X32
= X43 = X51 = 1
X
3 4
5. Sub Problem 3
SUB PROBLEM 3 = SP 1 + X43 = M ; Solve With Hungarian Method
Destination
City 1 2 3 4 5
1 M 132 217 164 58
2 132 M 290 201 79
Origin 3 217 290 M 113 303
4 164 201 M M 196
5 58 79 303 196 M
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
SP 2 SP 3
2 Z =652
X14 = X25 = X31
= X43 = X52 = 1
Z =652
X13 = X25 = X34
= X41 = X52 = 1
5
X25 = M X52 = M X25 = M X52 = M
SP 4 SP 5
Z =668 Z =704
X15 = X24 = X31
= X43 = X52 = 1
Candidate Solution
X14 = X25 = X32
= X43 = X51 = 1
X
3 4
Sub Problem 6 & 7
SP 1
1
Z =295
X15 = X21 = X34
= X43 = X52 = 1
X34 = M X43 = M
SP 2 SP 3
2 Z =652
X14 = X25 = X31
= X43 = X52 = 1
Z =652
X13 = X25 = X34
= X41 = X52 = 1
5
X25 = M X52 = M X25 = M X52 = M
SP 4 SP 5 SP 6 SP 7
Z =668 Z =704 Z =704 Z =910
X15 = X24 = X31
= X43 = X52 = 1
Candidate Solution
X14 = X25 = X32
= X43 = X51 = 1
X X15 = X34 = X23
= X41 = X52 = 1
X
X13 = X25 = X31
= X42 = X54 = 1
X
3 4 6 7
Assignment
• Please add the distances of each city to other
cities with the last number of your Student ID.
In case of the last number is 0 please add the
each distances with 10
• Please conduct the procedure above, with the
new distances of each city to other cities.