https://github.com/atsushisakai/pyqp
Simple quadratic programming solver only using numpy.
https://github.com/atsushisakai/pyqp
Last synced: 4 months ago
JSON representation
Simple quadratic programming solver only using numpy.
- Host: GitHub
- URL: https://github.com/atsushisakai/pyqp
- Owner: AtsushiSakai
- License: mit
- Created: 2016-12-28T19:39:13.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-13T06:49:51.000Z (almost 9 years ago)
- Last Synced: 2025-02-27T04:46:34.420Z (8 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyqp
[](https://travis-ci.org/AtsushiSakai/pyqp)
[](LICENSE)Simple convex quadratic programming solver
## Description
This is a simple and light-weight convex quadratic programming (QP) solver.
It only uses numpy and it is distributed as a single python file module.
## Install
Download this repository and import pyqp.py
## Usage
### solve_qp_with_ep_const

This function solves convex QP with only equallity constraints.
usage:
```python
P = np.matrix(np.diag([1.0, 0.0]))
q = np.matrix(np.array([3.0, 4.0]))
A = np.matrix([1.0, 1.0])
x = solve_qp_with_ep_const(P, q, A, b)
print(x)
```### others
See the test code in pyqp.py.
## Requirement
- numpy
## Licence
[MIT](https://github.com/tcnksm/tool/blob/master/LICENCE)
## Author
[AtsushiSakai](https://github.com/AtsushiSakai)