Giter Site home page Giter Site logo

lxjlu / ocpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arcuma/ocpy

0.0 0.0 0.0 696 KB

Optimal control solver implemented in Python. SymPy for symbolic differentiation and Numba for fast computation.

License: MIT License

Python 96.84% Jupyter Notebook 3.16%

ocpy's Introduction

ocpy

Overview

Optimal control problem (OCP) solver implemented in Python.

  • DDP (Differential Dynamic Programming)
  • iLQR (iterative Linear Quadratic Regulator)
  • Riccati Recursion

are currently implemented.

Requirements

  • Python3
    • SymPy
    • NumPy
    • SciPy
    • Numba
    • Matplotlib
    • seaborn

Usage

  1. Clone or Download.

    git clone https://github.com/arcuma/ocpy.git

    or "Code" >> "Download ZIP" on this page.

  2. Install Requirements.

    pip3 install -r requirements.txt
  3. Run examples or formulate your own problem.

Examples

In /examples/,

  • LQR
  • cartpole
  • hexacopter
  • pendubot

cartpole hexacopter pendubot

References

  1. D. H. Jacobson and D. Q. Mayne, Differential Dynamic Programming, Elsevier, 1970.

  2. Y. Tassa, T. Erez and E. Todorov, Synthesis and stabilization of complex behaviors through online trajectory optimization, 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 4906-4913, 2012.

  3. S. Katayama, Fast Model Predictive Control of Robotic Systems with Rigid Contacts. Kyoto University, 2022.

  4. J. Nocedal and S.J. Wright, Numerical Optimization (2nd ed.). Springer, 2006.

ocpy's People

Contributors

arcuma avatar

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.