Differential SDP and Mean Relaxations

The dsdp.py module implements differential semidefinite programming relaxations bridged through SymEngine for symbolic computation. It extends the standard moment/SDP hierarchy to handle optimization problems where polynomial terms include functions that are solutions of algebraic differential equations (ADEs).

Differential SDP Connection

Standard SDP hierarchies for polynomial optimization work with the cone of sums of squares and moment matrices over monomial bases. The differential SDP extension handles a broader class of problems by incorporating:

  1. Jet prolongation: Extending variables to include derivatives \(y, y', y'', \dots\) up to a fixed order

  2. ADE constraints: Encoding algebraic differential equations as polynomial constraints on the jet space

  3. Differential moment matrices: Moment structures that respect the derivation operator

The module provides SymEngine-bridged implementations of these constructs, enabling symbolic manipulation of differential polynomials before numerical SDP formulation.

Mean Polynomial Forms

The mean relaxation uses weighted power mean forms as certificates of nonnegativity:

\[M_{q,p}(X, w) = \sum_{i} w_i X_i^p \left(\sum_{j} w_j X_j^q\right)^{\frac{p-q}{q}}.\]

These forms generalize both SOS and SONC certificates. The mean polynomial cone \(\mathcal{M}_{n,2d}\) contains the SOS cone when \(p\) divides \(2d\), and strictly contains it for other parameter choices (see the companion manuscript on mean polynomials, Chapters 1–7).

The DSDP module constructs relaxations using:

  • Mean-based moment matrices: PSD constraints on generalized moment structures derived from power means

  • SymEngine polynomial arithmetic: Exact symbolic manipulation before numerical evaluation

  • Derivation-aware basis construction: Monomial bases that respect the derivation operator structure

Convergence Theory: CGIK Framework and Archimedean Conditions

The convergence of the differential SDP hierarchy is grounded in the Curto–Ghasemi–Infusino–Kuhlmann (CGIK) framework for the truncated moment problem on unital commutative algebras [CGIK]. In the differential setting, the algebra is the quotient

\[A = \mathbb{R}[S] / \mathcal{I}_{\text{ADE}},\]

where \(S\) is the semigroup generated by the original variables together with their jet prolongations (derivative symbols), and \(\mathcal{I}_{\text{ADE}}\) is the differential ideal encoding the ADE constraints. The CGIK theorem guarantees that a representing measure exists on the character space \(\hat{A}\) provided that the quadratic module generated by the constraints is Archimedean.

Archimedean Boxing Condition. For Putinar-type representation theorems to apply on the jet space, the quadratic module must contain an element of the form

\[R^2 - \|x\|^2 - \sum_{j} y_j^2\]

for some \(R > 0\). This is the Archimedean boxing condition, enforced by the archimedean=True and box_size parameters of DSDPRelaxations. Geometrically, it restricts the feasible set to a bounded subset of the jet space, guaranteeing that the moment hierarchy produces a monotone non-decreasing sequence of lower bounds converging to the true optimum.

Stochel’s Theorem on Infinite-Dimensional Quotients. When the ADE encodes transcendental functions (e.g., \(y' = y\) for the exponential), the quotient algebra \(\mathbb{R}[S]/\mathcal{I}_{\text{ADE}}\) is infinite-dimensional as a real vector space. Stochel’s theorem [Stochel2001] ensures that, under the Archimedean condition, every \(A\)-positive linear functional admits an integral representation via a Borel measure on the character space of \(A\). This provides the theoretical foundation for the moment hierarchy to converge on differential-algebraic constraint sets.

Practical Convergence Guarantees.

  1. With archimedean=True (default), the hierarchy produces certified lower bounds that approach the true optimum from below as the relaxation order increases.

  2. The boxing constant \(R\) (box_size, default 10) must be chosen large enough to contain the feasible set; an overly small \(R\) may exclude the true optimum.

  3. Jet prolongation at order \(k\) (jet_order) increases the problem dimension by a factor of \((k+1)\) per differentiated variable but tightens the relaxation — the hierarchy is guaranteed to converge in the limit \(\min(\text{relaxation order}, \text{jet order}) \to \infty\).

API Overview

from Irene.dsdp import DSDPRelaxations

# Construct differential SDP relaxation for a problem with ADE constraints
dsdp = DSDPRelaxations(prog, jet_order=2)

# Solve at specified order
result = dsdp.solve(order=2)
print(f"Differential SDP bound: {result['value']:.6f}")

The DSDPRelaxations class accepts an OptimizationProblem and a jet_order parameter controlling the derivative depth. The solve method returns results in the same dictionary format as standard relaxations (keys: value, status, order, basis_size, timing fields).

SymEngine Bridging

The module uses SymEngine for symbolic polynomial arithmetic with automatic fallback to SymPy when SymEngine’s Poly API lacks a required operation. This dual-engine design ensures correctness while maximizing performance for the common case. Key bridged operations include:

  • Polynomial multiplication and addition in the jet space

  • Derivation operator application (\(d_x, d_y\) as operators, not Leibniz fractions)

  • Ideal membership testing via border basis reduction

Practical Notes

  1. The DSDP module is research-grade — it implements the theoretical framework from the differential Positivstellensatz rough ideas but should be validated against known benchmarks before production use

  2. Jet prolongation increases problem dimension by a factor of \((jet\_order + 1)\) per differentiated variable

  3. The SymEngine bridge adds minimal overhead for small problems but provides significant speedups for symbolic preprocessing at higher orders

References

  • Ghasemi, M. (2026). “Mean Polynomials: Generalizing SOS and SONC via Power Mean Forms.” Companion manuscript, Chapters 1–7.

  • Curto, R. E., Ghasemi, M., Infusino, M., & Kuhlmann, S. (2023). “The truncated moment problem for unital commutative \(\mathbb{R}\)-algebras.” Journal of Operator Theory, 90(1), 223–261. DOI: 10.7900/jot.2021nov26.2392.

  • Ritt, J. F. (1950). “Differential Algebra.” American Mathematical Society Colloquium Publications.

  • Kolchin, E. R. (1973). “Differential Algebra and Algebraic Groups.” Academic Press.

[Stochel2001]
  1. Stochel, Solving the truncated moment problem solves the full moment problem, Glasgow Math. J. 43(3), 335–341 (2001).