M5 · KKT, reverse KKT and projection: a refresher
Lectures 16–20 (13 Oct – 31 Oct) · MT3 material · about 2 hours · Goal: write correct KKT conditions in his sign convention, solve "choose $a$ so that $x^0$ is optimal" and "which inequalities point the wrong way", project onto simple sets, and run gradient projection and the active set method.
This is a refresher: it assumes you have met this material for the third midterm. It condenses that material into the question types that recur in finals, plus the 2026 MT3 paper. Duality (Lagrange dual, LP dual) is in M6.
Notation: constraints written as $g_i(x)\ge0$ (his usual form) and $h_j(x)=0$. Feasible set $\Omega$ or $C$. Active set $\mathcal A(x)=\{i:g_i(x)=0\}$. Multipliers $\lambda_i$ (inequalities), $\mu_j$ (equalities). $P_C(z)$ = projection of $z$ onto $C$ (nearest point of $C$). $u$ = a direction. A feasible direction at $x$: a small step $x+tu$ stays in $\Omega$. $f\in C^1_L$: $\nabla f$ is $L$-Lipschitz (M1).
Symbol warning: past questions reuse letters ($u$ is also an unknown constraint vector in 2025 Q2; $L$ is the Lagrangian in C but the Lipschitz constant in F; $h$, $A$, $a$, $\mu$, $v$ change meaning between boxes). Read each box's own definitions.
0. Why this module
The constrained half is one half to two thirds of each recent final. Among its question types, three recur with new numbers: reverse KKT (2015 Q4, 2016 Q6, 2024 Q3, 2025 Q2), wrong-way inequalities (2017 Q4, 2024 Q4, MT3 2026 Q4) and projection / gradient projection (2015 Q6, 2016 Q9, 2020 P2 Q1, MT3 2026 Q2). Plus 5–8 T/F items per final.
At a constrained optimum, $\nabla f$ is a nonnegative combination of the active constraints' gradients (for $g_i\ge0$): no feasible direction goes downhill. Reverse KKT and wrong-way questions just solve that equation backwards.
A. Feasible directions and the first-order condition (MT3 unit 01)
- At a local minimum $x^*$ there is no feasible descent direction: every feasible direction $u$ has $\nabla f(x^*)^\top u\ge0$.
- On a convex set $C$: $x^*$ local min ⇒ $\nabla f(x^*)^\top(x-x^*)\ge0$ for all $x\in C$. If also $f$ is convex, this condition is sufficient for a global min.
- If $\nabla f(x^*)\ne0$ at a constrained optimum, some constraint must be active (otherwise $-\nabla f$ would be a feasible descent direction) (2024 final T/F (g): True). If the optimum is interior, every direction is feasible, there are no active constraints and $\nabla f(x^*)=0$ (2025 final (k): True).
- "No feasible descent direction ⇒ global min" needs $f$ convex: MT3 2026 T/F (a): False (a non-convex $f$ on a convex set can have a non-global local min).
- At any KKT point there is no feasible descent direction (in the linear-direction sense): for a feasible $u$, each active constraint has $\nabla g_i^\top u\ge0$, so $\nabla f^\top u=\sum\lambda_i\nabla g_i^\top u\ge0$. Hence 2025 final (m) ("KKT point and a feasible $u$ with $\nabla f^\top u<0$"): False; and 2024 final (h) ("feasible descent directions at a KKT point non-empty", printed without a key): False.
$\min(x-2)^2$ on $[0,1]$: $x^*=1$, $f'(1)=-2\ne0$, and the bound $x\le1$ is active. Check: $f'(1)(x-1)=-2(x-1)\ge0$ for every $x\in[0,1]$ ✓.
B. Projection onto a convex set (MT3 units 01, 04)
- $P_C(z)=\arg\min_{x\in C}\frac12\|x-z\|^2$. For $C$ closed, convex and nonempty it exists and is unique (2024 final (f): True). Unbounded sets are fine (2025 final (p), "projection onto $\{x^\top e\le1\}$ doesn't exist because unbounded": False).
- Projection inequality (characterisation): $p=P_C(z)$ ⇔ $p\in C$ and $(z-p)^\top(x-p)\le0$ for all $x\in C$. (It's the first-order condition of A for $f=\frac12\|x-z\|^2$.)
- Computing it is a convex problem but not always a quadratic program (a ball constraint is quadratic); for simple sets there is a formula (MT3 2026 T/F (b), "requires solving a QP": False).
| Set $C$ | $P_C(z)$ | Example |
|---|---|---|
| box $l\le x\le u$ | clip each coordinate: $\min(\max(z_i,l_i),u_i)$ | $[0,1]^2$: $(1.5,-0.3)\mapsto(1,0)$ |
| ball $\|x-a\|\le r$ | $a+\dfrac{r}{\max(r,\|z-a\|)}(z-a)$: if outside, pull $z$ towards the centre along the ray until it is on the sphere (MT3 2026 Q2) | unit ball: $(3,4)\mapsto(0.6,0.8)$ |
| half-space $a^\top x\le b$ | $z-\dfrac{\max(0,\,a^\top z-b)}{\|a\|^2}a$ (if outside, move straight back along the normal $a$ to the boundary) | $x_1+x_2\le1$: $(2,1)\mapsto(1,0)$ |
| affine $\{Ax=b\}$ (full row rank) | $z-A^\top(AA^\top)^{-1}(Az-b)$; with $z=0$: min-norm solution $A^\top(AA^\top)^{-1}b$ | $2x_1+x_2+x_3=36$, $-x_1-x_2+3x_3=0$: min-norm $(12,6,6)$ (2021 MT3) |
$A^\top=[a_1,\dots,a_m]$ (so the $a_i$ are the rows of $A$), $\mathrm{rank}A=m<d$, $S$ = span of the columns of $A^\top$. (a) Every $z$ splits uniquely as $z=w+v$ with $w\in S$, $Av=0$. (b) For $\min\frac12\|x\|^2$ s.t. $Ax=b$: every feasible point is $A^\top\hat\beta+v$ with $Av=0$; find $x^*$.
- (a) $w=P_S(z)$: minimise $\frac12\|z-A^\top\beta\|^2$ over $\beta$; its gradient in $\beta$ is $-A(z-A^\top\beta)$, so optimality is $A(z-A^\top\beta^*)=0$. So $w=A^\top\beta^*$ and $v=z-w$ satisfies $Av=0$. Uniqueness: projection onto a subspace is unique.
- (b-i) Write feasible $x=A^\top\beta+v$. Then $Ax=AA^\top\beta=b$, so $\beta=\hat\beta=(AA^\top)^{-1}b$, the same for every feasible $x$.
- (b-ii) $\|x\|^2=\|A^\top\hat\beta\|^2+\|v\|^2$ (the cross term $2\hat\beta^\top Av=0$). Smallest when $v=0$: $x^*=A^\top\hat\beta=A^\top(AA^\top)^{-1}b$.
C. KKT conditions (MT3 units 02, 03)
- Stationarity: $\nabla f(x^*)=\sum_i\lambda_i\nabla g_i(x^*)+\sum_j\mu_j\nabla h_j(x^*)$.
- Sign: $\lambda_i\ge0$ (for $\ge$ constraints); $\mu_j$ free.
- Complementary slackness: $\lambda_ig_i(x^*)=0$ (inactive ⇒ $\lambda_i=0$).
- Primal feasibility: $g_i(x^*)\ge0$, $h_j(x^*)=0$.
Lagrangian: $L(x,\lambda,\mu)=f(x)-\sum\lambda_ig_i(x)-\sum\mu_jh_j(x)$, and stationarity is $\nabla_xL=0$.
Converting: a "$\le$" constraint $c(x)\le d$ becomes $g=d-c(x)\ge0$, so $\nabla g=-\nabla c$. E.g. MT3 2026 Q5, $\min c^\top x$ s.t. $a^\top x\le3$: $c=-\lambda a$, $\lambda\ge0$, $\lambda(a^\top x-3)=0$.
- When KKT is necessary: at a local min that is a regular point (active constraint gradients linearly independent, or all active constraints linear).
- When KKT is sufficient: convex problem ($f$ convex, $g_i$ concave so $\{g_i\ge0\}$ is convex, $h_j$ affine). Then a KKT point is a global minimum.
$\min x_1^2+x_2^2$ s.t. $g_1=x_1+x_2-2\ge0$, $g_2=x_1\ge0$.
- Guess: only $g_1$ active. Stationarity $(2x_1,2x_2)=\lambda_1(1,1)$ ⇒ $x_1=x_2$; active: $x_1+x_2=2$ ⇒ $x=(1,1)$, $\lambda_1=2\ge0$.
- Check the rest: $g_2(1,1)=1>0$ inactive, $\lambda_2=0$ ✓. Convex problem ⇒ global min $(1,1)$, $f^*=2$.
$\max-\sum x_i\log x_i$ s.t. $\sum x_i=1$, $x_i\ge0$.
- As a minimisation: $\min\sum x_i\log x_i$ (convex: second derivative $1/x_i>0$). KKT: $\log x_i+1=\lambda_i+\mu$, $\lambda_i\ge0$, $\lambda_ix_i=0$, $\sum x_i=1$.
- No $x_i=0$ can be optimal: near $0$ the derivative $\log x_i+1\to-\infty$, so raising that $x_i$ (and lowering a positive one) decreases the objective. So all $x_i>0$: $\lambda_i=0$, so $\log x_i=\mu-1$ is the same for every $i$: $x_i=\frac1d$. Convex problem ⇒ global. Maximum entropy $=\log d$.
- (c) The minimum of the entropy: every term $-x_i\log x_i\ge0$ on $[0,1]$, so entropy $\ge0$, with value $0$ at a vertex ($x=e_i$, using $0\log0=0$).
D. Reverse KKT: "choose $a$ so that $x^0$ is optimal" (MT3 unit 03)
- Check feasibility of $x^0$ and find which constraints are active there (only those can carry multipliers).
- Write stationarity with the active gradients and $\lambda\ge0$: $\nabla f(x^0)=\sum_{\text{active}}\lambda_i\nabla g_i(x^0)$.
- Solve for the unknown parameter and the multipliers. Impose: the constraint with the parameter must be active (equality) and $\lambda\ge0$.
- For "global?": check convexity (then KKT ⇒ global), or use a relaxation argument.
$\min e^{2x_2}+\frac12x_1^2-x_2$ s.t. $x_1^2+x_2^2\le10$, $u^\top x\ge2$. For which $u$ is $x^0=(1,1)$ the global minimum?
- Convex? Hessian $\mathrm{diag}(1,4e^{2x_2})\succ0$: $f$ convex; both constraint sets are convex ⇒ KKT is sufficient for global.
- Active: $1+1=2<10$: the disc is inactive. Since $\nabla f(x^0)\ne0$, some constraint must be active, and the only candidate is the half-plane: $u^\top x^0=2$, i.e. $u_1+u_2=2$.
- Stationarity: $\nabla f(x^0)=(1,\ 2e^2-1)=\lambda u$, $\lambda>0$. Adding the components: $\lambda(u_1+u_2)=2e^2$ ⇒ $\lambda=e^2$.
- Answer: $u=\frac{1}{e^2}(1,\ 2e^2-1)=(e^{-2},\ 2-e^{-2})$.
$f$ convex on $\mathbb R^3$; constraints $\frac13(x_1x_2+x_3x_2+x_1x_2)\le1.5$, $x_1+ax_2\ge b$, $x_2+x_3\le10$, $x_3\ge0.5$. At $\hat x=(1,1,1)$: $f=3$, $\nabla f=(1,10,0)$. (a) Choose $a,b$ so $\hat x$ is a KKT point. (b) Is the global optimal value strictly less than 3?
- At $\hat x$: first constraint $=1<1.5$, third $2<10$, fourth $1>0.5$: all inactive. Only $x_1+ax_2\ge b$ can be active.
- $(1,10,0)=\lambda(1,a,0)$ ⇒ $\lambda=1$, $a=10$. Active: $b=1+10\cdot1=11$.
- (b) False. Relaxation argument: drop all constraints except $x_1+10x_2\ge11$. That relaxed problem is convex (convex $f$, one linear constraint) and $\hat x$ is a KKT point of it, so $\hat x$ is its global min with value 3. The original problem has more constraints, so its optimal value is $\ge3$; and $\hat x$ is feasible for it, so the optimum is exactly 3.
$x^{(0)}=(0,1,0)$, $\nabla f=(1,-1,2)$, constraints $x_3^2+2x_2^2+x_1x_2\ge1$ (value $2$: inactive) and $u^\top x+4=0$. Stationarity $\nabla f=\mu u$, so $u=\frac1\mu(1,-1,2)$; feasibility $-\frac1\mu+4=0$ ⇒ $\mu=\frac14$, $u=4(1,-1,2)$. The printed key says $\frac14(1,-1,2)$, which fails $u^\top x^{(0)}+4=0$.
E. Inequalities in the wrong direction (MT3 unit 03)
- A KKT point is feasible. If $g_i(x^0)<0$ while the problem says $g_i\ge0$, that inequality must be reversed (it is then inactive: $\lambda_i=0$).
- Solve $\nabla f(x^0)=\sum_{\text{active}}\lambda_i\nabla g_i(x^0)$ for the multipliers. Check every component (the system is often over-determined).
- A negative $\lambda_i$ means that active inequality points the wrong way: reverse it, and its multiplier becomes $-\lambda_i\ge0$.
$\min f$ s.t. $a_i^\top x+c_i\ge0$ ($i=1,2$), $g(x)\ge0$, maybe in the wrong direction. $x^{(0)}$ is a local min; $\nabla f=(6,-10,4)$, $a_1=(1,-1,0)$, $a_2=(0,1,-1)$; both linear constraints active; $g(x^{(0)})=-5$.
- $g(x^{(0)})=-5<0$, but $x^{(0)}$ is feasible: the constraint must be $g(x)\le0$; inactive.
- Linear active constraints ⇒ regular ⇒ KKT holds: $(6,-10,4)=\lambda_1(1,-1,0)+\lambda_2(0,1,-1)$. Component 1: $\lambda_1=6$. Component 3: $\lambda_2=-4$. Component 2: $-6+(-4)=-10$ ✓ consistent.
- $\lambda_1=6\ge0$: first inequality correct. $\lambda_2=-4<0$: reverse it to $a_2^\top x+c_2\le0$ (multiplier $4$).
(The printed solution says "since $x^{(0)}$ is feasible, $g\ge0$": the text there is garbled. The logic above is the right one.) 2017 Q4 is the same with $\nabla f=(3,-7,4)$: $\lambda=(3,-4)$, same conclusion.
$\nabla f=(4,-12,4)$, $\nabla g_1=(1,-2,0)$, $\nabla g_2=(0,1,-2)$. Component 1: $\lambda_1=4$; component 3: $\lambda_2=-2$; component 2: $-8-2=-10\ne-12$. No multipliers exist. The key's answer ($g_2$, $g_3$ reversed) skips that check. If you meet this, show the method and state the inconsistency.
F. Gradient projection (MT3 unit 07)
$x^{(k+1)}=P_C\big(x^{(k)}-\alpha\nabla f(x^{(k)})\big)$, with $x^{(0)}\in C$ and constant $\alpha\in(0,\frac2L)$ (often $\alpha\le\frac1L$) when $f\in C^1_L$. Stop when $\|x^{(k+1)}-x^{(k)}\|\le\epsilon$.
- Each step decreases $f$: $f(x^{(k+1)})\le f(x^{(k)})-\big(\frac1\alpha-\frac L2\big)\|x^{(k+1)}-x^{(k)}\|^2$.
- Fixed points $x=P_C(x-\alpha\nabla f(x))$ are exactly the points with $\nabla f(x)^\top(y-x)\ge0$ for all $y\in C$ (the first-order condition of A). Convex problem ⇒ the limit is a global min (MT3 2026 T/F (e): True). Non-convex ⇒ only a stationary point.
- It converges in the limit, not in finitely many steps (2024 final (i): False), and the limit need not have $\nabla f=0$ (it can sit on the boundary) (2025 final (q): False).
- 2020 final P2 Q1(a) (no printed key): $d=P_C(x+\alpha u)-x$ is a feasible direction for any $u$ (convexity). It is a descent direction exactly when $\nabla f(x)^\top d<0$; note $\nabla f^\top u<0$ alone is not enough, because the projection can bend $d$. The safe choice $u=-\nabla f(x)$ always works when $x$ is not a fixed point, since the projection inequality gives $\nabla f(x)^\top d\le-\frac1\alpha\|d\|^2$ with $d=P_C(x-\alpha\nabla f)-x$. (b) step bound: $\alpha<\frac2L$.
$\nabla f=(x_1-2,\ 2x_2-2)$, $L=2$. The unconstrained min $(2,1)$ is outside the box.
- $x^{(0)}=(0,0)$: $x-\alpha\nabla f=(0.5,0.5)$, inside: $x^{(1)}=(0.5,0.5)$.
- $\nabla f=(-1.5,-1)$: $(0.875,0.75)$, inside: $x^{(2)}$.
- $\nabla f=(-1.125,-0.5)$: $(1.156,0.875)\mapsto$ clip $(1,0.875)=x^{(3)}$. Then it converges to $(1,1)$.
- Check $(1,1)$: $\nabla f=(-1,0)$; $x-\alpha\nabla f=(1.25,1)\mapsto(1,1)$: a fixed point. Convex ⇒ global min.
G. The active set method, in short (MT3 unit 08)
For $\min\frac12x^\top Qx+h^\top x$ ($Q\succ0$) s.t. $a_i^\top x\ge b_i$: keep a working set $W$ of constraints treated as equalities. Below $g=\nabla f(x)$ at the current point, and multipliers are called $\mu$ (his letters in these questions).
- Solve the equality-constrained subproblem on $W$ for a step $v$.
- $v\ne0$: move along $v$ but stop at the first blocking constraint: for each $i\notin W$ with $a_i^\top v<0$, the step to reach it is $t_i=\frac{a_i^\top x-b_i}{-a_i^\top v}$; take $t=\min(1,\min_it_i)$. If $t<1$, add the blocking constraint to $W$; if $t=1$ (nothing blocks), the next subproblem gives $v=0$.
- $v=0$: read the multipliers $\mu$ from $\nabla f=\sum_{i\in W}\mu_ia_i$. All $\mu_i\ge0$ ⇒ optimal. Some $\mu_l<0$ ⇒ drop $l$ and continue (the new direction is a feasible descent direction: $v^\top Qv=-\mu_la_l^\top v$).
$\min\frac12\|x\|^2$ s.t. $x_1+2x_2\ge3$, $2x_1+x_2\ge3$, from $(6,0)$.
- $W=\{\}$: $v=-(6,0)$. Ratios $\frac{6-3}{6}=0.5$ (wall 1), $\frac{12-3}{12}=0.75$: stop at $0.5$, $x=(3,0)$, $W=\{1\}$.
- Nearest point to 0 on $x_1+2x_2=3$ is $(0.6,1.2)$: $v=(-2.4,1.2)$; wall 2: $a_2^\top v=-3.6$, ratio $\frac{6-3}{3.6}=\frac56$: $x=(1,1)$, $W=\{1,2\}$.
- $v=0$; $(1,1)=\mu_1(1,2)+\mu_2(2,1)$ ⇒ $\mu=(\frac13,\frac13)\ge0$: optimal, $x^*=(1,1)$.
Partial-information versions (2021 P2 Q1, MT3 2025 Q3): with $\mu^*=(1,2,-3)$ on $W=\{1,2,3\}$ and $v=0$: not optimal (negative multiplier); $\nabla f=a_1+2a_2-3a_3$; drop 3; if $\hat u^\top Q\hat u=6$ then $6=-\mu_3a_3^\top\hat u=3a_3^\top\hat u$, so $a_3^\top\hat u=2$.
- MT3 2026 T/F (d), "descent directions are generated only when constraints are removed": False (steps with $v\ne0$ on the current $W$ are descent too).
- 2025 final (r) (500 variables, working set grew to 8 while $f$ strictly decreased): his key says False. This page can't reconstruct a solid reason: a working set can grow by one per blocked step. Low priority; answer F if it reappears verbatim.
H. Separation, Farkas and convex hulls (MT3 units 01, 02, 09)
- Separating hyperplane from a projection: $z\notin C$ (closed convex) ⇒ with $p=P_C(z)$, $h=z-p$: $h^\top x\le h^\top p<h^\top z$ for all $x\in C$. Finite intersections of half-spaces are closed convex, so this applies (MT3 2026 T/F (c): True).
- 2021 final P2 Q3 (ball $C$ with centre $\mu$, radius $\frac12\|\mu\|$; separate $0$): take $h=\mu$. The smallest $\mu^\top z$ over $C$ is $\|\mu\|^2-\frac12\|\mu\|\cdot\|\mu\|=\frac12\|\mu\|^2$. Any $b\in[0,\frac12\|\mu\|^2)$ works, e.g. $b=\frac14\|\mu\|^2$: $h^\top0=0\le b$ and $h^\top z>b$ on $C$. (The printed radius looks like $\frac12\|\mu\|^2$; with radius $\frac12\|\mu\|$ the question makes sense.)
- Convex-hull membership (2021 final P2 Q2): $z\in\mathrm{conv}\{a_i\}$ ⇔ $\min_\theta\frac12\|z-\sum\theta_ia_i\|^2$ s.t. $\theta\ge0$, $\sum\theta_i=1$ has value 0. Convex QP; KKT: $A^\top(A\theta-z)=\lambda+\nu e$, $\lambda\ge0$, $\lambda_i\theta_i=0$, $e^\top\theta=1$ (with $A=[a_1,\dots,a_n]$).
- Farkas: exactly one of (i) $Ax=b$, $x\ge0$ solvable; (ii) $A^\top y\ge0$, $b^\top y<0$ solvable. Easy direction: if both held, $0\le x^\top A^\top y=b^\top y<0$, a contradiction. 2017 Q3 asks the same idea in another form: if $c=A^\top\lambda$ with $\lambda\ge0$, then $Ax\ge0$ forces $c^\top x=\lambda^\top Ax\ge0$, so $\{Ax\ge0,\ c^\top x<0\}$ is empty.
I. Exam recipe
- Rewrite constraints in his form $g_i\ge0$ / $h_j=0$; note the convention for multipliers.
- Is the problem convex? (Then KKT ⇔ global optimum.) Say so explicitly: it earns marks.
- At the given point: feasible? which constraints active?
- Write stationarity with only the active gradients; solve; check signs and every component.
- Answer the question asked (parameter, direction of inequality, global or not), and name the theorem used.
How he asks it
- Reverse KKT in four finals (2015 Q4, 2016 Q6 → 2025 Q2, 2024 Q3). The 2025 question was a renumbered 2016 one, so 2015 Q4 ("choose $c$ so $x^0=[0,1,1]$ satisfies FONC") and 2017 Q4 are candidates.
- Wrong-way inequalities: 2017 Q4 → 2024 Q4 → MT3 2026 Q4: three times. Expect it.
- Projection / gradient projection: 2015 Q6, 2016 Q9, 2020 P2 Q1, MT3 2026 Q2 (2021 Part 2 had separation and convex-hull questions instead).
- T/F: 5 items in 2024 (f–j), 8 in 2025 (k–r), 5 in MT3 2026.
Practice
Let $z\notin C$, $C$ closed convex. There is only one $x^*\in C$ with $\|x^*-z\|\le\|x-z\|$ for all $x\in C$.
- (a) True
- (b) False
Show answer
True. The projection is unique.
At the optimal point $x^*$ of a constrained problem, $\nabla f(x^*)\ne0$. Then at least one constraint must be active.
- (a) True
- (b) False
Show answer
True. Otherwise $-\nabla f$ is a feasible descent direction.
The gradient projection algorithm finds the global minimum of a convex program in a finite number of iterations.
- (a) True
- (b) False
Show answer
False. It converges in the limit.
Minimising $f$ over a convex set $C$: the set of feasible directions at the global optimum $x^*$ is described by $B(x^*,\delta)$ for some $\delta>0$. Then at $x^*$ there are no active constraints.
- (a) True
- (b) False
Show answer
True. All directions feasible ⇒ interior point ⇒ nothing active.
For a convex programming problem, $\hat x$ satisfies the KKT conditions and there is a feasible direction $u$ with $\nabla f(\hat x)^\top u<0$.
- (a) True
- (b) False
Show answer
False. At a KKT point $\nabla f^\top u=\sum\lambda_i\nabla g_i^\top u\ge0$ for every feasible direction $u$ (active $g_i$ have $\nabla g_i^\top u\ge0$).
Projection onto $\{x:x^\top e\le1\}$ does not exist because the set is unbounded.
- (a) True
- (b) False
Show answer
False. Closed convex nonempty is enough; the half-space formula gives it.
Projected gradient descent always converges to a point whose gradient is 0.
- (a) True
- (b) False
Show answer
False. E.g. the box example: limit $(1,1)$ with $\nabla f=(-1,0)$.
In a constrained problem over a convex set, if a point has no feasible descent direction then it must be the global minimum.
- (a) True
- (b) False
Show answer
False. Needs $f$ convex.
Finding a projection onto a closed convex set requires solving a quadratic programming problem.
- (a) True
- (b) False
Show answer
False. Closed forms for boxes, balls, half-spaces, affine sets; and for a ball the problem isn't a QP anyway.
If $z\notin C$, a finite intersection of half-spaces, then there is a hyperplane separating $z$ and $C$.
- (a) True
- (b) False
Show answer
True. $C$ is closed and convex; use $h=z-P_C(z)$.
In the active set algorithm, a descent direction is generated only when we remove constraints from the working set.
- (a) True
- (b) False
Show answer
False. Any nonzero subproblem step $v$ is a descent direction.
For a convex programming problem, gradient projection with an appropriate step size converges to a global minimum.
- (a) True
- (b) False
Show answer
True. Its limits satisfy the first-order condition, sufficient for convex problems.
$f$ is $C^1$, not convex; $C=\{x:\|x-a\|\le r\}$. State gradient projection with a constant step.
Show answer
$x^{(0)}\in C$; $y^{(k)}=x^{(k)}-\alpha\nabla f(x^{(k)})$ with $\alpha\in(0,\frac1L]$; $x^{(k+1)}=a+\frac{r}{\max(r,\|y^{(k)}-a\|)}(y^{(k)}-a)$; stop when $\|x^{(k+1)}-x^{(k)}\|\le\epsilon$. Non-convex: the limit is only a stationary point ($\nabla f(x^*)^\top(x-x^*)\ge0$ on $C$).
The three wrong-way questions: redo each without looking at section E.
Show answer
MT3 2026: $g\le0$ and $a_2^\top x+c_2\le0$ ($\lambda=(6,-4)$). 2017: $g_3\le0$, $g_2\le0$ ($\lambda=(3,-4)$). 2024: $g_3\le0$; the active system is inconsistent.
A new one in that style: $\min f(x)$ on $\mathbb R^3$ s.t. $c^\top x\le2$ and $x_1\ge0$, with $x^0=(0,1,1)$ and $\nabla f(x^0)=(1,-1,-1)$. Find all $c$ so that $x^0$ satisfies KKT.
Show answer
- Form: $g_1=2-c^\top x\ge0$ ($\nabla g_1=-c$), $g_2=x_1\ge0$ (active at $x^0$, $\nabla g_2=e_1$).
- Stationarity: $(1,-1,-1)=-\lambda_1c+\lambda_2e_1$, $\lambda\ge0$. Components 2, 3: $\lambda_1c_2=1$, $\lambda_1c_3=1$, so $\lambda_1>0$: constraint 1 active, $c^\top x^0=c_2+c_3=2$ ⇒ $c_2=c_3=1$, $\lambda_1=1$.
- Component 1: $1=-c_1+\lambda_2$ ⇒ $\lambda_2=1+c_1\ge0$ ⇒ $c_1\ge-1$. Answer: $c=(c_1,1,1)$ with $c_1\ge-1$.
In his convention ($g_i\ge0$), if $x^0$ is a known local min (regular point, active gradients independent so the multipliers are unique), a negative multiplier on an active inequality means that inequality is written the wrong way round.
- (a) True
- (b) False
Show answer
True (that is the whole method of E).
The projection of $(3,4)$ onto the unit ball is $(3,4)/7$.
- (a) True
- (b) False
Show answer
False. Divide by the norm, $5$: $(0.6,0.8)$.
Self-test (no looking)
KKT conditions in his form, all four parts.
Show answer
$\nabla f=\sum\lambda_i\nabla g_i+\sum\mu_j\nabla h_j$; $\lambda\ge0$, $\mu$ free; $\lambda_ig_i=0$; $g\ge0$, $h=0$.
Projection formulas: box, ball, half-space, affine set.
Show answer
Clip; $a+\frac{r}{\max(r,\|z-a\|)}(z-a)$; $z-\frac{\max(0,a^\top z-b)}{\|a\|^2}a$; $z-A^\top(AA^\top)^{-1}(Az-b)$.
Reverse KKT recipe in four steps.
Show answer
Feasible + active set; stationarity with active gradients; solve for parameter and $\lambda\ge0$ (parameterised constraint active); convexity/relaxation for global.
When does the active set method stop, and what does it do otherwise?
Show answer
Subproblem step $v=0$ and all multipliers $\ge0$: optimal. $v=0$ with some $\mu_l<0$: drop $l$. $v\ne0$: move, stopping at the first blocking constraint, and add it.
Summary card
- First order: local min ⇒ no feasible descent direction; convex $C$: $\nabla f(x^*)^\top(x-x^*)\ge0$ on $C$, sufficient if $f$ convex. $\nabla f(x^*)\ne0$ ⇒ some constraint active.
- Projection: exists, unique (closed convex); $(z-p)^\top(x-p)\le0$. Box: clip. Ball: $a+\frac{r(z-a)}{\max(r,\|z-a\|)}$. Half-space: $z-\frac{(a^\top z-b)_+}{\|a\|^2}a$. Affine: $z-A^\top(AA^\top)^{-1}(Az-b)$; min-norm $A^\top(AA^\top)^{-1}b$.
- KKT ($g\ge0$, $h=0$): $\nabla f=\sum\lambda_i\nabla g_i+\sum\mu_j\nabla h_j$, $\lambda\ge0$, $\lambda_ig_i=0$, feasible. "$\le$" ⇒ flip the gradient's sign. Necessary at regular points; sufficient (global) for convex problems.
- Reverse KKT: active set at $x^0$ → stationarity → parameter + $\lambda\ge0$; global via convexity or relaxation (2024 Q3(b)).
- Wrong way: $g_i(x^0)<0$ ⇒ reverse (inactive); solve multipliers, check all components; $\lambda_i<0$ ⇒ reverse $i$.
- Gradient projection: $x^+=P_C(x-\alpha\nabla f)$, $\alpha<\frac2L$; fixed points = first-order condition; converges in the limit; limit gradient need not be 0.
- Active set: subproblem on $W$; $v\ne0$: ratio test, add blocker; $v=0$: all $\mu\ge0$ stop, else drop negative. $v^\top Qv=-\mu_la_l^\top v$.
- Separation: $h=z-P_C(z)$. Farkas: $Ax=b,x\ge0$ vs $A^\top y\ge0,b^\top y<0$.
- Key slips: 2019 MT3 Q2b ($u=4(1,-1,2)$); 2024 Q4 numbers inconsistent.