michalnand / libs_control

python lib for linear quadratic control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libs_control

  • linear controllers from scratch
  • based on solving Riccati equation
  • LQR, LQR+integral action, LQG+integral action

diagram

diagram

diagram

diagram

  • classical inverted pendulum problem
  • goal is to control angle, position and steering

diagram

diagram

diagram

diagram

  • this great challenging test is taken from www.do-mpc.com
  • goal is to control position of wheels

diagram

diagram

diagram

diagram

LQR controller

diagram

basic minimal tutorial for 2nd order servo : 01_lqr_servo.ipynb

LQR with integral action controller

  • completly removes any constant disturbance

diagram

basic minimal tutorial for 2nd order servo : 02_lqr_integral_action_servo.ipynb

LQG controller

  • dont require observing fully state
  • uses Kalman filter to estimate x, from y, and u, and also provides denoising

diagram

basic minimal tutorial for 2nd order servo : 03_lqg_servo.ipynb

sparse model identification

model_matrix

04_sparse_model_identification.ipynb

TODO

About

python lib for linear quadratic control

License:MIT License


Languages

Language:Python 77.5%Language:C++ 19.0%Language:C 3.5%