Skip to content

v0.2.1

Choose a tag to compare

@Lhongpei Lhongpei released this 25 May 10:12
· 70 commits to main since this release

v0.2.1

What's New in v0.2.1

Generalized low-rank quadratic term. The objective now supports the form

$$\tfrac{1}{2}\, x^\top (Q + R^\top D R)\, x + c^\top x$$

where D is an optional rank × rank middle matrix. When omitted, D defaults to the identity and the previous version. D may be diagonal, sparse, dense, or indefinite — no PSD requirement.

Testing

test/test_lowrank_middle_D.py exercises six cases, each cross-checked against an equivalent formulation:

Case Reference
D = I matches no-D baseline
1-D diag D (PSD) matches folded R' = sqrt(D) R
2-D dense D (PSD) matches folded R' = L^T R (Cholesky D = L L^T)
Indefinite dense D matches explicit Q_eff = R^T D R
Sparse CSR D matches dense D with same values
Sparse CSR diagonal-only D detected as DIAG, matches 1-D path

Compatibility

  • Public ABI break: create_qp_problem signature changed (one extra parameter). C callers must update.
  • Python API: additive; existing code continues to work unchanged.