In this chapter, you will learn to:
- Solve linear programming maximization problems using the simplex method.
- Solve the minimization problems using the simplex method.
Summary: This chapter covers principles of the simplex method to Linear Programming. After completing this chapter students should be able to: solve linear programming maximization problems using the simplex method and solve the minimization problems using the simplex method.
In this chapter, you will learn to:
In the last chapter, we used the geometrical method to solve linear programming problems, but the geometrical approach will not work for problems that have more than two variables. In real life situations, linear programming problems consist of literally thousands of variables and are solved by computers. We can solve these problems algebraically, but that will not be very efficient. Suppose we were given a problem with, say, 5 variables and 10 constraints. By choosing all combinations of five equations with five unknowns, we could find all the corner points, test them for feasibility, and come up with the solution, if it exists. But the trouble is that even for a problem with so few variables, we will get more than 250 corner points, and testing each point will be very tedious. So we need a method that has a systematic algorithm and can be programmed for a computer. The method has to be efficient enough so we wouldn't have to evaluate the objective function at each corner point. We have just such a method, and it is called the simplex method.
The simplex method was developed during the Second World War by Dr. George Dantzig. His linear programming models helped the Allied forces with transportation and scheduling problems. In 1979, a Soviet scientist named Leonid Khachian developed a method called the ellipsoid algorithm which was supposed to be revolutionary, but as it turned out it is not any better than the simplex method. In 1984, Narendra Karmarkar, a research scientist at AT&T Bell Laboratories developed Karmarkar's algorithm which has been proven to be four times faster than the simplex method for certain problems. But the simplex method still works the best for most problems.
The simplex method uses an approach that is very efficient. It does not compute the value of the objective function at every point, instead, it begins with a corner point of the feasibility region where all the main variables are zero and then systematically moves from corner point to corner point, while improving the value of the objective function at each stage. The process continues until the optimal solution is found.
To learn the simplex method, we try a rather unconventional approach. We first list the algorithm, and then work a problem. We justify the reasoning behind each step during the process. A thorough justification is beyond the scope of this course.
We start out with an example we solved in the last chapter by the graphical method. This will provide us with some insight into the simplex method and at the same time give us the chance to compare a few of the feasible solutions we obtained previously by the graphical method.
But first, we list the algorithm for the simplex method.
That is, write the objective function and the constraints.
This is done by adding one slack variable for each inequality.
Write the objective function as the bottom row.
The quotients are computed by dividing the far right column by the identified column in step 4. A quotient that is a zero, or a negative number, or that has a zero in the denominator, is ignored.
This is done the same way as we did with the Gauss-Jordan method.
Get the variables using the columns with 1 and 0s. All other variables are zero. The maximum value you are looking for appears in the bottom right hand corner.
And now, (Reference) we solved in (Reference).
Niki holds two part-time jobs, Job I and Job II. She never wants to work more than a total of 12 hours a week. She has determined that for every hour she works at Job I, she needs 2 hours of preparation time, and for every hour she works at Job II, she needs one hour of preparation time, and she cannot spend more than 16 hours for preparation. If she makes $40 an hour at Job I, and $30 an hour at Job II, how many hours should she work per week at each job to maximize her income?
In solving this problem, we will follow the algorithm listed above.
Since the simplex method is used for problems that consist of many variables, it is not practical to use the variables
Let
and
It is customary to choose the variable that is to be maximized as
The problem is formulated the same way as we did in the (Reference).
Maximize
Subject to:
For example to convert the inequality
Here the variable
We can even rewrite the objective function
After adding the slack variables, our problem reads
Objective function:
Subject to constraints:
Now that the inequalities are converted into equations, we can represent the problem into an augmented matrix called the initial simplex tableau as follows.
![]() |
Here the vertical line separates the left hand side of the equations from the right side. The horizontal line separates the constraints from the objective function. The right side of the equation is represented by the column
The reader needs to observe that the last four columns of this matrix look like the final matrix for the solution of a system of equations. If we arbitrarily choose
Which reads
The solution obtained by arbitrarily assigning values to some variables and then solving for the remaining variables is called the basic solution associated with the tableau. So the above solution is the basic solution associated with the initial simplex tableau. We can label the basic solution variable in the right of the last column as shown in the table below.
![]() |
The most negative entry in the bottom row is –40, therefore the column 1 is identified.
![]() |
Why do we choose the most negative entry in the bottom row?
The most negative entry in the bottom row represents the largest coefficient in the objective function – the coefficient whose entry will increase the value of the objective function the quickest.
The simplex method begins at a corner point where all the main variables, the variables that have symbols such as
As mentioned in the algorithm, in order to calculate the quotient, we divide the entries in the far right column by the entries in column 1, excluding the entry in the bottom row.
![]() |
The smallest of the two quotients, 12 and 8, is 8. Therefore row 2 is identified. The intersection of column 1 and row 2 is the entry 2, which has been highlighted. This is our pivot element.
Why do we find quotients, and why does the smallest quotient identify a row?
When we choose the most negative entry in the bottom row, we are trying to increase the value of the objective function by bringing in the variable
Why do we identify the pivot element?
As we have mentioned earlier, the simplex method begins with a corner point and then moves to the next corner point always improving the value of the objective function. The value of the objective function is improved by changing the number of units of the variables. We may add the number of units of one variable, while throwing away the units of another. Pivoting allows us to do just that.
The variable whose units are being added is called the entering variable, and the variable whose units are being replaced is called the departing variable. The entering variable in the above table is
In (Reference), we used pivoting to obtain the row echelon form of an augmented matrix. Pivoting is a process of obtaining a 1 in the location of the pivot element, and then making all other entries zeros in that column. So now our job is to make our pivot element a 1 by dividing the entire second row by 2. The result follows.
![]() |
To obtain a zero in the entry first above the pivot element, we multiply the second row by –1 and add it to row 1. We get
![]() |
To obtain a zero in the element below the pivot, we multiply the second row by 40 and add it to the last row.
![]() |
We now determine the basic solution associated with this tableau. By arbitrarily choosing
We can restate the solution associated with this matrix as
Since there is still a negative entry, –10 , in the bottom row, we need to begin, again, from step 4. This time we will not repeat the details of every step, instead, we will identify the column and row that give us the pivot element, and highlight the pivot element. The result is as follows.
![]() |
We make the pivot element 1 by multiplying row 1 by 2, and we get
![]() |
Now to make all other entries as zeros in this column, we first multiply row 1 by
![]() |
We no longer have negative entries in the bottom row, therefore we are finished.
Why are we finished when there are no negative entries in the bottom row?
The answer lies in the bottom row. The bottom row corresponds to the following equation.
Since all variables are non-negative, the highest value
We now read off our answers, that is, we determine the basic solution associated with the final simplex tableau. Again, we look at the columns that have a 1 and all other entries zeros. Since the columns labeled
The matrix reads
The final solution says that if Niki works 4 hours at Job I and 8 hours at Job II, she will maximize her income to $400. Since both slack variables are zero, it means that she would have used up all the working time, as well as the preparation time, and none will be left.
In this section, we will solve the standard linear programming minimization problems using the simplex method. Once again, we remind the reader that in the standard minimization problems all constraints are of the form
Before we go any further, however, we first learn to convert a minimization problem into its corresponding maximization problem called its dual.
Convert the following minimization problem into its dual.
Minimize
Subject to:
To achieve our goal, we first express our problem as the following matrix.
![]() |
Observe that this table looks like an initial simplex tableau without the slack variables. Next, we write a matrix whose columns are the rows of this matrix, and the rows are the columns. Such a matrix is called a transpose of the original matrix. We get
![]() |
The following maximization problem associated with the above matrix is called its dual.
Maximize
Subject to:
We have chosen the variables as y's, instead of x's, to distinguish the two problems.
Solve graphically both the minimization problem and its dual, the maximization problem.
Our minimization problem is as follows.
Minimize
Subject to:
We now graph the inequalities.
![]() |
We have plotted the graph, shaded the feasibility region, and labeled the corner points. The corner point (20, 10) gives the lowest value for the objective function and that value is 400.
Now its dual.
Maximize
Subject to:
We graph the inequalities.
![]() |
Again, we have plotted the graph, shaded the feasibility region, and labeled the corner points. The corner point (4, 8) gives the highest value for the objective function, with a value of 400.
The reader may recognize that this problem is the same as (Reference), in (Reference). This is also the same problem as Section 2 in Example 2, where we solved it by the simplex method.
We observe that the minimum value of the minimization problem is the same as the maximum value of the maximization problem; they are both 400. This is not a coincident. We state the duality principle.
Our next goal is to extract the solution for our minimization problem from the corresponding dual. To do this, we solve the dual by the simplex method.
Find the solution to the minimization problem in Example 3 by solving its dual using the simplex method. We rewrite our problem.
Minimize
Subject to:
The dual is as follows:
Maximize
Subject to:
Once again, we remind the reader that we solved the above problem by the simplex method in Section 2, in Example 2. Therefore, we will only show the initial and final simplex tableau.
The initial simplex tableau is
![]() |
Observe an important change. Here our main variables are
The final simplex tableau reads as follows:
![]() |
A closer look at this table reveals that the
We restate the solution as follows:
The minimization problem has a minimum value of 400 at the corner point (20, 10).
We now summarize our discussion so far.
"Reviewer's Comments: 'I recommend this book for undergraduates. The content is especially useful for those in finance, probability statistics, and linear programming. The course material is […]"