The simplex method demonstrated in the previous section consists of the following steps.
Transform the model constraint inequalities into equations.
Set up the initial tableau for the basic feasible solution at the origin and compute the z j and c j z j row values.
Determine the pivot column (entering nonbasic solution variable) by selecting the column with the highest positive value in the c j z j row.
Determine the pivot row (leaving basic solution variable) by dividing the quantity column values by the pivot column values and selecting the row with the minimum nonnegative quotient .
Compute the new pivot row values using the formula
Compute all other row values using the formula
Compute the new z j and c j z j rows.
Determine whether or not the new solution is optimal by checking the c j z j row. If all c j z j row values are zero or negative, the solution is optimal. If a positive value exists, return to step 3 and repeat the simplex steps.