Primal-dual interior methods for nonlinear programs
Follow perturbed complementarity with positive slacks and multipliers while keeping nonconvex guarantees distinct from convex ones.
On this page
The question for today
What you’ll understand
- Write a primal-dual residual system for smooth nonlinear inequalities.
- Compute a perturbed-complementarity Newton step and a positivity safeguard.
- Explain why nonlinear interior methods need globalization and cannot inherit all convex complexity claims.
An inequality-constrained solution may lie on a boundary whose active constraints are unknown in advance. Interior methods approach that boundary through positive slack and multiplier variables instead of committing immediately to an active set. The central algebra is a perturbed KKT system. In nonlinear programming, however, the stationarity equation can have several branches and its curvature can be indefinite. The familiar language of a central path therefore does not guarantee a unique global path, a globally optimal endpoint, or the polynomial complexity associated with particular convex formulations.
Perturb complementarity, not the sign convention
Describe inequalities by g(x)≤0 and introduce positive slacks s so g(x)+s=0. Their multipliers z are also positive during interior iterations. With equality multipliers λ unrestricted, stationarity is the gradient of f plus the equality and inequality Jacobian-transpose actions. Exact complementarity would require each sᵢzᵢ to vanish. Replace that product by a positive barrier parameter τ to obtain a smooth system inside the positive orthant, then reduce τ as the solve advances.
A feasible barrier formulation minimizes f minus τ times the sum of log slacks, with the corresponding equality equations. Its stationary equations give zᵢ=τ/sᵢ, matching perturbed complementarity. Infeasible-start primal-dual methods instead permit nonzero equality and slack-equation residuals while maintaining positivity of s and z. Thus interior does not necessarily mean every nonlinear inequality at the current x is already satisfied; it can refer to the algorithmic slack and multiplier variables.
Newton motion needs a positivity budget
Linearizing the residuals produces a coupled Newton system containing the Lagrangian Hessian, constraint Jacobians, and slack-multiplier diagonal blocks. A full step can make a positive slack or multiplier negative. A fraction-to-the-boundary rule limits the step before that happens, commonly retaining a chosen fraction of the distance to zero. This positivity bound is only one acceptance condition: a filter or merit test must also judge nonlinear residual and objective progress.
In nonconvex problems, eliminating variables can produce indefinite or nearly singular systems. Inertia checks and regularization help ensure that the chosen linear system has the intended curvature behavior. If the algorithm cannot make useful progress toward feasibility, a restoration phase may solve a different subproblem. These features are not cosmetic implementation details: their assumptions and safeguards are part of a convergence theory. Merely taking Newton steps on the perturbed equations can converge to an unsuitable stationary branch or fail altogether.
Interpret the endpoint through original residuals
A small barrier parameter alone is not a stopping certificate. Monitor original stationarity, equality feasibility, inequality feasibility, multiplier nonnegativity, and complementarity on scales appropriate to the application. A point with small products but a large primal residual can be far from a valid constrained solution. Likewise, positive slacks at a nonzero τ describe an approximation to an active boundary, not a failure to understand where the exact optimum is located.
Under strong regularity conditions near a KKT solution, including suitable constraint qualifications, second-order sufficiency, and often strict complementarity in simple path theorems, a local smooth branch and rapid Newton behavior can be established. Degenerate cases need separate analysis. General nonconvex programs do not inherit the global optimality certificates or self-concordant barrier complexity of convex conic problems. Report which residual was bounded and which hypotheses supported the claim, rather than calling every small-τ answer globally optimal.
Work it through
One Newton step toward a smaller complementarity target
Minimize f(x)=x²/2 subject to −x≤0. Write s=x and use positive multiplier z. At (x,z)=(1,1), take target τ=1/4 and compute one primal-dual Newton step.
Stationarity is x−z=0 and complementarity is xz=τ, with x>0 and z>0. At the current point the stationarity residual is zero and the complementarity residual is 3/4. Its Newton linearization gives Δx−Δz=0 and Δx+Δz=−3/4.
Solving yields Δx=Δz=−3/8. A full step gives x=z=5/8, which remains positive. It is permitted by a fraction-to-the-boundary rule with θ=0.9 because the unscaled boundary distance is 8/3, so the capped positivity step remains one.
After the step, stationarity is still exact and the product is 25/64. The target is 16/64, leaving complementarity residual 9/64. Newton's linear model removed the linearized residual, not the nonlinear product error; the exact positive target solution is x=z=1/2.
One safeguarded Newton step substantially reduces the residual while preserving positivity, but it does not solve the perturbed equations exactly.
The living notebook
Explore the model
Interactive lab · root-finding
Locate the positive barrier stationary point
Pause, Reset, then set target c=0.25 and initial upper bound U=2. Predict the positive root 0.5 and inspect the bracket using Step. For this worked family the exact barrier equation is x²=τ, so c represents τ. The instrument uses bisection, not a primal-dual Newton method, and does not simulate multiplier updates or a general nonlinear program.
- Midpoint after 0 refinements
- 1.5
- Bracket error bound
- 1.5
- Computed residual · x² − c
- 0.25
Bisection of x² − c on [0,U], capped at 50 iterations for floating-point resolution. The error bound is the maximum distance from the displayed midpoint to either bracket endpoint (half the width in exact arithmetic). Compensated square evaluation preserves the bracket when ordinary multiplication rounds a residual to zero. A truly exact endpoint or midpoint collapses the bracket. This is one monotone quadratic, not a general root solver. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA simple barrier stationary equation can have a certified positive root even though a general nonlinear interior method needs much more structure.
Pause & reason
Check your understanding
Your turn
Try it yourself
Minimize f(x)=(x−2)²/2 subject to x≤1. At target τ=3/4, solve the positive perturbed KKT system exactly using slack s=1−x.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Stationarity gives z=2−x=1+s. Substitute into sz=τ and keep only the positive slack root.
Compare with the solution
The slack equation yields x=1−s. Stationarity x−2+z=0 gives z=1+s. Complementarity becomes , whose roots are 1/2 and −3/2. Positivity selects s=1/2, so x=1/2 and z=3/2. Their product is 3/4. The original constrained optimum is x=1 with multiplier one; the positive-target solution is an interior approximation, not the exact optimum.
Keep the idea
Take it with you
- Positive slacks and multipliers solve perturbed complementarity before approaching its zero limit.
- Fraction-to-the-boundary safeguards positivity but does not replace nonlinear acceptance tests.
- Nonconvex stationary branches require guarantees separate from convex central-path theory.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.