Simplex method
We are given some basic feasible solution $\v x$.
-
If the corresponding reduced costs $\bar{\v c}\geq \v 0$, then $\v x$ is optimal.
-
Otherwise let $j$ be such that $\bar c_j < 0$. Moving in the $j$-th basic direction $\v d$ will reduce cost, since using reduced costs, $$ \begin{align*} \v c^T(\v x+\theta\v d) &= \v c^T\v x + \theta\bar{\v c}^T\v d &&\text{reduced costs} \\ &= \v c^T \v x + \theta \bar c_j d_j &&\bar{\v c}_B = \v 0\\ &< \v c^T \v x &&d_j = 1\text{ and } \bar c_j<0. \end{align*} $$
-
Compute $\v u :=-\v d_B = B\inv \v A_j$. If $\v u\leq 0$, we can get get an optimal cost of $-\infty$ by moving along $\v d$ indefinitely, and so the algorithm terminates.
-
Otherwise let $l = 1,2,\ldots,m$ such that $u_l > 0$ and $x_{B(l)}/u_l$ is minimum. Let the minimum value be $\theta^\ast$.
-
Move to the new basic feasible solution $\v y = \v x + \theta^\ast \v d$ where $y_l = \theta^\ast$, $y_{B(i)} = x_{B(i)} - \theta^\ast u_i$ for $i\neq l$ and other entries are zero.