The non-graphical method is much more complicated, and is perhaps much harder to visualize all the possible solutions for a system of inequalities. However, when you have several equations or several variables, graphing may be the only feasible method.
Application of Systems of Inequalities: Linear Programming
Linear programming involves finding an optimal solution for a linear equation, given a number of constraints.
Explain the steps of the Simplex Method to solve applications of systems of linear inequalities
- The standard form for a linear program is: minimize , subject to
. c is the coefficients of the objective function, x is the variables, A is the left-side of the constraints and b is the right side.
- The Simplex Method involves choosing an entering variable from the nonbasic variables in the objective function, finding the corresponding leaving variable that maintains feasibility, and pivoting to get a new feasible solution, repeating until you find a solution.
- In the Simplex Method, if there are no positive coefficients corresponding to the nonbasic variables in the objective function, then you are at an optimal solution.
- In the Simplex Method, if there are no choices for the leaving variable, then the solution is unbounded.
- objective function: A function to be maximized or minimized in optimization theory.
- canonical form: The format in which a linear program in standard form can be represented, if the columns of A are rearranged so that it contains the the number of rows in A.
- pivot: Moving from one basic feasible solution to an adjacent basic feasible solution.
- constraint: A condition that a solution to a problem must satisfy.
- the simplex method: An algorithm that optimizes a system of linear inequalities.
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:
The standard form for the Simplex Method is:
are the variables,
are the coefficients of the objective function, A
is the left-side of the constraints, and
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
, but standard form calls for equalities, or equations. We therefore introduce a slack variable that represents the difference between the two sides of the inequality and is non-negative.
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:
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
, then the values of the basic variables are easily obtained as entries in b,
and this solution is a basic feasible solution.
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
. The result is that if the pivot is in row
, then the column becomes the
-th column of the identity matrix. The variable for this column is now basic, replacing the variable which corresponded to the
-th column of the identity matrix. The variable corresponding to the pivot column enters the set of basic variables, and the variable being replaced leaves the set of basic variables.
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
, then no choice of entering variable can be made and the solution is optimal.
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
is at a minimum.
Using our example, the canonical tableau is:
Columns 5 and 6 are the basic variables s
, 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
respectively. Of these, the minimum is 5, so row 3 must be the pivot row. Performing the pivot produces:
Now columns 4 and 5 represent the basic variables c
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.
Licenses and Attributions