Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Algorithm for solving systems of linear inequalities

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!

like image 824
GMB Avatar asked Mar 01 '12 00:03

GMB


2 Answers

This can be done using a linear programming with a constant objective function. That is, only checking for feasibility of the program.

like image 149
Shai Avatar answered Sep 25 '22 08:09

Shai


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.

like image 42
C-Otto Avatar answered Sep 22 '22 08:09

C-Otto