The Central Idea

In constrained optimization, we optimize an objective only over the set of decisions that satisfy all restrictions.

A general problem can be written

\[ \boxed{ \begin{aligned} \text{maximize or minimize}\quad &f(\mathbf{x})\\ \text{subject to}\quad &g_i(\mathbf{x})\le0, \qquad i=1,\ldots,m,\\ &h_j(\mathbf{x})=0, \qquad j=1,\ldots,p. \end{aligned} } \]

The objective tells us what should become best. The constraints tell us what choices are allowed.

How Constrained Optimization Differs from Unconstrained Optimization

In an unconstrained problem, an interior differentiable optimum often satisfies

\[ \nabla f(\mathbf{x})=\mathbf{0}. \]

In a constrained problem, the optimal point may lie on a boundary where this condition does not hold.

The constraints can therefore change both the location of the solution and the mathematical method needed to find it.

The Feasible Set

The collection of all points satisfying every constraint is the feasible set.

If

\[ x\ge0, \qquad y\ge0, \qquad x+y\le10, \]

then the feasible set is the triangular region in the first quadrant on or below

\[ x+y=10. \]

Feasibility Comes First

A candidate cannot be optimal unless it is feasible.

This gives the fundamental sequence

\[ \boxed{ \text{identify feasible points} \;\rightarrow\; \text{compare objective values} }. \]

A point with an excellent objective value but a violated constraint is not an admissible solution.

Equality-Constrained Optimization

An equality constraint requires

\[ h(\mathbf{x})=0. \]

For example,

\[ x+y=20 \]

restricts feasible points to a line.

In higher dimensions, equality constraints may restrict decisions to a curve, surface, or other lower-dimensional set.

Inequality-Constrained Optimization

An inequality constraint may take the form

\[ g(\mathbf{x})\le0. \]

For example,

\[ x^2+y^2\le25 \]

restricts points to the disk of radius \(5\).

The interior and boundary of the region may both contain candidate optima.

Active and Inactive Constraints

An inequality constraint is active at a point when it holds with equality.

If

\[ x+y\le10 \]

and

\[ x+y=10, \]

then the constraint is active.

If instead

\[ x+y=7, \]

the constraint is inactive and has slack.

Why Boundaries Matter

In constrained problems, the objective may improve as we move toward the edge of the feasible region.

The best feasible point can therefore occur where one or more constraints become active.

Boundary analysis is one of the defining features of constrained optimization.

Example: A Constraint Changes the Solution

Consider

\[ f(x,y)=x^2+y^2. \]

Without constraints, the global minimum is

\[ (0,0). \]

Now impose

\[ x+y=10. \]

The point \((0,0)\) is no longer feasible.

The constrained optimizer must lie somewhere on the line

\[ x+y=10. \]

Substitution as a Constrained Optimization Method

When an equality constraint can be solved for one variable, substitution can reduce the constrained problem to an unconstrained problem in fewer variables.

Suppose

\[ x+y=10. \]

Then

\[ y=10-x. \]

Any objective \(f(x,y)\) can now be rewritten as a one-variable function

\[ F(x)=f(x,10-x). \]

Example: Minimizing Distance with Substitution

Minimize

\[ f(x,y)=x^2+y^2 \]

subject to

\[ x+y=10. \]

Substitute

\[ y=10-x. \]

Then

\[ F(x) = x^2+(10-x)^2. \]

Expand:

\[ F(x)=2x^2-20x+100. \]

Differentiate:

