Every constrained optimum carries a four-part certificate. For min f(x) subject to g(x) ≤ 0, a point is optimal only if it satisfies stationarity, primal feasibility, dual feasibility, and complementary slackness at once. This instrument builds one convex QP with a known minimizer, one active and one inactive constraint, and checks all four to 1e-9 — rendered, not quoted.
source Karush, Minima of Functions of Several Variables with Inequalities as Side Constraints, MSc thesis, Univ. Chicago (1939); Kuhn & Tucker, Nonlinear Programming, Proc. 2nd Berkeley Symp. (1951), 481–492. ref ↗ no stable primary link — AMBER secondary cite
A strictly-convex quadratic in two variables with two linear inequality constraints. Closed-form everything.
Unconstrained minimum sits at (2,2), which violates g₁. So g₁ binds (active); g₂ has room to spare (inactive). The constrained optimum is x* = (1,1), f* = 1, found in closed form by symmetry on the line x+y=2.
the-lagrange-multiplier, extended to inequalities. Lagrange handles equalities with free-sign multipliers; KKT adds two things inequalities force:
• dual feasibility — multipliers must be ≥ 0 (a constraint can only push one way);
• complementary slackness — λᵢgᵢ = 0 decides which constraints bite: a slack constraint gets λ=0, a tight one may get λ>0.
This is the exact optimality certificate a convex solver returns.
Live re-check. The verifier is asked whether the off-optimum vertex (5,−3) — a KKT-stationary point with a negative multiplier — is wrongly certified as optimal.
The candidate optimum and its multipliers, to be certified:
Four conditions, each computed live at the point above:
KKT is sufficient here: the problem is convex, so this KKT point equals the global optimum from a brute-force sweep.
Planted void: drop the dual-feasibility check (allow λ < 0). The non-optimal vertex (5,−3), with multipliers (5,−8), then passes stationarity + primal feasibility + complementary slackness — and is mis-certified as the optimum. The Witness (7) catches it.