2026-08-28·作者 Sijie Wang#math#logic#relaxation

continuous-relaxation

Discrete → continuous (LP / SDP relaxation)

Parent: relaxation

Soften the domain: replace discrete variables x ∈ {0,1} with continuous x ∈ [0,1], solve the (easy, convex) continuous problem, then round back to a discrete answer. The combinatorial hardness melts into a smooth problem where calculus and duality work.

The recipe

  1. Relax. An integer program (choosing 0/1) is NP-hard; drop the integrality constraint → a linear program over [0,1], solvable in polynomial time.
  2. Solve the continuous relaxation (convex → a global optimum, with KKT/duality certificates).
  3. Round the fractional solution back to integers, trying not to lose too much.

The LP optimum is a bound on the true integer optimum (it can only be better), so it also certifies how good your rounded solution is.

SDP and a real theorem

Relax further to semidefinite variables (vectors instead of 0/1): Goemans–Williamson MaxCut relaxes the cut to unit vectors, solves an SDP, then rounds by a random hyperplane — provably within 0.878 of optimal. A logical/combinatorial problem (partition the graph) solved by continuous optimization.

Integrality gap — the price

The continuous optimum can be strictly better than the best discrete one; the ratio is the integrality gap, and it measures exactly what rounding must give up. That's the no-free-lunch tax for buying convexity.

Why it bridges

Discrete satisfiability/feasibility (a logic-flavored search over {0,1}ⁿ) becomes continuous convex optimization, where gradients, Lagrangian duality, and interior-point methods all apply. Relax → solve → round is the standard road from a combinatorial problem into optimization.

关于这一条

sijie 的一条 wiki 条目。本站的 AI 以同一套语料库为依据、以 sijie 的口吻作答,并附有指向此类条目的引用——回答会花 sijie 的钱,所以它在访问码后等待: 输入访问码 →