Utilities for Quadratic Programming
Project description
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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qphelper-0.0.6.tar.gz
(9.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qphelper-0.0.6.tar.gz.
File metadata
- Download URL: qphelper-0.0.6.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c7628373489f781b30e88f2c316dce35427b2a62c43650b83623f9e08ff6964
|
|
| MD5 |
245ee50c94efc4e26b9cd6278b4bfbdf
|
|
| BLAKE2b-256 |
acb9156a7c20e44613524896a02373284e0d0249c69ff21a1b56c5cb631fe3da
|
File details
Details for the file qphelper-0.0.6-py3-none-any.whl.
File metadata
- Download URL: qphelper-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91ad9cf6d5a8cbe0f29bf55cc20511de5ab411fedfd3d6c2ace879b123da2d18
|
|
| MD5 |
48a9a6cf19c1a55508655141925af029
|
|
| BLAKE2b-256 |
aa74feadf719f4051243f59005ffe3d898d253bc943d86ff30e634057770531d
|