GithubHelp home page GithubHelp logo

fanjing1112 / mpclib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michele-segata/mpclib

0.0 0.0 0.0 342 KB

A C++ library for solving Model Predictive Control problems

License: Other

CMake 1.40% R 0.51% C++ 97.79% Shell 0.31%

mpclib's Introduction

MPCLib

MPCLib is a C++ library that solves Model Predictive Control problems. It can also be used to solve strictly convex quadratic minimization problems by using the embedded QuadProg++ library.

The library defines a very simple interface that can be used to enable control and output constraints, slack variables, minimization weights, etc. In turn, the MPC interface uses the QuadraticProblem and the Constraint classes to easily define constraints and add them to the minimization problem.

Please be aware that this software is still in its early life. It works fine but it is not complete. The software still doesn't provide useful errors or exceptions when something is misconfigured. The project will be updated over time. Feel free to contribute.

Building and running the sample application

The project is cmake based. To build it simply type

mkdir build
cd build
cmake ..
make

To run some tests and generate some plots simply run test-mpc.sh in the main folder. The script runs 6 different tests producing csv files as output. If you have R installed, the script will also plot the results. For more formal information on the problem the library solves and on the examples please refer to the PDF in the doc folder.

Included software

The library includes other open source software (please see the LICENSE file):

  • QuadProg++: this is the library that solves the quadratic optimization problem;
  • TCLAP: this is a command line arguments parsing library that is used in the sample program;

Contribution

Copyright (C) 2017 Michele Segata

mpclib's People

Contributors

harrysummer avatar liuq avatar michele-segata 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.