diff --git a/README.md b/README.md index 14e6823..34f563e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,13 @@ $$\exists u\in\mathcal{U} \begin{cases}L_fV(x)+L_gV(x)u\leq -\kappa_VV(x)\\ We will certify and synthesize such compatible CLF and CBFs through Sum-of-Squares optimization. # Getting started -After installing all the dependencies in `requirements.txt`, please make sure that you can use Mosek solver. Please set the environment variable that points to the Mosek license as +## Installation +Run +``` +$ pip install -e . +``` +to install the dependencies and the package. +After the installation, please make sure that you can use Mosek solver. Please set the environment variable that points to the Mosek license as ``` export MOSEKLM_LICENSE_FILE=/path/to/mosek.lic ``` diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..fee15bf --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +from setuptools import setup, find_packages + +# Read the contents of requirements file +with open('requirements.txt') as f: + requirements = f.read().splitlines() + +setup( + name="compatible_clf_cbf", + version="0.1", + packages=find_packages(), + install_requires=requirements, +)