Skip to content

v0.3.0

Choose a tag to compare

@Lhongpei Lhongpei released this 12 Aug 17:09
· 31 commits to main since this release
443fbf4

PDHCG v0.3.0

PDHCG 0.3.0 expands the solver from quadratic programming to GPU-accelerated conic quadratic programming (CQP), including distributed multi-GPU execution.

Highlights

Conic quadratic programming

PDHCG now solves convex models of the form

$$\begin{aligned} \min_x \quad & \frac{1}{2}x^\top(Q + R^\top D R)x + c^\top x \\\ \text{s.t.} \quad & \ell_c \le Ax \le u_c, \\\ & Fx + g \in \mathcal K_a, \\\ & \ell_v \le x \le u_v, \\\ & x_J \in \mathcal K_v. \end{aligned}$$

The following cones are supported for both variable blocks and native affine constraints:

  • second-order cones (SOC);
  • rotated second-order cones (RSOC);
  • exponential cones;
  • three-dimensional power cones.

Multi-GPU conic solver

The MPI/NCCL backend now supports conic quadratic models. This release adds:

  • cone-aware row and column partitioning and permutation;
  • distributed projection and KKT residual evaluation;
  • cooperative projection of large SOC and RSOC blocks spanning GPUs;
  • support for both variable and affine cones in distributed solves.

Build with -DPDHCG_COMPILE_DISTRIBUTED=ON and launch the executable with mpirun to use multiple GPUs.

Python and CVXPY interfaces

  • Added the columnar ConeSpec and ConeType APIs.
  • Added variable cones and native affine-cone constraints to pdhcg.Model.
  • Added Model.read_file() for MPS/QPS/CBF inputs, including gzip-compressed files.
  • Added an optional CVXPY backend with quadratic objectives and Zero, NonNeg, SOC, ExpCone, and PowCone3D constraints.

Install CVXPY integration with:

pip install "pdhcg[cvxpy]==0.3.0"

Then register the backend once before solving:

import cvxpy as cp
import pdhcg.cvxpy_backend

problem.solve(solver="PDHCG")

Cone projection, scaling, and termination

  • Added specialized warp/block CUDA projection paths for cone blocks.
  • Completed fixed-section projection support for variable SOC, RSOC, exponential, and power cones.
  • Added cone-aware primal feasibility, stationarity, dual membership, and complementarity residuals.
  • Added cone-preserving Ruiz and Pock-Chambolle scaling.
  • Added optional Curtis-Reid scaling through --curtis_reid_iter.
  • Improved exponential-, power-, SOC-, and RSOC-cone projection correctness.

File and command-line support

  • Added CBF and compressed CBF parsing.
  • Improved MPS/QPS parsing, including QCMATRIX input.
  • Added supported QCQP-to-SOCP transformations, selectable with --soc_form rotated or --soc_form standard.
  • Added command-line controls for scaling, restart behavior, and inner solves.
  • Changed the default infeasibility-detection tolerance to 1e-12.

Breaking Changes

Version 0.3 changes the public model-construction APIs.

  • The C function create_qp_problem() has six new trailing arguments for variable and affine cones. Existing QP callers should append 0, NULL, NULL, NULL, 0, NULL.
  • qp_problem_t and pdhg_parameters_t have new fields. Recompile downstream code and initialize parameters with set_default_parameters().
  • C dual warm starts and returned dual solutions are ordered as [dual_A, dual_F] and have rows(A) + rows(F) entries.
  • pdhcg_postsolve() now returns nonzero only after complete primal-dual recovery.
  • Python cone metadata must use ConeSpec; the legacy list[dict] format is no longer accepted.

See the 0.3 migration guide for source-level examples.

Installation

Python package:

pip install --upgrade pdhcg==0.3.0

Source build:

git clone https://github.com/Lhongpei/PDHCG.git
cd PDHCG
cmake -S . -B build
cmake --build build -j

PDHCG requires an NVIDIA GPU and CUDA 12.4 or newer. Distributed builds also require MPI and NCCL.

References

This release accompanies GPU-Accelerated Conic Quadratic Programming with Local Linear Convergence under Strict Complementarity.
给我加上PSD并说明这个是initial支持,且大cone不建议使用