PyAdvancedControl
Python codes for advanced control
Install / Use
/learn @AtsushiSakai/PyAdvancedControlREADME
PyAdvancedControl
Python Codes for Advanced Control
Dependencies
-
Python 3.7.x
-
cvxpy 1.0.x
-
ecos 2.0.7
-
cvxopt 1.2.x
-
scipy 1.1.0
-
numpy 1.15.0
-
matplotlib 2.2.2
lqr_sample
This is a sample code of Linear-Quadratic Regulator
This is LQR regulator simulation.

This is LQR tracking simulation.

finite_horizon_optimal_control
This is a finite horizon optimal control sample code

mpc_sample
This is a sample code of a simple Model Predictive Control (MPC) regulator simulation

mpc_tracking
This is a sample code of a Model Predictive Control (MPC) traget tracking simulation
![]()
mpc_modeling
This is a sample code for model predictive control optimization modeling without any modeling tool (e.g cvxpy)
This means it only use a solver (cvxopt) for MPC optimization.
It includes two MPC optimization functions:
1 opt_mpc_with_input_const()
It can be applied input constraints (not state constraints).
2 opt_mpc_with_state_const()
It can be applied state constraints and input constraints.
This figure is a comparison of MPC results with and without modeling tool.

inverted_pendulum_mpc_control

This is a inverted pendulum mpc control simulation.
tools
c2d
This is a API compatible function of MATLAB c2d function.
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
109.8kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
349.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
