Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

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 P=c1x1+c2x2++cnxnP = c_1x_1 + c_2x_2 + \cdots + c_nx_n subject to linear constraints.
  • A constraint such as 2x+3y122x + 3y \le 12 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 a1x1+a2x2ba_1x_1 + a_2x_2 \le b into an equation, add a slack variable: a1x1+a2x2+s=ba_1x_1 + a_2x_2 + s = b, where s0s \ge 0.
  • 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 biaij\frac{b_i}{a_{ij}} using positive entries in the entering column.
  • A pivot operation makes the pivot entry equal to 11 and all other entries in the pivot column equal to 00.
  • 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 P=4x+7yP = 4x + 7y, that is maximized or minimized.
Constraint
A linear equation or inequality, such as x+2y10x + 2y \le 10, that limits the possible values of the variables.
Feasible region
The set of all points that satisfy every constraint, including nonnegativity conditions such as x0x \ge 0 and y0y \ge 0.
Slack variable
A nonnegative variable added to a \le constraint to convert it into an equation, such as x+y+s=8x + y + s = 8.
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 x0x \ge 0 and y0y \ge 0 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 11 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. 1 Maximize P=5x+4yP = 5x + 4y subject to x+y8x + y \le 8, 2x+y102x + y \le 10, x0x \ge 0, and y0y \ge 0 by checking the vertices.
  2. 2 Convert the constraints 3x+2y183x + 2y \le 18 and x+4y16x + 4y \le 16 into equations using slack variables.
  3. 3 For the entering column values 22, 55, and 1-1 with right-side values 1212, 2020, and 99, use the ratio test to choose the leaving row.
  4. 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.