I have k linear inequalities in n variables (0 < k < n). I don't particularly care what the solution set is, I only want to test whether or not it's empty - i.e. whether any assignment to my n variables satisfies the system. Anyone know a way to solve this?
Thanks!
You just need to intersect the ranges. Here's how to in pseudocode:
You could use Fourier-Motzkin elimination for solving the system of inequalities. You will need to know basic algebra to understand the solution though.
http://en.wikipedia.org/wiki/Fourier%E2%80%93Motzkin_elimination
Compute the determinant of the related matrix; if it is non-zero there's a unique solution; if it is zero, there are either infinitely many solutions or none - http://en.wikipedia.org/wiki/System_of_linear_equations
Alternatively, use Gaussian elimination - http://en.wikipedia.org/wiki/Gaussian_elimination
Use a SMT solver for the theory of linear arithmetic (Yices, Z3, ...). These programs are designed to find models for the input you specified. Of course, you can also benefit from the existing algorithms in other ways.
This can be done using a linear programming with a constant objective function. That is, only checking for feasibility of the program.