Why Constrained Optimization Matters
Structural estimation often asks for parameter values that minimize a criterion, such as a negative log-likelihood or a weighted distance between observed and model-implied moments. The parameters may have to satisfy restrictions: a variance cannot be negative, a probability must lie between zero and one, or several parameters may be linked by a nonlinear equality. The optimizer must therefore search only among feasible values. A numerical routine can return a feasible point without establishing that it is the best feasible point, and a different starting value can lead to a different solution.
The central tasks are to specify the constraints correctly, identify candidate optima, and assess whether the solution is local or global. These are optimization questions. They matter whether the criterion comes from structural likelihood, minimum distance, or indirect inference.
First-Order Conditions and Constraint Boundaries
For an unconstrained differentiable objective, an interior local minimum must have zero gradient. Constraints change this condition: at a boundary, the objective may be unable to decrease in some directions because those directions leave the feasible set. Lagrange multipliers provide first-order conditions for equality constraints. For inequality constraints, the Karush–Kuhn–Tucker (KKT) conditions also encode whether a constraint is active.
Use the convention that inequalities are written \(g_j(\theta)\leq 0\). For equality constraints \(h_k(\theta)=0\), form the Lagrangian \(L(\theta,\lambda,\mu)=Q(\theta)+\sum_j\lambda_j g_j(\theta)+\sum_k\mu_k h_k(\theta)\). Under a suitable constraint qualification, such as linear independence of the gradients of active constraints, a local optimum satisfies stationarity, feasibility, nonnegative inequality multipliers, and complementary slackness:
An inequality is active when it holds with equality; otherwise it is inactive and its multiplier must be zero. Equality-constraint multipliers have no sign restriction. These conditions are generally necessary, not sufficient, in a nonconvex problem. Even a point satisfying them may be a local maximum or a saddle point. Global optimality requires additional justification, for example convexity of the objective and feasible set, or a comparison that rules out all other feasible candidates.
Worked Example: A Parameter at Its Lower Boundary
Suppose a hypothetical structural criterion based on observed moments reduces to \(Q(\theta)=(\theta+0.4)^2\), where \(\theta\) is a nonnegative scale parameter. The constraint is \(\theta\geq0\), or \(g(\theta)=-\theta\leq0\). The unconstrained minimizer, \(-0.4\), is infeasible.
The Lagrangian is \(L=(\theta+0.4)^2-\lambda\theta\), with \(\lambda\geq0\). Stationarity gives \(2(\theta+0.4)-\lambda=0\). If the constraint were inactive, then \(\theta>0\), complementary slackness would give \(\lambda=0\), and stationarity would imply \(\theta=-0.4\), which is infeasible. Thus the constraint is active: \(\theta=0\). Substitution into stationarity gives \(\lambda=0.8\), which satisfies the required sign.
The criterion at this feasible candidate is \(Q(0)=(0+0.4)^2=0.16\). For any feasible \(\theta\geq0\), \(\theta+0.4\geq0.4\), so \(Q(\theta)\geq0.16\). Therefore \(\hat{\theta}=0\) is the global constrained minimum. The estimate is on the boundary, not at the infeasible unconstrained minimum.
Nonlinear Equality Constraints: Check Every Case
For a nonlinear equality \(h(\theta)=0\), stationary candidates satisfy the equality and the Lagrange first-order conditions, provided the gradient of the constraint is nonzero at the feasible point. Solving those equations requires care: dividing by an expression involving a multiplier is valid only after checking the case in which that expression is zero. Once candidates are obtained, compare their objective values and verify feasibility.
Worked Example: A Nonlinear Constraint with Two Candidates
Consider a hypothetical two-parameter structural criterion \(Q(x,y)=x^2+y^2-4x-2y\), subject to the nonlinear restriction \(x^2+y^2=1\). The feasible set is the unit circle. Set \(h(x,y)=x^2+y^2-1\), so \(L=Q+\lambda h\).
The first-order conditions are \(2(1+\lambda)x-4=0\) and \(2(1+\lambda)y-2=0\), together with \(x^2+y^2=1\). First check the case \(1+\lambda=0\), or \(\lambda=-1\). The first condition would then require \(-4=0\), and the second would require \(-2=0\). Both are impossible, so no stationary point has \(\lambda=-1\). Only now is division by \(1+\lambda\) justified, giving
Substituting into the circle constraint yields \(5/(1+\lambda)^2=1\), so \(1+\lambda=\sqrt{5}\) or \(1+\lambda=-\sqrt{5}\). The two candidates are \((2/\sqrt{5},1/\sqrt{5})\) and \((-2/\sqrt{5},-1/\sqrt{5})\). Both satisfy the constraint.
On the circle, \(x^2+y^2=1\), so \(Q=1-4x-2y\). At the positive candidate, \(Q=1-10/\sqrt{5}=1-2\sqrt{5}\approx-3.472\). At the negative candidate, \(Q=1+10/\sqrt{5}=1+2\sqrt{5}\approx5.472\). The positive candidate is the global minimum: every point on the circle satisfies \(2x+y\leq\sqrt{5}\) by the Cauchy–Schwarz inequality, so \(Q=1-2(2x+y)\geq1-2\sqrt{5}\), with equality at \((2/\sqrt{5},1/\sqrt{5})\).
Starting Values, Local Optima, and Objective Profiles
Most nonlinear structural criteria are minimized numerically. A local optimization routine uses the supplied starting value and searches for a nearby solution; it does not, by that fact alone, certify a global minimum. A practical diagnostic is to run the optimizer from several feasible starting values, record the resulting estimates and objective values, and check that reported solutions satisfy the restrictions within a stated numerical tolerance. Agreement across starts is reassuring, but does not prove that no other basin of attraction exists.
An objective profile examines the criterion as a function of one parameter while optimizing the remaining parameters subject to feasibility. For coordinate \(\theta_r\), define \(P_r(a)=\inf_{\theta\in\Theta:\theta_r=a}Q(\theta)\), whenever the restricted feasible set is nonempty. A profile can reveal multiple valleys, boundary minima, or a broad range of nearly similar criterion values. A profile is a diagnostic, not automatically a proof of global optimality; the optimization used to calculate it can itself find only local minima.
Worked Example: Different Starts Find Different Local Minima
Suppose a hypothetical one-parameter estimation problem has \(-1.5\leq t\leq1.5\) and criterion \(Q(t)=1+t^4/4-t^3/15-t^2/2+t/5\). Its derivative factors as \(Q'(t)=(t+1)(t-0.2)(t-1)\), giving stationary points at \(-1\), \(0.2\), and \(1\). The second derivative is \(Q''(t)=3t^2-0.4t-1\).
At \(t=-1\), \(Q''(-1)=2.4>0\); at \(t=1\), \(Q''(1)=1.6>0\). Both are local minima. At \(t=0.2\), \(Q''(0.2)=-0.96<0\), so that point is a local maximum. The endpoint values are also candidates for a global comparison because the parameter interval is bounded.
Evaluating the criterion gives \(Q(-1)=37/60\approx0.6167\), \(Q(1)=53/60\approx0.8833\), \(Q(-1.5)\approx1.0656\), and \(Q(1.5)\approx1.2156\). Thus \(-1\) is the global minimum on the interval, although \(1\) is another local minimum. A local routine started near \(-1\) may converge to the global minimum, while one started near \(1\) may converge to the inferior local minimum. The profile here is simply \(P(t)=Q(t)\); in a multi-parameter problem, profiling would re-optimize the other parameters at each fixed \(t\).
A Reliable Optimization Workflow
A careful analysis separates numerical search from the reasoning that supports the reported estimate. A useful sequence is:
State every boundary and equality or inequality restriction in mathematical form. Check that the constraints represent the intended parameter space.
Use appropriate constrained optimization, and derive first-order conditions where helpful. Check excluded cases before dividing or cancelling terms.
Check constraint residuals, active constraints, multiplier signs, and relevant curvature. A small numerical gradient alone does not establish optimality.
Use multiple feasible starting values, inspect objective profiles or other appropriate diagnostics, and compare objective values at the candidate solutions and relevant boundaries.
In an estimation application, report the restrictions, the objective value, and whether the solution lies on a boundary. If multiple starts find distinct solutions, report the competing estimates and criteria rather than silently selecting one. A lower criterion is preferable for a minimization problem, but numerical differences should be interpreted in light of convergence accuracy and the scale of the objective.
Common Pitfall
A common error is to treat a converged optimizer output as proof of a global optimum. Convergence means the routine met its stopping rule; it does not rule out a better feasible solution elsewhere. Another error is to apply unconstrained first-order conditions at a boundary, where the gradient need not be zero. The correction is to define the feasible set first, use constrained conditions appropriate to active restrictions, and compare distinct feasible candidates. In algebraic derivations, also check any multiplier or parameter value that would make a denominator zero before dividing by it.
Check Your Understanding
Try these questions without looking back.
- For a minimization problem with \(g(\theta)\leq0\), what sign must the KKT multiplier have, and what does complementary slackness imply when the constraint is inactive?
- Why must a boundary estimate not be rejected merely because the unconstrained gradient is nonzero?
- In the nonlinear equality example, why was it necessary to check \(\lambda=-1\) before dividing by \(1+\lambda\)?
- If several starting values converge to different feasible estimates, what information should be compared before choosing a reported solution?
- What does an objective profile show, and why is it not by itself a certificate of global optimality?