A common application of systems of inequalities is linear programming. Linear programming is a mathematical method for determining a way to achieve the best outcome for a list of requirements represented as linear relationships.
An example where linear programming would be helpful to optimize a system of inequalities is as follows:
A factory makes three types of chairs, A, B, and C. The factory makes a profit of $2 on chair A, $3 on chair B, and $4 on chair C. Chair A requires 30 man-hours, chair B requires 20, and chair C requires 10. Chair A needs 2m2 of wood, chair B needs 5m2, and chair C needs 3m2. Given 100 man-hours and 15m2 of wood per week, how many chairs of each type should be made each week to maximize profit?
The Simplex Method
The most common method in linear programming is the Simplex Method, or the Simplex Algorithm. To use the Simplex Method, we need to represent the problem using linear equations. Let a be the number of A chairs, b the B chairs, and c the C chairs. Then, we can write two linear inequalities where three variables must be non-negative, and all constraints must be satisfied. One linear inequality will show a relationship between the man-hours required for the project, and the other will show the amount of wood needed in the project:
First, an inequality for for man-hours, simplified:
Then, an inequality for materials:
The function to be maximized (the objective function, and in this case, the profit on the chairs) is:
Standard Form
The standard form for the Simplex Method is:
Minimize
Subject to:
Where
The solution of a linear program is accomplished in two steps. In the first step, Phase I, a starting extreme point is found. Phase I either gives a basic feasible solution or no solution. If there is no solution, the linear program is considered infeasible.
In the second step, Phase II, the Simplex Algorithm is applied using the solution found in Phase I as a starting point. The possible results from Phase II are either an optimal solution or an unbounded solution.
Achieving Standard Form
You may have noticed that we had been given inequalities, such as
This gives us the new equality:
The other inequality,
Standard form also requires the objective function to be a minimization. If the problem calls for maximization, multiply the objective function by
Here are the pieces for standard form:
Canonical Tableaux
A linear program in standard form can be represented as a tableau of the form
where the first row defines the objective function and the remaining rows specify the constraints. If the columns of A can be rearranged so that it contains the p-by-p identity matrix (the number of rows in A), then the tableau is said to be in canonical form. The variables corresponding to the columns of the identity matrix are called basic variables, while the remaining variables are called nonbasic or free variables. If the nonbasic variables are assumed to be
Pivots
Moving from one basic feasible solution to an adjacent basic feasible solution is called a pivot. First, a nonzero pivot element is selected in a nonbasic column. The row containing this element is multiplied by its reciprocal to change this element to 1, and then multiples of the row are added to the others to change the other entries in the column to
Now, the Simplex Method proceeds by performing successive pivot operations which each improve the basic feasible solution; the choice of pivot element at each step is largely determined by the requirement that this pivot improves the solution.
For the entering variable, choose any column in which the entry in the objective row is positive. If all the entries in the objective row are less than or equal to
For the choice of pivot row, only positive entries in the pivot column are considered. This guarantees that the value of the entering variable will be non-negative. If there are none in the pivot column, then the entering variable can take any non-negative value with the solution remaining feasible. Therefore, the objective function is unbounded.
Next, the pivot row must be selected so that all the other basic variables remain positive. This occurs when the resulting value of the entering variable is at a minimum. If the pivot column is c, then the pivot row r is chosen so that
Using our example, the canonical tableau is:
Columns 5 and 6 are the basic variables s and t, and the basic feasible solution is
Columns 2, 3, and 4 can be selected as pivot columns; for this example column 4 is selected. The values of x resulting from the choice of rows 2 and 3 as pivot rows are
Now columns 4 and 5 represent the basic variables c and s and the corresponding basic feasible solution is:
For the next step, there are no positive entries in the objective row, and in fact:
So, we should make 5 chairs of type C to maximize our profits with 20 dollars.