Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Dual prices for Frank–Wolfe algorithms

Sebastian Pokutta
v1 2026-11-28 · last 2026-11-29
Additional material: arXiv:2101.02087
Note: Formalizes the certificate property of dual prices (2.1), the identity (2.2) of the Frank–Wolfe gap and the complementarity gap, and Observation 2.1 with (2.3) to (2.5) of Braun & Pokutta (2021).

Abstract. Over a polyhedron P={z:Az≤b}P = \{z : Az \le b\} the linear minimization oracle of a Frank–Wolfe algorithm is a linear program, and solvers certify a minimizer vv of ∇f(x)z\nabla f(x) z with dual prices λ≥0\lambda \ge 0, ∇f(x)=−λA\nabla f(x) = -\lambda A and ∇f(x)v=−λb\nabla f(x) v = -\lambda b. Dual prices certify optimality, the condition on the value is complementary slackness, and the Frank–Wolfe gap at xx is the complementarity gap λ(b−Ax)\lambda(b - Ax). For a smooth convex objective and an approximately optimal point xx, dual prices keep their meaning from linear programming as the rate of change of the optimal value under a change of bb to b′b': if λ\lambda are dual prices for Frank–Wolfe vertices vv and v′v' of both problems and x′=x−v+v′x' = x - v + v' is feasible, the optimal value over the new polyhedron lies between f(x)−∇f(x)(x−v)+λ(b−b′)f(x) - \nabla f(x)(x - v) + \lambda(b - b') and f(x)+λ(b−b′)+L∥v′−v∥2/2f(x) + \lambda(b - b') + L\|v' - v\|^2/2. The errors are the Frank–Wolfe gap at xx, which vanishes at optimal solutions, and the nonlinearity of ff.

Frank–Wolfe algorithms access the feasible region PP only through a linear minimization oracle. Over a polytope P={z:Az≤b}P = \{z : Az \le b\} such an oracle is a linear program solver, and solvers certify optimality with dual prices: for a minimizer vv of min⁡z∈Pcz\min_{z \in P} cz, multipliers λ≥0\lambda \ge 0 with c=−λAc = -\lambda A and cv=−λbcv = -\lambda b. For linear programs, dual prices are the rate of change of the optimal value under changes of bb. The note observes that the dual prices of the linear subproblem at an approximately optimal point xx of a smooth convex problem keep this meaning, with an additive error of the Frank–Wolfe gap at xx and a smoothness term. So a Frank–Wolfe algorithm provides sensitivity information at no extra cost.

Throughout, EE is a real normed space, the rows aia_i of AA are continuous linear functionals, and b∈Rmb \in \mathbb{R}^m. Gradients are the derivatives ∇f(x)=f′(x)\nabla f(x) = f'(x), linear functionals on EE, and the norm is arbitrary.

Dual prices

By strong duality of linear programming, a point v∈Pv \in P minimizes gg over PP if and only if dual prices exist. The formalization uses the easy direction, which needs no linear programming:

Both statements come from gz=−∑iλiaiz≥−∑iλibigz = -\sum_i \lambda_i a_i z \ge -\sum_i \lambda_i b_i for z∈Pz \in P, with equality exactly when every term λi(bi−aiz)≥0\lambda_i(b_i - a_i z) \ge 0 vanishes.

Indeed g(x−v)=−λAx+λbg(x - v) = -\lambda Ax + \lambda b. For g=∇f(x)g = \nabla f(x) the left-hand side is the Frank–Wolfe gap at xx, the usual stopping criterion of Frank–Wolfe algorithms and an upper bound on the primal gap.

Sensitivity in the right-hand side

Change bb to b′b', with P′={z:Az≤b′}P' = \{z : Az \le b'\}, and let vv and v′v' be Frank–Wolfe vertices at xx over PP and P′P'. The point x′=x−v+v′x' = x - v + v' moves xx along with the vertex.

For z∈P′z \in P', convexity gives f(z)≥f(x)+∇f(x)(z−x)f(z) \ge f(x) + \nabla f(x)(z - x), and ∇f(x)z≥∇f(x)v′\nabla f(x) z \ge \nabla f(x) v'; the point xx need not lie in P′P'. The upper bound is smoothness along x′−x=v′−vx' - x = v' - v, and the dual prices give ∇f(x)(v′−v)=−λb′+λb\nabla f(x)(v' - v) = -\lambda b' + \lambda b. So the dual prices are the rate of change of the optimal value, up to the Frank–Wolfe gap ∇f(x)(x−v)\nabla f(x)(x - v) at xx, which vanishes at optimal solutions, and the error L∥v′−v∥2/2L\|v' - v\|^2/2 from the nonlinearity of ff.

