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 x = ( x 1 , … , x n ) : the quantities the decision maker sets directly.
  • An objective function f ( x ) , together with a direction, minimize or maximize.
  • A feasible set F , the choices permitted, usually described by constraints.

The problem is written

min x ∈ F f ( x ) or max x ∈ F f ( x ) .

A point x ∈ F is a feasible solution. A feasible x ⋆ with f ( x ⋆ ) ≤ f ( x ) for every x ∈ F is an optimal solution, and f ( x ⋆ ) is the optimal value.

Linear programming is the case where f is linear and F is described by linear constraints. Nothing in the three-part structure depends on that.

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 P be the total profit. Maximise P subject to the labour and timber limits.

Nothing here can be chosen. P is not something the factory sets; it is what results once the chairs and tables are fixed. Written this way the constraints have nothing to constrain, and no method can act on the problem.

A formulation. Let x 1 be the number of chairs and x 2 the number of tables. Maximise 40 x 1 + 90 x 2 subject to 2 x 1 + 3 x 2 ≤ 120 , x 1 + 4 x 2 ≤ 100 , x 1 , x 2 ≥ 0 .

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.

Next step

Practice Constrained Optimization

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to From a Described Problem to a Model

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.