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.

MosekMonolithicSDP

MosekMonolithicSDP lifts a D=1 QcqpProblem into one positive-semidefinite matrix, solves it with the optional MOSEK Fusion backend, and recovers one QCQP vector per diagonal block.

QCQP vectors carry no homogenizing coordinate. Each PSD block is instead the lifted matrix [1x⊤xX]\begin{bmatrix}1 & x^\top\\ x & X\end{bmatrix} of the keys it holds, with one constant entry; linear cost and constraint terms act on the lifted vector xix_i (row-0 slice).

Open In Colab

Formulation and lifecycle

For a QCQP with stacked vector xx, the relaxation replaces xx⊤xx^\top by one matrix Z⪰0Z\succeq0. Quadratic costs and constraints become linear trace expressions in ZZ. The Python lifecycle is:

  1. Construct MosekMonolithicSDP(problem).

  2. Call solve(mosek_params).

  3. Inspect objectiveValue, problemStatus, and solveTimeSeconds.

  4. Call the functional qcqpValues() query and convert its matrix-valued result with the typed QCQP extraction helpers.

  5. Query variableEVRs() independently when rank-one diagnostics are needed.

status: ProblemStatus::PrimalAndDualFeasible
objective: 6.692513210282414e-11
solve time (s): 0.005703926086425781
ordered keys: [8646911284551352320, 8646911284551352321, 8646911284551352322]
ordered dimensions: {8646911284551352320: 6, 8646911284551352321: 6, 8646911284551352322: 6}
eigenvalue ratios: [1155389737259.924, 309355365080.9226, 154705479697.71225]
maximum Pose2 error: 5.832188596900567e-07

variableEVRs() reports the largest-to-second-largest eigenvalue ratio of each recovered diagonal block. A large ratio indicates a nearly rank-one block and makes vector recovery meaningful. This class is available in Python only when GTSAM is built with MOSEK.