Unit 6.1
Linear Programming Models
Formulation, spreadsheet implementation, and the checks that confirm the solution is the answer to your problem.
- Unit 6.1
- Unit 6.2
§ Overview
A linear program is a mathematical representation of a decision problem: which quantities to choose, to maximize or minimize what, and subject to which limitations. The art of linear programming is not in solving the problem — the solver does that — but in stating it correctly, and in checking that the solver's answer corresponds to the decision problem you actually meant to solve.
This unit covers the three modelling steps (specify the decision variables, the objective, and the constraints), the spreadsheet implementation and solver use, and the feasibility and optimality checks that confirm the solution. The interpretation of the solution in terms of the decision is a modelling activity, not a technical one, and is emphasised throughout.
Lesson 1
Decision variables, objectives, and constraints
Lesson 2
Spreadsheet implementation and solver use
Lesson 3
Feasibility, optimality, and model checking
Laboratory 11
Linear programming
§ Learning outcomes
By the end of Unit 6.1 you will be able to
- Identify the decision variables in a decision problem.
- State the objective function and the constraints in linear form.
- Recognise when a problem cannot be represented as a linear program.
- Implement a linear program in a spreadsheet.
- Apply the solver and verify the solution against the constraints.
- Check that the solver's optimum is feasible, optimal, and consistent with the intended decision problem.
§ Lessons
Decision variables, objectives, and constraints
Translate a decision problem into linear-programming form. The three ingredients of every LP model.
Lesson 2Spreadsheet implementation and solver use
Build, solve, and check a linear program in a spreadsheet.
Lesson 3Feasibility, optimality, and model checking
Test that the solver's answer is the answer to your problem.
§ Anatomy of an LP
Every linear program has three parts:
-
Decision variables. The quantities the decision-maker
chooses. Usually denoted
x₁, x₂, …, xₙ. - Objective function. A linear function of the decision variables to be maximized or minimized.
- Constraints. Linear inequalities or equalities that the decision variables must satisfy. Often accompanied by nonnegativity restrictions.
Corner solutions
The optimal solution of a linear program lies at a corner (vertex) of the feasible region, unless the objective is parallel to a constraint edge, in which case an entire edge may be optimal. This is why LP algorithms search the vertices of the feasible region rather than the interior.
§ Self-check
Check your understanding
Question 1
A linear program is defined by:
Show answer
Decision variables, an objective, and constraints.
Question 2
The feasible region of a linear program is:
Show answer
A convex polygon (or polytope). The intersection of linear constraints is always convex.
Question 3
The optimal solution of a linear program is attained at:
Show answer
A vertex of the feasible region. If the objective is parallel to a constraint edge, an entire edge may be optimal.
Question 4
The nonnegativity restriction x_j ≥ 0 is:
Show answer
A modelling decision that depends on the problem. Some variables must be nonnegative by their meaning; others may be free.
Question 5
A nonlinear objective function:
Show answer
Cannot be modelled as a linear program. Linear programming requires linear objectives and constraints.