Skip to content

Commit f98ffa5

Browse files
committed
README rst->md with badges
1 parent 710a716 commit f98ffa5

File tree

4 files changed

+29
-45
lines changed

4 files changed

+29
-45
lines changed

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include README.rst LICENSE requirements.txt
1+
include README.md LICENSE
22
include src/osqp/tests/solutions/*.npz
33
recursive-include src/extension *
44
recursive-include src/osqp/codegen/pywrapper *

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[![PyPI version](https://badge.fury.io/py/osqp.svg)](https://badge.fury.io/py/osqp)
2+
[![Python 3.8‒3.13](https://img.shields.io/badge/python-3.8%E2%80%923.13-blue)](https://www.python.org)
3+
[![Build](https://github.com/osqp/osqp-python/actions/workflows/build_default.yml/badge.svg)](https://github.com/osqp/osqp-python/actions/workflows/build_default.yml)
4+
5+
# OSQP Python
6+
Python wrapper for [OSQP](https://osqp.org): The Operator Splitting QP solver.
7+
8+
The OSQP (Operator Splitting Quadratic Program) solver is a numerical
9+
optimization package for solving problems in the form
10+
11+
$$\begin{array}{ll}
12+
\mbox{minimize} & \frac{1}{2} x^T P x + q^T x \\
13+
\mbox{subject to} & l \le A x \le u
14+
\end{array}
15+
$$
16+
17+
where $\( x \in \mathbf{R}^n \)$ is the optimization variable and $\( P \in \mathbf{S}^{n}_{+} \)$ is a positive semidefinite matrix.
18+
19+
## Installation
20+
To install `osqp` for python, make sure that you're using a recent version of `pip` (`pip install --upgrade pip`)
21+
and then use ``pip install osqp``.
22+
23+
To install `osqp` from source, clone the repository (`git clone https://github.com/osqp/osqp-python`)
24+
and run `pip install .` from inside the cloned folder.
25+
26+
## Documentation
27+
The interface is documented [here](https://osqp.org/docs/interfaces/python.html).

README.rst

Lines changed: 0 additions & 43 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "scikit_build_core.build"
66
name = "osqp"
77
dynamic = ["version"]
88
description = "OSQP: The Operator Splitting QP Solver"
9-
readme = "README.rst"
9+
readme = "README.md"
1010
requires-python = ">=3.8"
1111
authors = [
1212
{ name = "Bartolomeo Stellato", email = "[email protected]" },

0 commit comments

Comments
 (0)