Introduction to Linear Programming
Introduces linear programs (LPs): the structure of decision variables, a linear objective function, and linear constraints. Students learn to evaluate the objective at a point, check whether a point is feasible, and formulate an LP from a word problem.
Tutorial
What Is a Linear Program?
A linear program (LP) is the problem of maximizing or minimizing a linear function of several variables, subject to a collection of linear inequality (or equality) constraints.
Every LP has three ingredients:
- Decision variables -- the unknowns we control, usually written .
- Objective function -- the linear quantity we wish to maximize or minimize, of the form .
- Constraints -- linear inequalities (or equalities) the variables must satisfy, along with sign restrictions such as .
A complete LP is written like this:
Here the decision variables are and , the objective coefficients are and , the two functional constraints limit linear combinations of the variables, and the sign restrictions keep the variables nonnegative.
A solution to the LP is any assignment of values to the decision variables. The goal is to find a solution that satisfies all constraints and makes the objective as large (or as small) as possible.