Metadata-Version: 2.4
Name: hpr
Version: 0.1.0
Summary: Unified HPR LP and convex QP solvers
Maintainer: bay
License-Expression: MIT
License-File: LICENSE
License-File: licenses/lp/LICENSE
License-File: licenses/lp/third_party/GPU-Presolver-C/LICENSE
License-File: licenses/lp/third_party/GPU-Presolver-C/cpp/third_party/cpu_presolve_reference/LICENSE
License-File: licenses/lp/third_party/PSLP/LICENSE
License-File: licenses/qp/LICENSE
License-File: licenses/qp/third_party/SCIPY_LICENSE.txt
License-File: licenses/qp/third_party/eigen/COPYING.APACHE
License-File: licenses/qp/third_party/eigen/COPYING.BSD
License-File: licenses/qp/third_party/eigen/COPYING.GPL
License-File: licenses/qp/third_party/eigen/COPYING.LGPL
License-File: licenses/qp/third_party/eigen/COPYING.MINPACK
License-File: licenses/qp/third_party/eigen/COPYING.MPL2
License-File: licenses/qp/third_party/eigen/COPYING.README
License-File: licenses/qp/third_party/nlohmann/LICENSE.MIT
License-File: licenses/qp/third_party/pocketfft/LICENSE.md
License-File: licenses/qp/third_party/superlu/License.txt
License-File: licenses/runtime/gcc/COPYING
License-File: licenses/runtime/gcc/COPYING.LIB
License-File: licenses/runtime/gcc/COPYING.RUNTIME
License-File: licenses/runtime/gcc/COPYING3
License-File: licenses/runtime/gcc/COPYING3.LIB
License-File: licenses/runtime/libquadmath/COPYING.LIB.libquadmath
License-File: licenses/runtime/openblas/LICENSE
License-File: licenses/runtime/openssl-libs/LICENSE.txt
License-File: licenses/runtime/zlib/README
Project-URL: Repository, https://github.com/Simonsbay/hpr
Project-URL: Issues, https://github.com/Simonsbay/hpr/issues
Requires-Python: <3.13,>=3.12
Requires-Dist: numpy>=1.26
Requires-Dist: scipy>=1.12
Requires-Dist: nvidia-cuda-runtime-cu12==12.8.90
Requires-Dist: nvidia-nvjitlink-cu12==12.8.93
Requires-Dist: nvidia-cublas-cu12==12.8.4.1
Requires-Dist: nvidia-cusparse-cu12==12.5.8.93
Requires-Dist: nvidia-cusolver-cu12==11.7.3.90
Requires-Dist: nvidia-cufft-cu12==11.3.3.83
Requires-Dist: nvidia-curand-cu12==10.3.9.90
Requires-Dist: nvidia-cudss-cu12==0.7.1.6
Requires-Dist: cuda-toolkit==12.8.1
Provides-Extra: test
Requires-Dist: pytest>=8; extra == "test"
Provides-Extra: cvxpy
Requires-Dist: cvxpy>=1.4; extra == "cvxpy"
Description-Content-Type: text/markdown

# HPR

One Python package containing LP and convex QP engines.
Validated target: Linux x86-64 with glibc >= 2.28 / CPython 3.12 / CUDA 12.8 / A40 (SM 86).

Install from [PyPI](https://pypi.org/project/hpr/) in a Python 3.12 environment:

```sh
python -m pip install --index-url https://pypi.org/simple/ --only-binary=:all: hpr==0.1.0
python -m pip check
```

GPU solving requires a compatible NVIDIA GPU and driver. A CUDA Toolkit or compiler
is not needed for wheel installation. See the [0.1.0 release procedure](docs/RELEASE_0_1_0_ZH.md).

```python
import hpr
import numpy as np
A = np.array([[1., 1.]])
lp = hpr.lp([1., 2.], A, row_lower=[1.], row_upper=[1.])
qp = hpr.qp(2*np.eye(2), [-2., -4.], A, row_lower=[1.], row_upper=[1.])
print(lp.status, lp.objective)  # approximately 1
print(qp.status, qp.objective)  # approximately -3
assert lp.success and qp.success
assert np.isclose(lp.objective, 1.0, atol=1e-5)
assert np.isclose(qp.objective, -3.0, atol=1e-5)
```

The manylinux build fixes the build image and source checksums, rebuilds native
runtime dependencies for baseline x86-64, and validates the final sdist-derived
wheel in a clean GPU container. NVIDIA runtime libraries are exact pip dependencies;
the host supplies the driver. The recorded GPU configuration is A40 / SM 86 with
driver 575.57.08. Other combinations remain unverified.
[API and migration](docs/API_ZH.md), [reproducible build and release procedure](docs/MANYLINUX_RELEASE_ZH.md).
