Constrained Optimization
Three parts settle every optimization question: the quantities a decision maker sets directly, a function measuring what counts as better, and the set of choices the limits permit. Linear programming is one instance of this shape, and every method in the subject assumes a problem already put into it.
Definition
A constrained optimization problem is a triple: decision variables
Formal statement
Assumptions and scope
A decision variable is a quantity the decision maker sets directly. A quantity determined by the decisions, such as total cost or total profit, is not a decision variable; it belongs in the objective or a constraint.
The feasible set may be empty, in which case no feasible solution exists and the problem is infeasible.
The optimal value may fail to exist even when feasible solutions do, if the objective can be improved without limit over the feasible set.
The three-part structure is independent of linearity. Linear programming is the case where the objective and constraints are linear.
Worked material
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.
Common errors
Common misconception
A quantity the problem mentions and that matters to the outcome, such as total profit or total cost, is a decision variable.
Related units
Connected
- Formulating a Linear Program (contrasts with)
- Feasible Sets (suggested next)