GithubHelp home page GithubHelp logo

minzlee / w25-1-mpc-cbf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hybridrobotics/mpc-cbf

0.0 0.0 0.0 16.2 MB

"Safety-Critical Model Predictive Control with Discrete-Time Control Barrier Function" by J. Zeng, B. Zhang and K. Sreenath https://arxiv.org/abs/2007.11718

License: MIT License

w25-1-mpc-cbf's Introduction

Status: This repository is archived. For latest work about discrete-time CBF, please refer to the collection repository.

MPC-CBF

We propose a control framework which unifies the model predictive control and control barrier functions, where terminal cost function serves as control Lyapunov functions for stability. This is the reference implementation of our paper:

Safety-Critical Model Predictive Control with Discrete-Time Control Barrier Function

PDF | Code: Double Integratror | Code: Car Racing

Jun Zeng, Bike Zhang and Koushil Sreenath

Citing

If you find this project useful in your work, please consider citing following work:

@inproceedings{zeng2021mpccbf,
  title={Safety-critical model predictive control with discrete-time control barrier function},
  author={Zeng, Jun and Zhang, Bike and Sreenath, Koushil},
  booktitle={2021 American Control Conference (ACC)},
  year={2021},
  volume={},
  number={},
  pages={3882-3889}
}

For analysis of feasibility, safety and computational complexity, please check out the following paper:

@inproceedings{zeng2021mpccbf-feasibility,
  title={Enhancing feasibility and safety of nonlinear model predictive control with discrete-time control barrier functions},
  author={Zeng, Jun and Li, Zhongyu and Sreenath, Koushil},
  booktitle={2021 Conference on Decision and Control (CDC)},
  year={2021},
  volume={},
  number={},
  pages={6137-6144}
}

Instructions

The 2D double integrator is assigned to reach the target position at origin while avoiding obstacles. We have three classes for different controllers: DCLFDCBF.m (DCLF-DCBF), MPCCBF.m (MPC-CBF) and MPCDC (MPC-DC), respectively.

Moreover, to illustrate the performance among them, we have:

  • test.m: Run DCLF-DCBF/MPC-CBF/MPC-DC respectively.
  • testGamma.m: Run analysis for different hyperparameter $\gamma$.
  • testHorizon.m: Run analysis for different horizon.
  • testBenchmark.m: Run analysis for some benchmark.

We illustrate the performance between DCLF-DCBF/MPC-DC/MPC-CBF

DCLF-DCBF MPC-DC (N=8)
MPC-CBF (N=1) MPC-CBF (N=8)

and also the safety performance for different numbers of horizon and hyperparameters

Different hyperparameter Different horizon

Dependencies

The packages needed for running the code are Yalmip and IPOPT.

We also provide the zipped version of precompiled .mex files for IPOPT in the folder packages in case you don't have it. Unzip that file and add those .mex files into your MATLAB path.

w25-1-mpc-cbf's People

Contributors

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