\[ F'(x)=4x-20. \]

Set equal to zero:

\[ x=5. \]

Therefore,

\[ y=5. \]

The constrained minimizer is

\[ \boxed{(5,5)}. \]

Why the Minimum Occurs at \((5,5)\)

Along the line

\[ x+y=10, \]

the point \((5,5)\) is closest to the origin.

Since

\[ x^2+y^2 \]

is squared distance from the origin, minimizing the objective finds the nearest feasible point.

Geometric Interpretation

Objective level sets can be compared with the feasible region.

For

\[ f(x,y)=x^2+y^2, \]

the contours are circles

\[ x^2+y^2=c. \]

Minimization asks for the smallest circle that touches the feasible set.

Tangency at a Smooth Equality-Constrained Optimum

At many smooth constrained optima, an objective contour becomes tangent to the constraint curve.

The two curves then share a normal direction.

This observation leads directly to Lagrange multipliers.

Interior Candidates

If a constrained optimum lies strictly inside the feasible region, then no inequality constraint is active there.

In that case, the point behaves locally like an unconstrained optimum and often satisfies

\[ \nabla f=\mathbf{0}. \]

Boundary Candidates

Boundary points require separate analysis because the feasible directions are restricted.

An objective may still be improving in the ambient space while no feasible direction allows further improvement.

Example: Boundary Maximum

Maximize

\[ f(x,y)=x+y \]

subject to

\[ x^2+y^2\le1. \]

The unconstrained objective has no maximum because \(x+y\) can grow indefinitely.

The disk constraint makes the problem bounded.

The maximum occurs on the boundary

\[ x^2+y^2=1. \]

Constraints Can Create Extrema

A constrained optimum can exist even when the unconstrained problem has no optimum.

This happens because the feasible set may prevent the decision variables from moving indefinitely in an improving direction.

Constraints Can Remove Extrema

A point that is optimal in the unconstrained problem may be excluded by the constraints.

The constrained problem must then select the best remaining feasible alternative.

Candidate Sets in Constrained Optimization

Depending on the problem, relevant candidates may include:

Closed and Bounded Feasible Sets

If the objective is continuous and the feasible set is nonempty, closed, and bounded, then a global maximum and minimum are attained.

This is a direct consequence of the Extreme Value Theorem in higher dimensions.

Unbounded Feasible Sets

An unbounded feasible set does not automatically prevent an optimum.

For example,

\[ f(x)=x^2 \]

has the global minimum

\[ x=0 \]

over the unbounded feasible set

\[ x\in\mathbb{R}. \]

But unbounded feasible sets require careful analysis of the objective.

Empty Feasible Sets

If the constraints contradict one another, there may be no feasible solution.

In that case,

\[ \mathcal{F}=\varnothing, \]

and optimization cannot proceed until the model is revised.

Linear Constraints

Constraints such as

\[ a_1x_1+\cdots+a_nx_n\le b \]

define half-spaces.

Intersections of linear inequalities create polygonal or polyhedral feasible regions.

These structures are central to linear programming.

Nonlinear Constraints

Constraints may also be nonlinear.

Examples include

\[ x^2+y^2\le25, \] \[ xy\ge10, \]

and

\[ e^x+y^2=7. \]

Nonlinear constraints can produce curved and more complicated feasible regions.

Discrete Constraints

Some constrained problems require

\[ x\in\mathbb{Z} \]

or

\[ x\in\{0,1\}. \]

These restrictions create discrete feasible sets and often require different optimization methods from those used in continuous calculus.

Multiple Constraints

A realistic model may contain many constraints simultaneously:

\[ g_1(\mathbf{x})\le0, \] \[ g_2(\mathbf{x})\le0, \] \[ \vdots \] \[ g_m(\mathbf{x})\le0. \]

The feasible set is their intersection.

Example: Production Planning

Suppose profit is

\[ P(x,y)=50x+70y. \]

Labor imposes

\[ 2x+3y\le120. \]

Machine capacity imposes

\[ x+2y\le80. \]

Production must satisfy

\[ x\ge0, \qquad y\ge0. \]

The complete problem is

\[ \boxed{ \begin{aligned} \text{maximize}\quad &50x+70y\\ \text{subject to}\quad &2x+3y\le120,\\ &x+2y\le80,\\ &x\ge0,\\ &y\ge0. \end{aligned} } \]

Corner Points in Linear Problems

For a linear objective over a polygonal feasible region, an optimum—when it is attained—can be found at a vertex of the feasible region.

This is why corner-point analysis is fundamental in linear programming.

Example: Candidate Vertices

Suppose the feasible region has vertices

\[ (0,0), \qquad (6,0), \qquad (4,3), \qquad (0,5). \]

For the objective

\[ P(x,y)=20x+30y, \]

evaluate:

\[ P(0,0)=0, \] \[ P(6,0)=120, \] \[ P(4,3)=170, \] \[ P(0,5)=150. \]

Therefore, among these vertices,

\[ \boxed{(4,3)} \]

gives the largest value.

Binding Constraints at an Optimum

At a constrained optimum, one or more resource limits are often fully used.

Such constraints satisfy equality and are called binding or active.

Their presence frequently determines the geometry of the optimal point.

Slack at an Optimum

Not every constraint must be active at an optimum.

If

\[ g(\mathbf{x})<0, \]

then the corresponding constraint has slack.

This means some permitted capacity remains unused.

Why Some Constraints Become Active

If increasing a resource allows the objective to improve, the optimizer may push against the corresponding resource limit.

This is one reason binding constraints often have important economic or engineering interpretations.

Equality Constraints and Degrees of Freedom

Each independent equality constraint typically removes one degree of freedom.

For example, two variables subject to

\[ x+y=10 \]

effectively leave one independent variable.

This explains why substitution can reduce the dimension of a constrained problem.

Constraint Qualification Preview

More advanced constrained optimization methods require regularity conditions on the constraints.

These conditions ensure that the geometry of the feasible set is sufficiently well behaved for multiplier and derivative methods to apply.

Lagrange Multipliers Preview

For an equality-constrained problem

\[ \text{optimize }f(x,y) \]

subject to

\[ g(x,y)=c, \]

a smooth constrained optimum often satisfies

\[ \boxed{ \nabla f = \lambda\nabla g }. \]

The scalar \(\lambda\) is called a Lagrange multiplier.

Why the Gradients Become Parallel

At a smooth constrained optimum, feasible movement occurs tangent to the constraint surface.

The objective cannot improve to first order in a feasible tangent direction.

Therefore, the gradient of the objective must align with the normal to the constraint.

Since \(\nabla g\) is normal to the constraint surface,

\[ \nabla f = \lambda\nabla g. \]

Inequality Constraints and Optimality Conditions

Inequality-constrained problems require distinguishing active from inactive constraints.

This leads to more general optimality conditions such as the Karush–Kuhn–Tucker conditions, often abbreviated KKT.

These extend the Lagrange multiplier idea to inequality constraints.

KKT Conditions Preview

For a minimization problem with constraints

\[ g_i(\mathbf{x})\le0, \]

the KKT framework introduces multipliers

\[ \lambda_i\ge0. \]

Active constraints may contribute to the stationarity condition, while inactive constraints have zero multiplier under complementary slackness.

Complementary Slackness Preview

A central KKT relation is

\[ \boxed{ \lambda_i g_i(\mathbf{x})=0 }. \]

This means either the constraint is active or its multiplier is zero.

The relation connects feasibility with marginal value.

Constrained Global Optimality

A feasible point \(\mathbf{x}^*\) is a global minimizer if

\[ f(\mathbf{x}^*) \le f(\mathbf{x}) \]

for every feasible \(\mathbf{x}\).

The comparison is made only within the feasible set.

Convexity and Constrained Optimization

When the objective is convex and the feasible set is convex, local minima become global minima.

This dramatically simplifies the interpretation of first-order conditions.

Convexity will be developed in a later lesson.

Sensitivity and Constraint Values

Constraints often contain parameters such as

\[ g(\mathbf{x})\le b. \]

Changing \(b\) changes the feasible set and can change the optimal objective value.

Studying this dependence is part of sensitivity analysis.

Economic Interpretation of Constraints

A binding resource constraint may have economic value because relaxing it slightly could improve the optimal objective.

In many optimization models, multiplier values quantify this marginal value.

Engineering Interpretation of Constraints

Constraints can represent:

The optimizer seeks the best design that respects all such requirements.

Common Error: Optimizing Before Checking Feasibility

A stationary point of the objective is irrelevant if it violates a constraint.

Always test feasibility before accepting a candidate.

Common Error: Checking Only the Interior

Constrained extrema often occur on boundaries.

Searching only for

\[ \nabla f=\mathbf{0} \]

can therefore miss the actual solution.

Common Error: Ignoring Constraint Intersections

Corners where several constraints are active can be important candidates, especially in linear and piecewise-smooth problems.

Common Error: Treating Equality and Inequality Constraints the Same

An equality constraint restricts the solution to a boundary-like set.

An inequality constraint permits a region and may or may not be active at the optimum.

Common Error: Forgetting Domain Restrictions

The natural domain of the objective and the explicit constraints must both be satisfied.

A point can satisfy every written constraint and still be invalid if the objective is undefined there.

Common Error: Assuming Every Active Constraint Determines the Optimum

A constraint can be active without being the sole reason the point is optimal.

Classification requires the full objective-and-feasible-set structure.

A Reliable Constrained Optimization Workflow

  1. Define the decision variables.
  2. Write the objective function.
  3. Write every equality and inequality constraint.
  4. Identify the natural domain.
  5. Determine the feasible set.
  6. Check whether the feasible set is empty, bounded, or unbounded.
  7. Find interior stationary candidates.
  8. Analyze equality-constrained boundaries.
  9. Analyze active inequality boundaries.
  10. Check vertices, intersections, and nondifferentiable points.
  11. Evaluate the objective at all relevant feasible candidates.
  12. Compare values to identify local or global extrema.
  13. Interpret active constraints and slack.
  14. State the optimizer and optimal objective value clearly.

Practice 1: Feasibility

Determine whether

\[ (3,4) \]

is feasible for

\[ x+y\le8, \qquad x\ge0, \qquad y\ge0. \]

Practice 2: Equality Constraint

Rewrite

\[ x+y=12 \]

so that \(y\) is expressed in terms of \(x\).

Practice 3: Substitution

Minimize

\[ f(x,y)=x^2+y^2 \]

subject to

\[ x+y=8. \]

Practice 4: Active Constraint

At

\[ (4,6), \]

determine whether

\[ x+y\le10 \]

is active or inactive.

Practice 5: Slack

Find the slack in

\[ 2x+y\le20 \]

at

\[ (5,4). \]

Practice 6: Boundary Candidate

Explain why maximizing

\[ f(x,y)=x+y \]

over

\[ x^2+y^2\le4 \]

should lead us to inspect the boundary.

Practice 7: Corner Comparison

Evaluate

\[ P(x,y)=10x+20y \]

at

\[ (0,0), \qquad (4,0), \qquad (2,3), \qquad (0,4). \]

Which point gives the largest value?

Practice 8: Empty Feasible Set

Determine whether the system

\[ x\ge7, \qquad x\le5 \]

has a feasible solution.

Practice 9: Build a Constrained Model

Profit is

\[ P(x,y)=40x+50y. \]

Labor requires

\[ 3x+2y\le120. \]

Total production satisfies

\[ x+y\le50. \]

Write the complete constrained maximization model including nonnegativity.

Practice 10: Identify the Error

A student solves

\[ \nabla f=\mathbf{0} \]

and stops, even though the problem contains inequality constraints.

Explain what has been omitted.

Practice Answers

Practice 1

Since

\[ 3+4=7\le8 \]

and both coordinates are nonnegative,

\[ \boxed{(3,4)\text{ is feasible}.} \]

Practice 2

\[ \boxed{y=12-x}. \]

Practice 3

Substitute

\[ y=8-x. \]

Then

\[ F(x)=x^2+(8-x)^2. \]

Differentiate:

\[ F'(x)=4x-16. \]

Therefore,

\[ x=4, \qquad y=4. \]

The constrained minimizer is

\[ \boxed{(4,4)}. \]

Practice 4

At \((4,6)\),

\[ 4+6=10. \]

Therefore,

\[ \boxed{\text{the constraint is active}.} \]

Practice 5

Resource use is

\[ 2(5)+4=14. \]

Slack is

\[ 20-14=\boxed{6}. \]

Practice 6

The objective increases in the direction

\[ (1,1). \]

Inside the disk, movement in that direction remains possible until the boundary is reached.

Therefore the maximum must be sought on

\[ x^2+y^2=4. \]

Practice 7

\[ P(0,0)=0, \] \[ P(4,0)=40, \] \[ P(2,3)=80, \] \[ P(0,4)=80. \]

The largest value is

\[ \boxed{80} \]

attained at both

\[ \boxed{(2,3)\text{ and }(0,4)}. \]

Practice 8

No real number satisfies both constraints.

Therefore,

\[ \boxed{\mathcal{F}=\varnothing}. \]

Practice 9

\[ \boxed{ \begin{aligned} \text{maximize}\quad &40x+50y\\ \text{subject to}\quad &3x+2y\le120,\\ &x+y\le50,\\ &x\ge0,\\ &y\ge0. \end{aligned} } \]

Practice 10

The student has checked only unconstrained interior stationary points.

Boundary points, active constraints, vertices, intersections, and other feasible candidates must also be analyzed.

What to Remember

Constrained optimization seeks the best objective value among feasible decisions.

The governing principle is

\[ \boxed{ \text{the best mathematical point is useful only if it is feasible} }. \]

Where We Go Next

Substitution works well when an equality constraint can be solved easily, but many constrained problems involve several variables and constraints for which direct elimination becomes cumbersome.

The next lesson, Lagrange Multipliers, develops a systematic derivative- based method for locating smooth extrema subject to equality constraints.