Skip to main content

PDHCG: A First-Order Solver for Quadratic Conic Programming with (Multi-) GPU Acceleration

License PyPI version Documentation Publication arXiv qpsolvers CVXPY

PDHCG is an open-source first-order solver based on primal-dual hybrid gradient methods for large-scale convex quadratic and quadratic conic programming. It supports CPU and CUDA backends, including distributed multi-GPU execution.

Supported models include linear programs, sparse and structured low-rank quadratic objectives, and SOC, rotated SOC, exponential, power, and PSD cones.

PDHCG also integrates with CVXPY and qpsolvers.

Standard Form

$$ \begin{aligned} \min_x\quad &\tfrac12x^\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 full Hessian $H=Q+R^\top D R$ is positive semidefinite. See Algorithm for notation and solver details.

Documentation

Topic Reference
Requirements and installation Installation
Backends, threads, and multi-GPU execution Devices
Python getting started Quick start
Python API Model, Parameters
Native API C API
Command-line options CLI
Modeling examples Examples
Upgrading Migration guide

Citation

If you use PDHCG in research, see the citation and BibTeX.

Acknowledgments

This solver is built upon the infrastructure of cuPDLPx (originally developed by Haihao Lu). We gratefully acknowledge this project for providing the high-performance CUDA-C framework for Linear Programming (LP) that serves as the foundation for this QP solver.


License

Copyright 2024-2026 Hongpei Li, Haihao Lu.

Licensed under the Apache License, Version 2.0. See the LICENSE file for details.

Metadata

Release files for pdhcg 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdhcg 0.4.0
File Size Uploaded Provenance Actions
pdhcg-0.4.0.tar.gz 1.9 MB With provenance Details for pdhcg-0.4.0.tar.gz

Release files / pdhcg-0.4.0.tar.gz

Download URL pdhcg-0.4.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
dd5fac538d7035a72642c61d80698f02e80c3064a599432a1d2df6a6e61c9d17
BLAKE2b-256 checksum
How to use checksums
e51cd9402ccce8bb3309383440a4538777ed703b2402d6944cd40a790b871500
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

Security for pdhcg 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for pdhcg-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page