Git Product home page Git Product logo

cgmres's Introduction

Introduction

This project provides Continuation/GMRES method (C/GMRES method), a fast algorithm of NMPC, and the multiple shooting based C/GMRES method.

Requirement

  • C++11
  • Cmake
  • Eigen 3
  • Python3, numpy, seaborn (for plotsim.py and 2linkanimation.py)
  • ffmpeg (to save animations generated by 2linkanimation.py)

install

mkdir -p ~/mayataka/cmgres && cd ~/mayataka/cmgres && git init
git remote add gh [email protected]:benjaminabruzzo/CGMRES.git && git pull gh master && git fetch gh

Usage

After setting the parameters of your model of NMPC in nmpc_model.hpp, writing equations in nmpc_model.cpp, and setting simulation conditions in main.cpp, build files as follows:

$ mkdir build
$ cd build
$ cmake ..
$ make

After performing a numerical simulation, you can see graphs by

$ python3 plotsim.py example

save graphs by

$ python3 plotsim.py example save example

see an animation of 2link robot by

$ python3 2linkanimation.py example

and save its animation by

$ python3 2linkanimation.py example save example

mkdir -p ~/mayataka/cmgres && cd ~/mayataka/cmgres && git init

References

  1. T. Ohtsuka A continuation/GMRES method for fast computation of nonlinear receding horizon control, Automatica, Vol. 40, No. 4, pp. 563-574 (2004)
  2. C. T. Kelly, Iterative methods for linear and nonlinear equations, Frontiers in Apllied Mathematics, SIAM (1995)
  3. Y. Shimizu, T. Ohtsuka, M. Diehl, A real‐time algorithm for nonlinear receding horizon control using multiple shooting and continuation/Krylov method, International Journal of Robust and Nonlinear Control, Vol. 19, No. 8, pp. 919-936 (2008)

cgmres's People

Contributors

mayataka avatar benjaminabruzzo avatar

Stargazers

 avatar  avatar Dmitri avatar Nikilesh Ramesh avatar  avatar Yang Liu avatar  avatar

Watchers

James Cloos 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.