Linear Programming II
Linear Programming II
The simplex method is a step-by-step procedure for finding the optimal solution to a
linear programming problem. To apply simplex method to solving a linear programming
problem, it has to be ensured that
(i) all the variables in the problem are non-negative, and
(ii) all the values on the RHS of constraints are non-negative.
For a constraint involving a negative bi value, it is multiplied on each side by –1, and
the direction of inequality is reversed. Thus a constraint 2x1 – 7x2 ≥ –66 would be
replaced as – 2x1 + 7x2 ≤ 66. In case a variable is unrestricted in sign, it is replaced by the
difference of two non-negative variables. Thus, if x3 is given to be unrestricted in sign, it
may be replaced in the problem by x4 – x5, where x4, x5 ≥ 0.
To apply simplex method, the constraints are first expressed as equations. The slack
variables convert “≤” type of inequalities into equations while surplus variables are used
to convert “≥” type of inequalities into equations. Once all equations are obtained,
writing variable names on the top row and the aij values below it draws up a simplex
tableau. The bi values are written on the RHS of the tableau and the cj values in a bottom
row. The three steps involved in a simplex algorithm are:
Testing the Optimality Once an initial solution is obtained with the aid of identity
matrix, it is tested for optimality in terms of Δj = cj - zj. The zj value for each variable is
the summation of the products of the values under the variable and the corresponding
values in the basis. For a maximisation problem, if all Δj ≤ 0, the solution is optimal and
for a minimisation problem, the condition is all Δj ≥ 0.
The revised solution obtained from the new tableau is also tested for optimality. Similar
improvements in the solutions are done until an optimal solution is reached.
Two-phase Method Where artificial variables are involved, the two-phase method can
also be used. In Phase-I, all artificial variables are eliminated while in the other phase the
optimal solution is obtained.