Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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
  1. Install :code:setuptools and :code:virtualenv:

    .. code-block:: bash

     pip3 install --user setuptools virtualenv
    
  2. Create a new virtual environment in the folder venv and source it:

    .. code-block:: bash

     git clone <this_repo>
     cd <this_repo>
     python3 -m virtualenv venc
     source ./venv/bin/activate
    
  3. 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>


Metadata

Release files for ocp-modules 0.1.2a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ocp-modules 0.1.2a0
File Size Uploaded
ocp-modules-0.1.2a0.tar.gz 31.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ocp-modules 0.1.2a0
File Interpreter ABI Platform
ocp_modules-0.1.2a0-py3-none-any.whl Python 3 none any Details

Total release size: 66.1 kB

Release files / ocp-modules-0.1.2a0.tar.gz

Download URL ocp-modules-0.1.2a0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eaabb3c37f51b14c4f304b3d51b588e045eaea156da17e3e5d9b0df661bdce83
BLAKE2b-256 checksum
How to use checksums
447d411e08500979283169262281a0acf9be10dacd44e86d1d3fae3d9c562e0a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ocp_modules-0.1.2a0-py3-none-any.whl

Download URL ocp_modules-0.1.2a0-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
221a67550f1caaa9aaf5472cb048e2848542f5119cdfb496ced9bd714b88e89e
BLAKE2b-256 checksum
How to use checksums
3b0976e43d46b6bf19d853e80f8ab4ee4b7c64fabdea01d4e3651e435a3b981b
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2a0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page