I am trying to figure out the simplex algorithm in the book "Introduction to Algorithms, 3rd edition". The procedure "Initial-Simplex" takes as input a standard form, and check if there is an initial basic feasible solution for the standard form. The pseudo code is as following:
At line 2, it checks if the minimum variable in array b is greater than or equal to 0. If not, it constructs a Laux and conduct a pivot to eliminate the negative variable within b. Then at line 9, it shows the basic solution is feasible for Laux. The question is, what if originally in array b, there are more than one negative variables? For example the origin b is [-2, -1, 3, 1], then at line 1, we have b[k]=-2, so k=0. But after the execution of line 4 to line 9, there is still a negative variable -1 within b. In this case, we cannot say the basic solution is feasible for Laux. In conclusion, there is no mechanism which checks whether all the variables in b are non-negative, and line 4 to line 9 is not within a loop. Does this algorithm assume that less than one negative variable is within b originally?