Linear programming is a method for maximizing or minimizing a linear objective under linear constraints. Students use it to model decisions about profit, cost, time, resources, and production. This cheat sheet helps organize the setup process, graphing method, and simplex method so problems are easier to solve accurately.
It is especially useful when moving from two-variable graphing problems to larger systems.
Key Facts
- A standard linear programming maximization problem can be written as maximize subject to linear constraints.
- A constraint such as represents a half-plane, and the feasible region is the intersection of all constraint half-planes.
- For a two-variable linear programming problem, an optimum occurs at a vertex of the feasible region when the feasible region is bounded.
- To change into an equation, add a slack variable: , where .
- In a simplex tableau, the entering variable is usually chosen from the most negative coefficient in the objective row for a maximization problem.
- The leaving variable is found by the minimum positive ratio test using positive entries in the entering column.
- A pivot operation makes the pivot entry equal to and all other entries in the pivot column equal to .
- The simplex method stops for a maximization problem when all coefficients in the objective row are nonnegative.
Vocabulary
- Objective function
- The linear expression, such as , that is maximized or minimized.
- Constraint
- A linear equation or inequality, such as , that limits the possible values of the variables.
- Feasible region
- The set of all points that satisfy every constraint, including nonnegativity conditions such as and .
- Slack variable
- A nonnegative variable added to a constraint to convert it into an equation, such as .
- Pivot
- The selected tableau entry used to update rows so one variable enters the solution and another variable leaves.
- Optimal solution
- A feasible solution that gives the greatest or least possible value of the objective function.
Common Mistakes to Avoid
- Forgetting nonnegativity constraints is wrong because linear programming variables often represent real quantities, so conditions like and must be included.
- Testing only one corner point is wrong because the maximum or minimum must be compared across all relevant vertices of the feasible region.
- Using a negative ratio in the simplex ratio test is wrong because the leaving row must keep the solution feasible, so only positive entries in the entering column are allowed.
- Pivoting without first making the pivot entry equal to is wrong because the entering variable column must become a unit column.
- Stopping the simplex method while the objective row still has a negative coefficient is wrong for a maximization problem because the objective value can still improve.
Practice Questions
- 1 Maximize subject to , , , and by checking the vertices.
- 2 Convert the constraints and into equations using slack variables.
- 3 For the entering column values , , and with right-side values , , and , use the ratio test to choose the leaving row.
- 4 Explain why an optimal solution to a bounded two-variable linear programming problem occurs at a vertex instead of in the middle of an edge.