Optimization

Let \(X\) be a nonempty topological space and \(A\) be a unital sub-algebra of continuous functions over \(X\) which separates points of \(X\). We consider the following optimization problem:

\[\begin{split}\begin{aligned} \min & f(x) & \\ \textrm{subject to} & & \\ & g_i(x)\ge 0 & i=1,\dots,m. \end{aligned}\end{split}\]

Denote the feasibility set of the above program by \(K\) (i.e., \(K=\{x\in X:g_i(x)\ge 0,~ i=1,\dots,m\}\)). Let \(\rho\) be the optimum value of the above program and \(\mathcal{M}_1^+(K)\) be the space of all probability Borel measures supported on \(K\). One can show that:

\[\rho = \inf_{\mu\in\mathcal{M}_1^+(K)}\int f~d\mu.\]

This associates a \(K\)-positive linear functional \(L_{\mu}\) to every measure \(\mu\in\mathcal{M}_1^+(K)\). Let us denote the set of all elements of \(A\) nonnegative on \(K\) by \(Psd_A(K)\). If \(\exists p\in Psd_A(K)\) such that \(p^{-1}([0, n])\) is compact for each \(n\in\mathbb{N}\), then one can show that every \(K\)-positive linear functional admits an integral representation via a Borel measure on \(K\) (Marshall’s generalization of Haviland’s theorem). Let \(Q_{\bf g}\) be the quadratic module generated by \(g_1,\dots,g_m\), i.e, the set of all elements in \(A\) of the form

(1)\[\sigma_0+\sigma_1 g_1+\dots+\sigma_m g_m,\]

where \(\sigma_0,\dots,\sigma_m\in\sum A^2\) are sums of squares of elements of \(A\). A quadratic module \(Q\) is said to be Archimedean if for every \(h\in A\) there exists \(M>0\) such that \(M\pm h\in Q\). By Jacobi’s representation theorem, if \(Q\) is Archimedean and \(h>0\) on \(K\), where \(K=\{x\in X:g(x)\ge0~\forall g\in Q\}\), then \(h\in Q\). Since \(Q\) is Archimedean, \(K\) is compact and this implies that if a linear functional on \(A\) is nonnegative on \(Q\), then it is \(K\)-positive and hence admits an integral representation. Therefore:

\[\rho = \inf_{\tiny L(Q)\ge 0\ L(1)=1}L(f).\]

Let \(Q=Q_{\bf g}\) and \(L(Q)\subseteq[0,\infty)\). Then clearly \(L(\sum A^2)\subseteq[0,\infty)\) which means \(L\) is positive semidefinite. Moreover, for each \(i=1,\dots,m\), \(L(g_i\sum A^2)\subseteq[0,\infty)\) which means the maps

\[\begin{split}\begin{aligned} L_{g_i}:A & \longrightarrow & \mathbb{R}\\ h & \mapsto & L(g_i h) \end{aligned}\end{split}\]

are positive semidefinite. So the optimum value of the following program is still equal to \(\rho\):

(2)\[\begin{split}\begin{aligned} \min & L(f) & \\ \textrm{subject to} & & \\ & L\succeq 0 & \\ & L_{g_i}\succeq0 & i=1,\dots,m. \end{aligned}\end{split}\]

This is still not a semidefinite program, since each constraint is infinite dimensional. One plausible idea is to consider functionals on finite dimensional subspaces of \(A\) containing \(f, g_1,\dots,g_m\). This was done by Lasserre for polynomials [JBL].

Let \(B\subseteq A\) be a linear subspace. If \(L:A\longrightarrow\mathbb{R}\) is \(K\)-positive, so is its restriction on \(B\). But generally, \(K\)-positive maps on \(B\) do not extend to \(K\)-positive one on \(A\) and hence existence of integral representations are not guaranteed. Under a rather mild condition, this issue can be resolved:

Theorem. [CGIK] Let \(K\subseteq X\) be compact, \(B\subseteq A\) a linear subspace such that there exists \(p\in B\) strictly positive on \(K\). Then every linear functional \(L:B\longrightarrow\mathbb{R}\) satisfying \(L(Psd_B(K))\subseteq[0,\infty)\) admits an integral representation via a Borel measure supported on \(K\).

