A library to assemble OCPs from modules
Project description
ocp-modules
This library provides a set of modules to assemble optimal control problems (OCPs) by generating symbolic expressions based on casadi_.
Installation
For Users
ocp-modules is (SOON) available via `pip`:
.. code-block:: bash
pip3 install --user ocp-modules
For Developers
-
Install :code:
setuptoolsand :code:virtualenv:.. code-block:: bash
pip3 install --user setuptools virtualenv -
Create a new virtual environment in the folder
venvand source it:.. code-block:: bash
git clone <this_repo> cd <this_repo> python3 -m virtualenv venc source ./venv/bin/activate -
Install ocp-modules via symlink into the virtual environment
.. code-block:: bash
cd <this_repo> pip3 install -e .
A note regarding CasADi
Casadi can make use of proprietary solvers such as HSL_MA57_ Follow the instructions
obtaining_HSL_ to install them and modify the solver options to use the built-in default.
Common issues with HSL solvers:
* Cannot find :code:`libhsl.so`. In this case, manually create a symlink :code:`libcoinhsl.so` ->
:code:`libhsl.so` in :code:`/usr/lib`
* Failed to load :code:`libmetis.so`: It is hard to get a working instance of metis (the version packaged
in Ubuntu 18.04 is not compatible). It seems to work without, but spams into stdout.
Running the examples
--------------------
Run examples via:
.. code-block:: bash
./examples/<folder>/<script>.py
.. _casadi: https://web.casadi.org/
.. _sphinx: docs/build/html/index.html
.. _HSL_MA57: http://www.hsl.rl.ac.uk/catalogue/ma57.html
.. _obtaining_HSL: https://github.com/casadi/casadi/wiki/Obtaining-HSL>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 ocp-modules-0.1.2a0.tar.gz.
File metadata
- Download URL: ocp-modules-0.1.2a0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaabb3c37f51b14c4f304b3d51b588e045eaea156da17e3e5d9b0df661bdce83
|
|
| MD5 |
0988fd27b7b0e246af01f53262ce2347
|
|
| BLAKE2b-256 |
447d411e08500979283169262281a0acf9be10dacd44e86d1d3fae3d9c562e0a
|
File details
Details for the file ocp_modules-0.1.2a0-py3-none-any.whl.
File metadata
- Download URL: ocp_modules-0.1.2a0-py3-none-any.whl
- Upload date:
- Size: 34.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
221a67550f1caaa9aaf5472cb048e2848542f5119cdfb496ced9bd714b88e89e
|
|
| MD5 |
af9b12c3b996b9fa3e14a596e2dc566f
|
|
| BLAKE2b-256 |
3b0976e43d46b6bf19d853e80f8ab4ee4b7c64fabdea01d4e3651e435a3b981b
|