Skip to main content

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.5.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qphelper-0.0.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file qphelper-0.0.5.tar.gz.

File metadata

  • Download URL: qphelper-0.0.5.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

Hashes for qphelper-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5f22443a829db3c76d3009e7093828f00d2a4990dc7c66fbdac3e153a099869b
MD5 f597aeb0b461d39b3f9c2d16b5c6169c
BLAKE2b-256 08dcd5ac6e16f9ccf626304ebe746c254addacdaafb36bf07304eb42dd2e2cd2

See more details on using hashes here.

File details

Details for the file qphelper-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: qphelper-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for qphelper-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5a11ca0b39ac1138a86e76bc4ea161827ca17c204ec18e3cf20ebd4945e408ac
MD5 31e70c82109c9887aa1b9fb8a155471d
BLAKE2b-256 53d29bb2697160d5669a552f2203ae9d3a0cbce1f9b9b7b726b0a3736ae117d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page