Design an optimal state-feedback controller for a simple state-space system. Tune the state penalty Q and control penalty R,
compute the gain K, and compare open-loop versus closed-loop response.
What this tool computes
Linear Quadratic Regulator control is a modern-control method that chooses feedback gains by balancing state error
against control effort. It is a natural next step after PID because it handles multi-state systems systematically.
State feedback gain \(K\)
Closed-loop matrix \(A-BK\)
Approximate closed-loop eigenvalues
Open-loop versus closed-loop response
Control signal history
Trade-off between state penalty and control effort