Algorithm for solving systems of linear inequalities

后端 未结 5 1417
甜味超标
甜味超标 2020-12-11 01:34

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. wh

5条回答
  •  时光说笑
    2020-12-11 02:16

    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

提交回复
热议问题