Skip to main content

QP helper

This Python package offers various utility functions for manipulating and verifying QP (Quadratic Programming) problems.

Install by:

pip install qphelper

This package contains two classes QP and QPOCP.

Class QP

from qphelper import QP
qp = QP(H, q, A, lbA, ubA, lb, ub, C, d)

# get primal objective value
print(qp.evaluate_primal(primal_solution))

# transform equalities into inequalities for solvers that do not support ehm
qp = qp.to_without_equalities()

Class OCPQP

from qphelper import QPOCP
qp = QPOCP(Q, R, S, ...)

# remove state variables from first stage by utilizing equality bounds
qp = qp.to_without_x0()

# transform the problem into dense `QP` object
qp_dense = qp.to_dense()

Metadata

Release files for qphelper 0.0.6

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

Source distribution (sdist)

Source distribution for qphelper 0.0.6
File Size Uploaded Provenance Actions
qphelper-0.0.6.tar.gz 9.2 kB Without provenance Details for qphelper-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qphelper 0.0.6
File Interpreter ABI Platform Actions
qphelper-0.0.6-py3-none-any.whl Python 3 none any Details for qphelper-0.0.6-py3-none-any.whl

Total release size: 18.5 kB

Release files / qphelper-0.0.6.tar.gz

Download URL qphelper-0.0.6.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c7628373489f781b30e88f2c316dce35427b2a62c43650b83623f9e08ff6964
BLAKE2b-256 checksum
How to use checksums
acb9156a7c20e44613524896a02373284e0d0249c69ff21a1b56c5cb631fe3da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / qphelper-0.0.6-py3-none-any.whl

Download URL qphelper-0.0.6-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91ad9cf6d5a8cbe0f29bf55cc20511de5ab411fedfd3d6c2ace879b123da2d18
BLAKE2b-256 checksum
How to use checksums
aa74feadf719f4051243f59005ffe3d898d253bc943d86ff30e634057770531d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for qphelper 0.0.6

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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