Linear Quadratic Regulator (LQR) — Riccati equation, optimal gains
3.5.35· Physics › Guidance, Navigation & Control (GNC)
KYA hai problem?
YE cost kyun? Ye engineering trade-offs ka steel-man hai. Error ko instantly zero nahi kar sakte — uske liye infinite control chahiye. Saara fuel bhi nahi bacha sakte — system drift karega. Quadratic form ka integral in dono ke beech trade karne ka sabse smooth tarika hai, aur quadratics math ko closed form mein solvable banate hain.
Quadratic kyun ( ya nahi)? Kyunki linear plant + quadratic cost ke saath, optimal control state mein linear nikalta hai (). Yahi magical combination hai: Linear + Quadratic → Linear controller.
KAISE: Optimal control first principles se derive karo
Hum dynamic programming / value function (Hamilton–Jacobi–Bellman) use karte hain.
Step 1 — Value function guess karo
State se optimal "cost-to-go" define karo:
(jahan ) guess kyun karte hain? Kyunki cost quadratic hai aur dynamics linear, isliye cost-to-go bhi ek quadratic form hona chahiye — koi linear ya constant term nahi hoga ( pe cost 0 hai), aur linear dynamics mein koi higher power survive nahi karti.
Step 2 — HJB equation likho
Bellman principle kehta hai: optimum pe, instantaneous cost plus cost-to-go ki rate of change zero hoti hai: ke saath, hai, toh:
Step 3 — ke upar minimize karo (isse gain milta hai)
lo aur zero set karo:
Ye step kyun? Bracket mein convex hai (kyunki ), isliye stationary point global minimum hai. Solve karne pe:
Step 4 — wapas substitute karo → Riccati equation
ko HJB bracket mein daalo. Note karo aur . Ye combine hokar dete hain: Ye sabhi ke liye hold karna chahiye, isliye brackets mein matrix zero hai:
"Algebraic" kyun hai? Infinite-horizon steady state mein hota hai, isliye differential Riccati equation collapse hokar is algebraic wale mein aa jaati hai. Nonlinear kyun? Term mein quadratic hai.
Worked Example 1 — Scalar system (poora haath se karo)
Plant: jahan scalars hain; cost weights .
Riccati (scalars):
Kyun? ; ; add karo.
ke liye quadratic solve karo (positive root lo, kyunki ): Positive root kyun? ek cost hai — non-negative hona chahiye; sirf root deta hai.
Gain: . Closed loop: .
Stability check: hamesha, toh controller hamesha stabilize karta hai chahe open-loop plant unstable ho ().
Numbers: (unstable!), , , : Stable. ✔
Worked Example 2 — Double integrator (ek real GNC case)
Ek satellite axis: position , velocity , control acceleration :
Maano . CARE expand karo. Key equations:
Gain:
Ye kyun important hai: exactly ek PD controller hai! Pehla gain position pe act karta hai (spring), doosra velocity pe (damper). LQR ne PD control optimally derive kar diya. ke saath: , closed-loop poles pe aate hain — ek achha damped response (damping ratio ).
Recall Feynman: 12-saal ke bachche ko explain karo
Socho ek hilaate-huye shopping cart ko kisi jagah steer karna. Jagah se door hona irritating hai (yahi hai), lekin cart ko bahut zyada push karna tiring aur jerky hai (yahi hai). LQR har situation ke liye perfect amount of push figure out karta hai taaki tum smoothly pahuncho bina khud ko thakaye. Aur amazing baat ye hai: perfect rule simply ye hai ki "jitna door ho utna hi push karo" — ek recipe () jo har jagah kaam aati hai. Riccati equation woh puzzle hai jo tum ek baar solve karke woh recipe paate ho.
Active Recall
LQR kaunsi cost minimize karta hai?
Optimal LQR control law kya hai?
Continuous-time Algebraic Riccati Equation batao.
Optimal controller x mein linear kyun hai?
Kaunsa Riccati root lete hain?
R badhane ka effect?
Q badhane ka effect?
R positive definite kyun hona chahiye (sirf PSD nahi)?
Stabilizing LQR solution guarantee karne ki conditions?
Double integrator ke liye LQR kaunsa classical controller reproduce karta hai?
Optimal value (cost-to-go) function kis form mein hoti hai?
Riccati equation kahaan se aati hai?
Connections
- Hamilton-Jacobi-Bellman Equation — LQR iski sabse clean closed-form solution hai.
- Controllability and Observability — valid stabilizing ke liye zaroori hai.
- Pole Placement — LQR ka alternative; LQR optimally poles place karta hai.
- Kalman Filter — dual Riccati equation; combine karo → LQG Control.
- PID Controllers — LQR optimally PD gains generalize/derive karta hai.
- Lyapunov Stability — closed loop ke liye Lyapunov function hai.
- State-Space Representation — ki foundation.