Giter Site home page Giter Site logo

lxjlu / casadi_mpc_mhe_python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomcattiger1230/casadi_mpc_mhe_python

0.0 0.0 0.0 2.47 MB

This repository is an implementation of the work from Mohamed W. Mehrez. I convert the original code in MATLAB to the Python

Python 100.00%

casadi_mpc_mhe_python's Introduction

CasADi_MPC_MHE_Python

This repository is an implementation of the work from Mohamed W. Mehrez. I convert the original code from MATLAB to the Python. His videos can be found in Youtube list, and his codes in MATLAB are given in his github.

Environments

  • python 3.8 (it should work up 3.5 or 2.7)
  • CasADi == 3.5.1

Some notations

  1. The file name ended with 'opt' using the API from casadi.Opti() to solve the problem.
  2. The file name ended with 'struct' using the casadi.tools API to form the problem.
  3. The file name without special indication indicates the default SX is utilized.
  4. Basically one can also use MX to form the problem. However, with my tests, SX has better performance (in speed) than MX.

Summary

The SX based versions have similar performance, and require less computation time compared with opti version, which is based on MX structure. However, different implementation approaches have also different matrix/vector definitions, which one should program it carefully especially by the constraint definition. Opti version has the most intuitional definition which is easy to read and handle.

casadi_mpc_mhe_python's People

Contributors

tomcattiger1230 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.