In the simplex algorithm in linear programming,
what are conditions for a variable to leave a basis (not necessarily basis for the/an optimal solution)?
I'm supposed to list as many sufficient and necessary conditions as possible for some basic variable $x_q$ which could be slack, artificial or non-slack and non-artificial.
Let $x_q$ be the s-th basic variable. Suppose the s-th row of some current simplex tableau has 1 in the column of $x_q$ and 0's everywhere else. Under what circumstances, if any, might $x_q$ leave the basis? Can any of the values in the s-th row of the tableau ever change?
Well since it's a basic variable, I'm guessing the $x_q$ column already has 0's everywhere except in the s-th row. Now, the $x_q$ row has 0's everywhere in the column of $x_q$ like:
This is in the context of the Big M Method and artificial variables. I'm not quite sure what the relationship is exactly, though.
Edit: It looks like one of the constraints is the original (maximisation?) problem has something like
$$x_2 = 10$$
or
$$x_4 = 0$$
I guess the relationship would be Big M Method applies for equality constraint?
But I think an equality constraint like for example
$$x_4 = 0$$
would lead to
$$x_4 + x_5 = 0$$
with $z$ being replaced with $z' = z - Mx_5$
So
$$x_4 + x_5 = 0$$
doesn't exactly lead to a row of all but one zero entry? There are two non-zero entries?
What I tried:
$x_q$ leaves if there is some non-basic variable $x_r$ that enters because
$$z_r - c_r < 0$$
$$z_r - c_r = \min_j (z_j - c_j)$$
$$\frac{b_q'}{a_{qr}'} = \min_i \{\frac{b_i'}{a_{ir}'} | a_{ir}' > 0 \}$$
Is that right? Any other sufficient or necessary conditions?
What is the relevance of the 0's in the row?
Edit:
I guess an example would be something like
\begin{bmatrix} 2 & 0 & 10\\ 0 & 1 & 0\\ 5 & 0 & 6 \end{bmatrix}
If $x_q$ leaves and then $x_r$ enters where $x_q$'s column is the second column, and then $x_r$ is, say, the first column. What would be the EROs?
$$\color{red}{\frac{1}{2}R_1 + R_2 \to R_2}$$ $$-2R_2 + R_1 \to R_1$$ $$-5R_2 + R_3 \to R_3$$
I have never had to make $\color{red}{\text{a zero entry to a non-zero number}}$ in the simplex method.
I find this suspicious. Should I not?
Perhaps the elements in the row can never change because $x_q$ can never leave?
Or $x_q$ can never leave because row can never change?