Repository navigation
v0.3.0
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
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
ConeSpecandConeTypeAPIs. - 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
QCMATRIXinput. - Added supported QCQP-to-SOCP transformations, selectable with
--soc_form rotatedor--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 append0, NULL, NULL, NULL, 0, NULL. qp_problem_tandpdhg_parameters_thave new fields. Recompile downstream code and initialize parameters withset_default_parameters().- C dual warm starts and returned dual solutions are ordered as
[dual_A, dual_F]and haverows(A) + rows(F)entries. pdhcg_postsolve()now returns nonzero only after complete primal-dual recovery.- Python cone metadata must use
ConeSpec; the legacylist[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.0Source build:
git clone https://github.com/Lhongpei/PDHCG.git
cd PDHCG
cmake -S . -B build
cmake --build build -jPDHCG 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不建议使用