Giter Site home page Giter Site logo

ocp-modules's Introduction

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:

pip3 install --user ocp-modules

For Developers

  1. Install setuptools and virtualenv:

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

    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

    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 libhsl.so. In this case, manually create a symlink libcoinhsl.so -> libhsl.so in /usr/lib
  • Failed to load 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:

./examples/<folder>/<script>.py

ocp-modules's People

Contributors

schlagenhauf avatar

Watchers

 avatar

ocp-modules's Issues

Implement Affine Constraints

Required to implement constraints resulting from linearization, should take the form

or

and

or (and this is the most flexible and general version

where and are constant

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.