The paper argues that the assumption x′∈P′x' \in P' holds when xx is close to an optimal solution and b′b' is close to bb: then every constraint tight at xx is tight at vv, and the slack constraints at xx absorb the small changes. The computation behind this is the following.

For a tight constraint, ai(x−v+v′)=bi−bi+aiv′≤bi′a_i(x - v + v') = b_i - b_i + a_i v' \le b'_i. For a slack one, ai(x−v+v′)≤aix+∥ai∥ ∥v′−v∥≤bi−∣bi′−bi∣≤bi′a_i(x - v + v') \le a_i x + \|a_i\|\,\|v' - v\| \le b_i - |b'_i - b_i| \le b'_i.

Coverage

This entry covers (2.1) in the direction that dual prices certify optimality, with complementary slackness, (2.2), Observation 2.1 with (2.3), (2.4) and (2.5), and the feasibility computation for the translated point. Not covered are the strong duality of linear programming and the optimality conditions it gives, which the paper recalls, and the informal argument that the constraints tight at xx are tight at vv near an optimal solution.

The formal statements at a glance

Main.lean
/-- (2.1): dual prices certify optimality, and `g v = -λb` is complementary slackness. -/
theorem dual_certificate : DualCertificate := Proof.dual_certificate

/-- (2.2): the Frank–Wolfe gap equals the complementarity gap `λ(b - Ax)`. -/
theorem gap_complementarity : GapComplementarity := Proof.gap_complementarity

/-- Observation 2.1: dual prices measure the change of the optimal value under a change of `b`, up
to the Frank–Wolfe gap and the smoothness term `L‖v' - v‖²/2`. -/
theorem dual_price_sensitivity : DualPriceSensitivity := Proof.dual_price_sensitivity

/-- The translated point `x - v + v'` is feasible for `b'` when the tight constraints at `x` are
tight at `v` and the slack constraints have enough slack. -/
theorem translate_feasible : TranslateFeasible := Proof.translate_feasible
Formal verification — ✅ all 7 formal results are kernel-checked

Checked at commit 89e42fdee8df. The formal statement is machine-checked; that it matches the prose is checked by review. What “checked” means.

Lean poly · ◇ elaborated · source

Definition in Lean
/-- The polyhedron `{z : a_i z ≤ b_i for all i}`, that is `{z : Az ≤ b}` with the rows `a_i`
of `A`. -/
def poly (a : Fin m → StrongDual ℝ E) (b : Fin m → ℝ) : Set E := {z | ∀ i, a i z ≤ b i}

Lean IsFWVertex · ◇ elaborated · source

Definition in Lean
/-- `v` is a Frank–Wolfe vertex for the linear objective `g` over `P`: a minimizer of `g` on `P`. -/
def IsFWVertex (P : Set E) (g : StrongDual ℝ E) (v : E) : Prop := v ∈ P ∧ ∀ z ∈ P, g v ≤ g z

Lean IsDualPrice · ◇ elaborated · source

Definition in Lean
/-- `λ` are dual prices for `v` and the linear objective `g` over `{z : Az ≤ b}`, as in (2.1):
`λ ≥ 0`, `g = -λA` and `g v = -λb`. -/
def IsDualPrice (a : Fin m → StrongDual ℝ E) (b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E)
    (lam : Fin m → ℝ) : Prop :=
  (∀ i, 0 ≤ lam i) ∧ g = -∑ i, lam i • a i ∧ g v = -∑ i, lam i * b i

Lean dual_certificate · ✅ kernel-checked · source

Statement in Lean
/-- (2.1): dual prices certify optimality, and `g v = -λb` is complementary slackness. -/
theorem dual_certificate : DualCertificate

where DualCertificate is (source):

/-- **Dual prices certify optimality** (2.1). For `v ∈ P`, `λ ≥ 0` and `g = -λA`, the condition
`g v = -λb` is complementary slackness, `a_i v = b_i` whenever `λ_i > 0`, and dual prices make `v` a
minimizer of `g` over `P`. -/
def DualCertificate : Prop :=
  ∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
    (b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E) (lam : Fin m → ℝ),
    v ∈ poly a b → (∀ i, 0 ≤ lam i) → g = -∑ i, lam i • a i →
      (IsDualPrice a b g v lam ↔ ∀ i, 0 < lam i → a i v = b i) ∧
      (IsDualPrice a b g v lam → IsFWVertex (poly a b) g v)

Lean gap_complementarity · ✅ kernel-checked · source

Statement in Lean
/-- (2.2): the Frank–Wolfe gap equals the complementarity gap `λ(b - Ax)`. -/
theorem gap_complementarity : GapComplementarity

where GapComplementarity is (source):

