A collection of simple nonlinear dynamical systems with linear quadratic control
- Tweak
settings.py
- Run
main.py
- Systems are defined in
systems.py
- System definitions consist of
dynamics
function, a differentiable nonlinear map n+m → n that governs deterministic continuous-time state transitionscost
function, a differentiable map n+m → 1 that governs the control objectivedisturbance
function, a map n+m → n that generates stochastic additive disturbancesx_eq_list
andu_eq_list
, lists of equilibrium states and inputs to cycle thrumake_artist_props
function, makes artist properties to draw the system in the current state-input configuration
- Dynamics are linearized and costs quadratized around the initial equilibrum point
- Steady-state LQR gain is designed on this basis
- Control inputs are generated to track the current equilibrium point