\begin{equation*}
\begin{aligned} \text{Minimize} \amp \amp w = 5 x_1 + 2 x_2 + 4 x_3, \amp \\ \text{subject to} \amp \amp 4 x_1 + 5 x_2 + 3 x_3 \amp \geq 60, \\ \amp \amp 3 x_1 - 4x_2 +2 x_3 \amp \leq 48, \\ \amp \amp -x_1 + x_2 + 2x_3 \amp \leq 24, \\ \amp \amp x_2 \amp \geq 8, \\ \amp \amp x_1, x_2, x_3 \amp \geq 0.
\end{aligned}
\end{equation*}
Solution.
The first step is to put the problem in standard form, which means in this case to change to a maximum problem and then change the first and fourth inequalities.
\begin{equation*}
\begin{aligned} \text{Maximize} \amp \amp z = -5 x_1 - 2 x_2 - 4 x_3, \amp \\ \text{subject to} \amp \amp -4 x_1 - 5 x_2 - 3 x_3 \amp \leq -60, \\ \amp \amp 3 x_1 - 4x_2 +2 x_3 \amp \leq 48, \\ \amp \amp -x_1 + x_2 + 2x_3 \amp \leq 24, \\ \amp \amp -x_2 \amp \leq -8, \\ \amp \amp x_1, x_2, x_3 \amp \geq 0.
\end{aligned}
\end{equation*}
Next, this is put into the simplex tableau:
\begin{equation*}
\left[\begin{array}{rrr|rrrrr|r} -4 \amp -5 \amp -3 \amp 1 \amp 0 \amp 0 \amp 0 \amp 0 \amp -60\\ 3 \amp -4 \amp 2 \amp 0 \amp 1 \amp 0 \amp 0 \amp 0 \amp 48\\ -1 \amp 1 \amp 2 \amp 0 \amp 0 \amp 1 \amp 0 \amp 0 \amp 24\\ 0 \amp -1 \amp 0 \amp 0 \amp 0 \amp 0 \amp 1 \amp 0 \amp -8\\ \hline 5 \amp 2 \amp 4 \amp 0 \amp 0 \amp 0 \amp 0 \amp 1 \amp 0\\ \end{array} \right] .
\end{equation*}
Looking at the tableau, there are negatives in the last column, so this is phase I. We start with the most negative row (row 1) and note that the leftmost negative parameter occurs in column 3, thus we choose \(x_1\) to enter the basis and since the current basis variable in row 1 is \(x_4\) and thus
\begin{equation*}
1 \mapsto 4, \qquad \left[\begin{array}{rrr|rrrrr|r} 4 \amp 5 \amp 3 \amp -1 \amp 0 \amp 0 \amp 0 \amp 0 \amp 60\\ 0 \amp -31 \amp -1 \amp 3 \amp 4 \amp 0 \amp 0 \amp 0 \amp 12\\ 0 \amp 9 \amp 11 \amp -1 \amp 0 \amp 4 \amp 0 \amp 0 \amp 156\\ 0 \amp -4 \amp 0 \amp 0 \amp 0 \amp 0 \amp 4 \amp 0 \amp -32\\ \hline 0 \amp -17 \amp 1 \amp 5 \amp 0 \amp 0 \amp 0 \amp 4 \amp -300\\ \end{array} \right] .
\end{equation*}
There are still negatives in the last column, so this is still phase I. The most negative value is in row 4 and the leftmost negative parameter in this row is in column 2. Thus \(x_2\) enters the basis and the basic variable in row 4 is \(x_7\) so the pivot will give
\begin{equation*}
2 \mapsto 7, \qquad \left[\begin{array}{rrr|rrrrr|r} 4 \amp 0 \amp 3 \amp -1 \amp 0 \amp 0 \amp 5 \amp 0 \amp 20\\ 0 \amp 0 \amp -1 \amp 3 \amp 4 \amp 0 \amp -31 \amp 0 \amp 260\\ 0 \amp 0 \amp 11 \amp -1 \amp 0 \amp 4 \amp 9 \amp 0 \amp 84\\ 0 \amp 4 \amp 0 \amp 0 \amp 0 \amp 0 \amp -4 \amp 0 \amp 32\\ \hline 0 \amp 0 \amp 1 \amp 5 \amp 0 \amp 0 \amp -17 \amp 4 \amp -164\\ \end{array} \right]
\end{equation*}
There are no remaining negatives in the last column, so we have moved out of phase I. Phase II starts will determining if there are negatives in the objective row and there are.
For this phase, the entering variable is the leftmost negative in the objective row or \(x_7\text{.}\) The leaving variable is determined by \(\boldsymbol{b}\)-ratios or
\begin{equation*}
\begin{bmatrix} 20/5 \\ 260/(-31) \\ 84/9 \\ 32/(-4) \end{bmatrix} \approx \begin{bmatrix} 4 \\ -8.38 \\ 9.33 \\ -8 \end{bmatrix}
\end{equation*}
and the smallest nonnegative ratio is the first row. Since the basic variable that corresponds to the 1st row is \(x_1\text{,}\) this is the leaving variable and the pivot is \(7 \mapsto 1\) or
\begin{equation*}
\left[\begin{array}{rrr|rrrrr|r} 4 \amp 0 \amp 3 \amp -1 \amp 0 \amp 0 \amp 5 \amp 0 \amp 20\\ 31 \amp 0 \amp 22 \amp -4 \amp 5 \amp 0 \amp 0 \amp 0 \amp 480\\ -9 \amp 0 \amp 7 \amp 1 \amp 0 \amp 5 \amp 0 \amp 0 \amp 60\\ 4 \amp 5 \amp 3 \amp -1 \amp 0 \amp 0 \amp 0 \amp 0 \amp 60\\ \hline 17 \amp 0 \amp 14 \amp 2 \amp 0 \amp 0 \amp 0 \amp 5 \amp -120\\ \end{array} \right]
\end{equation*}
Since there are no more negative parameters in the objective row, this tableau is now optimal. The basic solution is
\begin{align*}
\boldsymbol{x} \amp = \frac{1}{5}\left[\begin{array}{rrr|rrrr} 0 \amp 60 \amp 0 \amp 0 \amp 480 \amp 60 \amp 20 \end{array}\right] \\
\amp = \left[\begin{array}{rrr|rrrr} 0 \amp 12 \amp 0 \amp 0 \amp 96 \amp 12 \amp 4 \end{array}\right]
\end{align*}
and corresponding objective of \(z = -120/5 = -24\text{,}\) so the original objective is \(w = 24\) when \(x_1 = 0, x_2 = 12\) and \(x_3 = 0\text{.}\)