/-- **The Frank–Wolfe gap is the complementarity gap** (2.2). For dual prices `λ` of `v`,
`g(x - v) = λ(b - Ax)` for every `x`. -/
def GapComplementarity : Prop :=
  ∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
    (b : Fin m → ℝ) (g : StrongDual ℝ E) (v : E) (lam : Fin m → ℝ),
    IsDualPrice a b g v lam → ∀ x : E, g (x - v) = ∑ i, lam i * (b i - a i x)

Lean dual_price_sensitivity · ✅ kernel-checked · source

Statement in Lean
/-- Observation 2.1: dual prices measure the change of the optimal value under a change of `b`, up
to the Frank–Wolfe gap and the smoothness term `L‖v' - v‖²/2`. -/
theorem dual_price_sensitivity : DualPriceSensitivity

where DualPriceSensitivity is (source):

/-- **Observation 2.1** (sensitivity in `b`). Let `f` be convex and `L`-smooth on a convex set `D`
containing `P = {z : Az ≤ b}` and `P' = {z : Az ≤ b'}`, let `x ∈ P`, and let `v` and `v'` be
Frank–Wolfe vertices at `x` over `P` and `P'` with `x' = x - v + v' ∈ P'`. Then
`f(x) - ∇f(x)(x - v)` is a lower bound on `f` over `P` (2.3), `f(x) - ∇f(x)(x - v) + ∇f(x)(v' - v)`
is one over `P'`, and `f(x') ≤ f(x) + ∇f(x)(v' - v) + L‖v' - v‖²/2` (2.4). For common dual prices
`λ` of `v` and `v'`, `∇f(x)(v' - v) = λ(b - b')` (2.5). -/
def DualPriceSensitivity : Prop :=
  ∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
    (b b' : Fin m → ℝ) (D : Set E) (f : E → ℝ) (L : ℝ) (x v v' : E),
    poly a b ⊆ D → poly a b' ⊆ D → ConvexOn ℝ D f → IsSmoothOn D f L →
    x ∈ poly a b → DifferentiableAt ℝ f x →
    IsFWVertex (poly a b) (fderiv ℝ f x) v → IsFWVertex (poly a b') (fderiv ℝ f x) v' →
    x - v + v' ∈ poly a b' →
      (∀ z ∈ poly a b, f x - fderiv ℝ f x (x - v) ≤ f z) ∧
      (∀ z ∈ poly a b', f x - fderiv ℝ f x (x - v) + fderiv ℝ f x (v' - v) ≤ f z) ∧
      f (x - v + v') ≤ f x + fderiv ℝ f x (v' - v) + L / 2 * ‖v' - v‖ ^ 2 ∧
      ∀ lam : Fin m → ℝ, IsDualPrice a b (fderiv ℝ f x) v lam →
        IsDualPrice a b' (fderiv ℝ f x) v' lam → fderiv ℝ f x (v' - v) = ∑ i, lam i * (b i - b' i)

Lean translate_feasible · ✅ kernel-checked · source

Statement in Lean
/-- The translated point `x - v + v'` is feasible for `b'` when the tight constraints at `x` are
tight at `v` and the slack constraints have enough slack. -/
theorem translate_feasible : TranslateFeasible

where TranslateFeasible is (source):

/-- **Feasibility of the translated point.** If every constraint tight at `x ∈ P` is tight at `v`,
`v' ∈ P'`, and every constraint slack at `x` has slack at least `|b'_i - b_i| + ‖a_i‖‖v' - v‖`,
then `x' = x - v + v' ∈ P'`. -/
def TranslateFeasible : Prop :=
  ∀ {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] {m : ℕ} (a : Fin m → StrongDual ℝ E)
    (b b' : Fin m → ℝ) (x v v' : E),
    x ∈ poly a b → v' ∈ poly a b' → (∀ i, a i x = b i → a i v = b i) →
    (∀ i, a i x < b i → |b' i - b i| + ‖a i‖ * ‖v' - v‖ ≤ b i - a i x) →
      x - v + v' ∈ poly a b'

AI use. The formalization and this page were developed with Claude (Anthropic) under the author’s direction and review, on top of the shared entry Frank–Wolfe: the core.

Acknowledgements. This research was conducted in the context of the Agentic AI in Mathematics (EF-LiOpt-3) project at the Berlin Mathematics Research Center MATH+^+ (EXC-2046/2, project ID 390685689), funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy. This work has been partially supported by OpenAI’s Academic Researchers program.

License: CC BY 4.0

Comments.

References
  1. Braun, G., & Pokutta, S. (2021). Dual Prices for Frank–Wolfe Algorithms. 10.48550/arXiv.2101.02087