RepositoryMATLAB
junhengl

junhengl/Cart_Pole_Simulink

Optimal Control Strategies on Cart-pole System in Simscape Multibody Simulation

168stars
27forks
0issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: lstm

#1 Repository of the month

1
TINIX TRENDING·Topic: nmpc

#1 Repository of the month

1
TINIX TRENDING·Topic: supervised-learning

#1 Repository of the month

Cart_Pole_Simulink

Optimal Control Strategies on Cart-pole System in Simscape Multibody Simulation

My video tutorials are available on Bilibili.com. (will add English subs asap)

Part 1: building cart-pole simulation with Simscape multibody library.

https://www.bilibili.com/video/BV19M4y1E799/?spm_id_from=333.999.0.0

Part 2: deriving cart-pole dynamics, linearization, and LQR control implementation.

https://www.bilibili.com/video/BV1AF411R7T6/?spm_id_from=333.999.0.0

Part 3: implementing full dynamics Nonlinear MPC in matlab for cart-pole system with CasADi.

https://www.bilibili.com/video/BV1gu411j7ZV/?spm_id_from=333.999.0.0

Part 4: learning a regression model for NMPC via LSTM neural network in matlab.

https://www.bilibili.com/video/BV1UV4y1478M/?spm_id_from=333.999.0.0

Simulation Guide

  1. Download all files in this repo
  2. Download CasADi Library for Matlab, for your system
  3. In Matlab, add files from step 1&2 to path, including subfolders
  4. Open Cart_Pole.slx, this is main simulation
  5. Open and run startUp.m
  6. Configure your controller in startUp and simulink model and run the simulation.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026
RepositoryPython
Bharath2/iLQR

iterative Linear Quadratic Regulator with support for constraints on input and state variables via barrier functions—Numba-accelerated.

258
Nov 8, 2026
RepositoryPython
ohtsukalab/autogenu-jupyter

An automatic code generator for nonlinear model predictive control (NMPC) and the continuation/GMRES method (C/GMRES) based numerical solvers for NMPC

179
Sep 11, 2026
RepositoryHTML
mathworks/Quadcopter-Drone-Model-Simscape

Quadcopter with multibody, electrical and thermal models follows a path to deliver a package.

135
May 18, 2026
RepositoryPython
pytorch/pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

105.8k
Dec 1, 2026
RepositoryC++
tesseract-ocr/tesseract

Tesseract Open Source OCR Engine (main repository)

77.8k
Dec 3, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
156.6M
Jun 1, 2026
RepositoryMATLAB
mathworks/awesome-matlab-students

An awesome list of helpful resources for students learning MATLAB & Simulink. List includes tips & tricks, tutorials, videos, cheat sheets, and opportunities to learn MATLAB & Simulink.

780
Nov 17, 2026
RepositoryMATLAB
mohammadrezwankhan/matlab-simulink-energy-lab

Run reduced-order battery, thermal, converter and BESS control models with transparent equations and repeatable testing.

383
Nov 23, 2026