Now taking \(B\) to be a finite dimensional linear space containing \(f, g_1,\dots,g_m\) and satisfying the assumptions of the above theorem, turns (2) into a semidefinite program. Note that this does not imply that the optimum value of the resulting SDP is equal to \(\rho\) since

  • :math:`Q_{bf g}cap B

neq Psd_{B}(K)` and,
  • there may not exist a decomposition of \(f-\rho\) as in (1) inside \(B\) (i.e., the summands may not belong to \(B\)).

Thus, the optimum value gives only a lower bound for \(\rho\). However, walking through a \(K\)-frame, as explained in [CGIK], constructs a net of lower bounds for \(\rho\) that eventually approaches \(\rho\).

In practice, one needs a sufficiently large finite-dimensional linear space that contains \(f, g_1,\dots,g_m\) and admits a (1) decomposition of \(f-\rho\) within that space. Therefore, convergence happens in finitely many steps, subject to finding a suitable \(K\)-frame for the problem. The same truncation viewpoint for compact semialgebraic sets is developed in the A-truncated K-moment problem of Nie [JNie].

The significance of this method is that it converts an optimization problem into finitely many semidefinite programs whose optimum values approach the optimum value of the original program, while each semidefinite program can be solved in polynomial time. This does not imply a polynomial-time algorithm for the full NP-complete optimization problem, because the number of SDP levels needed to reach the optimum is unknown, and no general bound is available in the Archimedean setting.

Note

1. One behavior that distinguishes this method from others is that using SDP relaxations always provides a lower bound for theminimum value of the objective function over the feasibility set. While other methods usually involve evaluation of the objectiveand hence the result is always an upper bound for the minimum.

2. The SDP relaxation method relies on symbolic computations which could be quite costly and slow. Therefore, dealing with rather large problems -although Irene takes advantage from multiple cores- can be rather slow.

Notation Bridge to Geometric and SONC Chapters

The same constrained problem data \((f, g_1, \dots, g_m, K)\) is reused across all method families documented in this manual.

  1. In the SDP hierarchy chapter, the central object is the moment functional \(L\).

  2. In the geometric chapter, transformed families \(h_j\) are built from \(f\) and \(g_i\).

  3. In the SONC chapter, the central transformed expression is \(G(\mu)=f-\sum_i \mu_i g_i\).

This shared notation is intentional and helps compare lower-bound certificates across SDP, GP, and SONC formulations on the same POP instance.

Beyond SDP: Alternative Lower-Bound Mechanisms

The remainder of this documentation extends the same POP template to two additional lower-bound mechanisms:

  1. Geometric programming relaxations, which use transformed polynomial families

    and sign/support constraints to produce GP certificates.

  2. SONC relaxations, which use circuit-structured support geometry and

    barycentric weights.

These alternatives do not replace the SDP hierarchy. Instead, they provide complementary certificates that can be more suitable for specific sparse, high-degree, or structure-rich instances.

Modern API Quick Reference

Irene provides a unified pipeline for defining and solving polynomial optimization problems. The core workflow is:

  1. Build a semigroup algebra from generators (CommutativeSemigroup + SemigroupAlgebra)

  2. Formulate the problem (OptimizationProblem with objective and constraints)

  3. Configure and solve via RelaxationEngine with the chosen relaxation method

from Irene.grouprings import CommutativeSemigroup, SemigroupAlgebra
from Irene.program import OptimizationProblem
from Irene.relaxation_api import RelaxationEngine
from Irene.relaxations import RelaxationConfig

# 1. Algebra
sg = CommutativeSemigroup(['x', 'y', 'z'])
sga = SemigroupAlgebra(sg)
x, y, z = sga['x'], sga['y'], sga['z']

# 2. Problem
prog = OptimizationProblem(sga)
prog.set_objective(-2*x + y - z)
prog.add_constraint(24 - 20*x + 9*y - 13*z + 4*x**2
                    - 4*x*y + 4*x*z + 2*y**2 - 2*y*z + 2*z**2 >= 0)
prog.add_constraint(x + y + z <= 4)
prog.add_constraint(3*y + z <= 6)
prog.add_constraint(x >= 0)
prog.add_constraint(x <= 2)
prog.add_constraint(y >= 0)
prog.add_constraint(z >= 0)
prog.add_constraint(z <= 3)

