Solving a Knapsack Problem
Consider the knapsack problem
This is an integer programming problem.
We solve it by solving a sequence of linear programming relaxations of
the problem.
The initial relaxation is
The simplex tableau for this problem is
The optimal tableau for this relaxation is
Thus, the optimal solution to the initial relaxation is
This does obviously not solve the original relaxation,
because it has x3=0.6.
Notice that no feasible solution to the integer programming problem
can have both x2=1 and x3=1.
Thus, every solution satisfies
We can add this constraint to M1, giving the tableau
Pivoting to get an identity, we obtain
Solving this tableau using the dual simplex method gives
So, the solution to the modified relaxation is
This is integral, so it solves the original integer program.
John E. Mitchell
2003-10-17