Integer Linear Programming
Integer Linear Programming
Research:
Example:
x1+x2 ≤ 6
Solution:
For point B,
So x1 ≤3 and x1 ≥ 4
Sub problem-1
x1+x2 ≤ 6
x1 ≤ 3
Sub problem-2
x1+x2 ≤ 6
x1 ≥ 4
Here, For A, Z= 30
For B, Z= 39
For C, Z= 24
x1 = 3, & x2 = 3
Sub Problem-2:
Here, For A, B, C
Max Z = 41 (For B)
x2 is not integer.
Again, x2 ≤ 1 and x2 ≥ 2
Sub Problem-3:
x1+x2 ≤ 6
x1 ≥ 4
x2 ≤ 1
Again branching:
Sub Problem-4:
x1+x2 ≤ 6
x1 ≥ 4
x2 ≥ 2
Max Z = 42
x1 ≤ 4, x1 ≥ 5
Sub Problem-5:
x1+x2 ≤ 6
x1 ≥ 4
x2 ≤ 1
x1 ≤ 4
For ( 4,1)
Max Z =37
x1+x2 ≤ 6
x1 ≥ 4
x2 ≤ 1
x1 ≥ 5
For (5,0) ,
Max Z= 40
Max Z=39
Z= 41.25
x1 = 3.75, x2 = 2.25
x1≤3 x1≥4
Z= 39 Z= 41
x1 = 3, x2 = 3 x1 = 4, x2 = 1.8
x1≤1 x1≥2
Z= 40.5
Infeasible
x1 = 4.44, x2 = 1
x1≤4
x1≥5
Z= 37
Infeasible
x1 = 4, x2 = 1