A constraint that holds with equality at an optimum is active. Its multiplier need not be positive. This distinction matters when a robotics optimization prototype uses multiplier values to explain which limits influence a solution. The Karush-Kuhn-Tucker conditions connect feasibility, stationarity, and complementary slackness, but they do not make every active boundary economically or mechanically influential. A small weighted quadratic exposes the distinction and provides a complete certificate that can be checked by hand.
Specify the objective and feasible region
Minimize f(x,y) = [(x - 2)^2 + 2(y - 1)^2]/2, subject to x + y <= 1, x >= 0, and y >= 0. The coordinates are dimensionless illustrative decision variables. They are not joint commands or measured actuator limits. The Hessian is diag(1,2), which is positive definite, so the objective is strictly convex. Over a convex feasible set, an attained minimizer is therefore unique.
The unconstrained minimizer is (2,1). It violates the sum constraint. Simply clipping either coordinate or projecting with an unweighted Euclidean distance does not generally minimize this weighted objective. The coefficient on the y error changes the tradeoff along the boundary.
Write all inequality signs consistently
Use g1 = x + y - 1, g2 = -x, and g3 = -y, all constrained to be nonpositive. With nonnegative multipliers lambda, mu, and nu, the Lagrangian is
L = f + lambda(x + y - 1) - mu x - nu y.
Stationarity gives x - 2 + lambda - mu = 0 and 2(y - 1) + lambda - nu = 0. Primal feasibility checks the three original limits. Dual feasibility requires lambda, mu, nu >= 0. Complementary slackness requires lambda(x + y - 1) = 0, mu x = 0, and nu y = 0.
These conditions form a certificate for a differentiable convex objective with affine constraints. Constraint qualifications matter when claiming that certificates necessarily exist for general convex problems. Here a point such as (0.2,0.2) strictly satisfies all inequalities, and the explicit solution will supply its own certificate.
Solve an active-set candidate
Suppose the sum constraint is active while both coordinates remain positive. Complementary slackness then gives mu = nu = 0. Stationarity yields x = 2 - lambda and y = 1 - lambda/2. Combining these with x + y = 1 gives lambda = 4/3 and
x* = 2/3, y* = 1/3.
Both coordinates are positive, so the assumed inactive lower bounds are consistent. The sum equals one, all multipliers have the required signs, and both stationarity residuals vanish. The objective value is 4/3.
For comparison, the unweighted Euclidean projection of (2,1) onto this feasible triangle is (1,0). It is feasible, but its weighted objective is 1.5. Moving to the certified point reduces that value to approximately 1.33333. Feasibility alone cannot establish optimality, and a geometric projection must use the objective's metric to solve the same problem.
Prove global optimality directly
Let z be any other feasible point and d = z - z*. Exact quadratic expansion gives f(z) - f(z*) = grad f(z*) dot d + d^T H d/2. At the candidate, grad f = -(4/3)[1,1]^T. Thus
f(z) - f(z*) = -(4/3)(z_x + z_y - 1) + [d_x^2 + 2d_y^2]/2.
The first term is nonnegative because z_x + z_y <= 1. The second is nonnegative and vanishes only when d is zero. The candidate is consequently the unique global minimizer. This argument checks the certificate without trusting an optimizer's termination label or relying on a plot's visual resolution.
Move the bound and track the multiplier
Replace the sum limit by x + y <= b. For 0 < b < 3, the solution stays on that boundary with positive coordinates. The same stationarity equations give x* = 2b/3, y* = b/3, and lambda = 2(3 - b)/3. Its optimum value is f*(b) = (3 - b)^2/3.
Within this interval, differentiating gives df*/db = -lambda. Relaxing the upper bound decreases the minimum objective at a rate set by the multiplier. This is a local sensitivity statement for this specified objective and parameterization. Rescaling the constraint rescales its multiplier, so multiplier magnitudes cannot be compared without preserving the constraint's units and normalization.
At b = 3, the unconstrained minimizer (2,1) lies exactly on the boundary. The constraint is active, yet lambda is zero. For b > 3, that same minimizer lies strictly inside the sum limit and lambda remains zero. Complementary slackness therefore supports positive multiplier implies active constraint, and slack constraint implies zero multiplier. It does not support active constraint implies positive multiplier.
Unique coordinates do not ensure unique multipliers
Duplicate the original sum inequality, writing the identical limit twice. At b = 1, stationarity requires only that the two corresponding nonnegative multipliers sum to 4/3. Any split of that total works. The primal minimizer remains (2/3,1/3), but its displayed multiplier pair is not unique.
An implementation that reports a different split has not necessarily found a different optimum. Duplicate or dependent constraint gradients can make attribution ambiguous even with a strictly convex objective. Report primal residuals, stationarity, sign feasibility, and complementary products together. Label an active constraint by its actual slack, and interpret its multiplier only after checking the constraint formulation and any degeneracy. Those checks make the mathematical explanation as inspectable as the selected point.
Sources checked October 24, 2026:
https://ocw.mit.edu/courses/15-097-prediction-machine-learning-and-statistics-spring-2012/3c580801bf99c95efc0559294eb9d2e2_MIT15_097S12_lec11.pdf
https://zhiyuanli.ttic.edu/convex-optimization-site/Lecture-5___-Lagrange-Multipliers-and-KKT/
Concept illustration: A small desktop robot beside a laptop showing a generic workflow provides robotics context for this analytical model. The image does not depict the article's numerical example, a verified experiment, a product specification, or deployment evidence.