# 3. Solve (SOS relaxation, order 3)
config = RelaxationConfig(
    reduction_method="newton_polytope",
    monomial_pruning=True,
    sparsity_detection=True,
)
engine = RelaxationEngine(prog, order=3, solver='dsdp', config=config)
result = engine.solve('sos')
print(f"Lower bound: {result.value:.8f}")

See Unified Relaxation API for the full engine API, Problem Representation for problem construction, and Examples and Validation for a gallery of worked examples.

Note

Legacy API users: the original Irene API (SDPRelaxations([x,y,z]), Mom(), Probability=False, SetObjective, AddConstraint) remains available for backward compatibility. See Legacy API Migration Guide for a complete mapping from the legacy API to the modern pipeline.

Working with Quotient Algebras

The CGIK framework described above applies to arbitrary unital commutative algebras. In practice, the function space \(A\) is often represented as a quotient of a polynomial algebra:

\[A = \mathbb{R}[x_1, \dots, x_n, y_1, \dots, y_k] / \mathcal{I},\]

where the auxiliary symbols \(y_1, \dots, y_k\) encode algebraic relations satisfied by the original functions. For example:

  • Radicals: \(\sqrt[3]{(xy)^2}\) is encoded via \(f\) with \(\mathcal{I} = \langle xy - f^3 \rangle\).

  • Trigonometric functions: \(\sin(x), \cos(x)\) are encoded via \(s, c\) with \(\mathcal{I} = \langle s^2 + c^2 - 1 \rangle\).

  • Exponential functions: \(e^x\) is encoded via \(y\) with \(\mathcal{I} = \langle \text{ADE relations} \rangle\) — see Differential SDP and Mean Relaxations for the differential-algebraic treatment.

In Irene, algebraic relations are passed as the relations parameter when constructing a SemigroupAlgebra or OptimizationProblem. The quotient basis is computed automatically (via Gröbner or border basis, as configured in RelaxationConfig) and all subsequent moment matrix constructions use the reduced monomial basis.

Moment Constraints

Beyond the standard moment matrix and localizing matrix constraints (which enforce \(L \succeq 0\) and \(L_{g_i} \succeq 0\)), users may impose linear constraints on moments — e.g., \(\int xy \, d\mu \ge 1/2\). In the modern API, these are added directly to the OptimizationProblem using add_moment_constraint.

Equality constraints are handled similarly. For rational function optimization (\(\min p(x)/q(x)\)), the probability normalization \(\int q(x) d\mu = 1\) replaces the default \(\int 1 d\mu = 1\) condition. This is configured through the problem-level settings on OptimizationProblem.

Solution Extraction and SOS Decomposition

When the SDP is feasible, the dual solution provides:

  1. A certified lower bound \(\gamma\) on the global minimum.

  2. An SOS decomposition proving \(f - \gamma \in Q_{\mathbf{g}}\) (when the moment matrix has the expected rank, i.e., the flat extension condition holds).

  3. Support extraction: the minimizers can be recovered from the moment matrix via the Lasserre–Henrion eigenvalue method [HL] or via scipy-based moment matching.

The modern API returns a RelaxResult object with attributes value, status, certificate, and solver_info. For detailed SOS decomposition and support extraction, see Semidefinite Programming Relaxations.

Theoretical Convergence Guarantees

Under the Archimedean condition on the quadratic module \(Q_{\mathbf{g}}\), the SDP hierarchy produces a monotonically non-decreasing sequence of lower bounds \(\{\gamma_t\}_{t \ge t_0}\) satisfying

\[\gamma_t \le \gamma_{t+1} \le \cdots \le \rho,\]

and \(\gamma_t \to \rho\) as \(t \to \infty\). Convergence is finite when a suitable \(K\)-frame exists (see [CGIK] for the general theory on unital commutative algebras). In the differential setting, convergence additionally requires the Archimedean boxing condition — see Differential SDP and Mean Relaxations.

Conic Duality and Nonnegativity Certificates

The primal SDP minimizes \(L(f)\) subject to PSD constraints; its dual maximizes \(\gamma\) such that \(f - \gamma = \sigma_0 + \sum_i \sigma_i g_i\) with \(\sigma_j\) sums of squares of bounded degree. A dual unboundedness certificate (reported as 'infeasible' status) is equivalent to a certified SOS proof that \(f\) cannot be represented as an element of \(Q_{\mathbf{g}}\) at the given relaxation order — see CVXPY Solver Layer for solver-specific behavior.