lp
lp
Ax ≤ b
x≥0
Ax = b
x≥0
1
1. Linear Programming and Simplex algorithm
For the lecture we will assume (if not mentioned) that the objective is to
minimize the objective function. That is, we want to minimize cT x.
where the j th column vector is Aj . The j th element of the ith row vector
is aij = Aji . The identity matrix is denoted by I.
2
1.2. MATH BACKGROUND - CONVEX SETS
2. A line segment
3. {x ∈ Rn | Ax = b}
4. {x ∈ Rn | Ax = b and x ≥ 0}
3
1. Linear Programming and Simplex algorithm
This can be converted into an LP in canonical form as follows. For the ith
in-equality constraint a0i T x0 ≤ bi , we introduce a new variable xn−m+i and
add the following constraints
T
a0i x0 + xn−m+i = bi
xn−m+i ≥ 0
4
1.4. CANONICAL FORM LP - ALGEBRAIC VIEW
minimize cT x
Ax = b
x≥0
The set of all feasible points (called the feasible set) of this LP in the
canonical form is
FC = {x ∈ Rn | Ax = b and x ≥ 0}
This set is closely related to the feasible set of the LP in standard form. We
now describe a mapping f : FS → FC . Let x0 ∈ FS . Now consider the vector
x ∈ Rn where xj for a j ≤ n is given as
(
x0j if j ≤ n − m
xj =
bi − a0i T x0 if j = n − m + i and i ≤ m
5
1. Linear Programming and Simplex algorithm
Exercise 1.1. Show that a basis for the column space of A has m vectors.
Exercise 1.2. Given a matrix where rows are dependent, give an equiv-
alent LP with independent rows.
From the above assumption, we note that the number of non-zeros in
a vector x ∈ BFS is atmost m. The reason for at most m and not exact
m is because it can happen that the co-efficient of a basis vector is also 0.
Therefore the number of zeros is atleast n − m.
The next lemma is important.
Lemma 1.4. The BFS form the extreme points of FC .
Proof. We need to show two directions for the proof.
First we show that an extreme point of FC is a BFS.
We now show the other direction of the lemma. That is, BFS is an
extreme point of FC . This is left as an exercise.
BFS are the most important points in the LP. We will soon see that the
optimum occurs at one of the BFS.
Special Case: The feasible set FC is bounded.
We say that a set X ⊆ Rn is bounded if there exists an M ∈ R such
that for all x ∈ X, we have that x ≤ M n . Convex sets which are closed
and bounded satisfy a nice property.
6
1.5. SIMPLEX ALGORITHM
Claim 1.6. Let the feasible set be bounded. If there is an optimal solu-
tion, then it occurs at a BFS.
Xk
T
c x≥( λi ) cT z1 = cT z1 (1.2)
i=1
7
1. Linear Programming and Simplex algorithm
8
1.5. SIMPLEX ALGORITHM
Consider the following equation (we fix the θ later): Eq. 1.4 - θ Eq. 1.3.
m
X
b= (xi − θαi )Ai + θAj
i=1
Theorem 1.7. Let x be a BFS such that for all neighbours y ∈ BFS we have
cT y ≥ cT x. Then x is an optimal solution.
9
1. Linear Programming and Simplex algorithm
cj − cTB A−1
B Aj ≥ 0 (1.5)
Now we show that x is an optimal point. Assume not. Let y has a better
objective value. That is, cTB yB + cTN yN = cT y < cT x = cTB xB . Therefore,
X
cTB (yB − xB ) + cj y j < 0 (1.6)
j ∈B
/
P
We know that 0 = A(y − x) = AB (yB − xB ) + j ∈B
/ yj Aj . Therefore,
X
y B − xB = −yj A−1
B Aj (1.7)
j ∈B
/
This gives us a contradiction from Eq. 1.5 and since yj > 0 (yj = 0 will not
satisfy above inequality).
10
1.6. MATCHING USING LP
X
maximize xij
(i,j)∈E
X
∀i ∈ U, xij = 1
j∈V
X
∀j ∈ V, xij = 1
i∈U
∀i, j, 0 ≤ xij ≤ 1
Unfortunately, the optimal solution to the LP may not have integer val-
ues for xij . The next claim shows that there is always an integer solution
associated with a maximal matching.
Claim 1.8. If M ⊆ U × V is a maximal matching, then there is an optimal
solution with integer values and where xij = 1 for all (i, j) ∈ M .
Proof. We give the assignment to xij s as follows. Let {u1 , u2 , . . . , uk } ⊆ U
and {v1 , v2 , . . . , vk } ⊆ V be the set of vertices not matched in M . For the
feasible point, make xui vi = 1. Note that, there is no edge between (ui , vi ).
Otherwise this would have been in the maximal matching.
It is also easy to see that if we have an integer optimal solution, then
we have a maximal matching. Now, we come to deal with the non-integer
solution problem. We show that if we have a non-integer solution we can
get one out of that. In practise this wont be necessary though. It is worth
noting that due to some properties of the linear constraints in the maximal
matching LP, the optimal solution is always integral (we skip this linear
11
1. Linear Programming and Simplex algorithm
Claim 1.9. The optimal value of the LP does not change on this new as-
signment.
Proof. Let us assume that the optimal value increases. A contradiction since
x is an optimal solution and therefore we cannot increase the optimal value.
So, let us assume that the optimal value decreases. Then, consider an alter-
nate assignment where we replace θ by −θ. Due to the previous reason, the
optimal value should now increase. This leads to another contradiction.
We can therefore take a θ such that one of xij s becomes an integer solution
(either 0 or 1) and the rest remains inside the feasible region. This reduces
the number of fractional solutions by atleast one. Continuing the process
will lead to an optimal solution with all integer values.
12