Linear Programming
ILP Feasibility
Given: a system of linear inequalities
Return: Yes if
ILP is in NPTime
- A system of linear equations
is called homogeneous. The solution is the trivial solution. - A point-wise ordering is defined on vectors as:$$(a_i, a_2, \ldots, a_n) \preceq (b_1, b_2, \ldots, b_n) \rightarrow a_i \leq b_i, \forall i$$
- Let
be the minimal non-trivial solution of . On the line joining to we have a sequence of (possibly non-integer) solutions $$ \vec{0} = \vec{v_0} \preceq \ldots \preceq \vec{v_t} = \vec{x}^*$$ - For every k (
) s.t. is at-most 1 - Let
, we have $$w_k = A(v_k - v_k')$$ - Every such
will have absolute value and there will be such 's. - Thus t is bounded by $$t < (2Mn + 1)^m$$where
is for possible negative values, is the extra value for . - For non homogenous equations we just convert it into one$$\begin{pmatrix}a & -\vec{b}\end{pmatrix}\begin{pmatrix}\vec{x} \ y\end{pmatrix} = 0$$
- We can use the same reasoning but restrict solutions in which
is 1.
Thus ILP-feasibility is in NP-Time since we have a polynomial time algorithm to verify a solution.
ILP is NPTime-Hard
We want to show that a system of linear equations has a solution if a set of clauses say
- For every propositional variable
we add a equation - For every clause
we add variables and the following equations $$\begin{array}{ll}x_{l_1} + x_{l_2} + x_{l_3} + y_1^\gamma + y_2^\gamma = 3 \ y_1^\gamma + z_1^\gamma = 1 \ y_2^\gamma + z_2^\gamma = 1\end{array}$$ - This is a valid reduction from 3SAT to ILP-feasibility