Module 2 of 2 · Lesson 1 of 5
Constrained Optimization
Reading a described situation as variables, objective, and constraints.
What you will be able to do
Given a described decision situation in prose, the learner can state the decision variables, the objective and its direction, and the constraints, and can distinguish a decision variable from a quantity determined by the decisions.
Orientation
Before any method: what is being chosen, what is being made as large or small as possible, and what rules out some of the choices. Most modelling failures happen here.
This matters because every method later in the subject assumes the problem has already been put in this shape. A learner who cannot separate the three parts will read a solution procedure as a ritual rather than as an answer to a question.
Intuition
The three parts of an optimization problem
Every optimization problem answers one question: of all the choices I am allowed to make, which is best?
Three things must be settled before that question means anything. What may I choose? What counts as best? What am I not allowed to do?
The third is what makes the problem constrained. Without limits, most optimization questions are either trivial or have no answer, produce infinitely much, spend infinitely little. The constraints are not an obstacle bolted onto the problem; they are what makes it a problem worth asking.
Definition
Constrained optimization
A constrained optimization problem consists of three parts:
- Decision variables
: the quantities the decision maker sets directly. - An objective function
, together with a direction, minimize or maximize. - A feasible set
, the choices permitted, usually described by constraints.
The problem is written
A point
Linear programming is the case where
Example
Reading the three parts out of a description
A factory. We make chairs and tables. Each chair takes 2 hours of labour and 1 unit of timber; each table takes 3 hours and 4 units. We have 120 labour hours and 100 units of timber this week. Chairs earn 40, tables earn 90. What should we make?
- Decision variables: the number of chairs and the number of tables to make.
- Objective: maximize total earnings.
- Constraints: labour used cannot exceed 120 hours; timber used cannot exceed 100 units; neither quantity can be negative.
A diet. Find the cheapest daily menu meeting minimum requirements for protein and iron.
- Decision variables: how much of each food to include.
- Objective: minimize total cost.
- Constraints: protein at least the requirement; iron at least the requirement; amounts nonnegative.
Note what is not a decision variable in the factory problem: total earnings. Earnings are determined once the chairs and tables are fixed. A quantity the decision maker computes rather than sets belongs in the objective, not among the variables.
Contrast
Decision variables and computed quantities
Consider the factory again: chairs earn 40, tables earn 90, and we want the most money.
Not a formulation. Let
Nothing here can be chosen.
A formulation. Let
Now the variables are the decisions, and profit is what the objective computes from them. The test is one question: could I write this number down before knowing the others? If not, it is derived, and it belongs in the objective or a constraint, never among the variables.