Giter Site home page Giter Site logo

rssalessio / pydeepc Goto Github PK

View Code? Open in Web Editor NEW
49.0 1.0 13.0 241 KB

Python library that implements DeePC: Data-Enabled Predictive Control

License: MIT License

Python 100.00%
data-driven-control data-driven-mpc mpc deepc adaptive-control data-driven model-free-control data-enabled-predictive-control python

pydeepc's Issues

Update Hankel Matrix and low rank approximation

Describe the bug
I have a couple of questions:

  1. The Hankel matrix is updating with the new data ? I saw in the code and it looks like that the Hankel matrix and the Up, Uf, Yp, Yf are not updating.
  2. The Low rank matrix approximation function is not used ?
  3. Finally, you may have an example of a MIMO system. The example you have for the two tanks is a plat with just one input and one output.

Thank you in advance.

Bug of the cvxpy variables with cp.reshape

Describe the bug
There is a small issue in deepc.py lines 139 and 140 with the following lines:
u = cp.reshape(u, (self.horizon, self.M))
y = cp.reshape(y, (self.horizon, self.P))
This may lead to a bug in the constraints when using multiple inputs or outputs, because the cp.reshape is Fortran type by default.

To Fix
This can be fixed by simply forcing the C type reshape as follows:
u = cp.reshape(u, (self.horizon, self.M), 'C')
y = cp.reshape(y, (self.horizon, self.P), 'C')

** Other comments**
Please do more tests if you can to make sure the reshape doesn't affect other things in the code.

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.