Visual walkthrough — LQG — LQR + Kalman filter, separation principle
3.5.36 · D2· Physics › Guidance, Navigation & Control (GNC) › LQG — LQR + Kalman filter, separation principle
Yeh parent LQG note ka pictures-first companion hai. Hum assume karte hain ki aapne State-space Representation aur LQR — Linear Quadratic Regulator ke ideas sirf passing mein dekhe hain; jo chahiye woh hum yahan rebuild karenge.
Step 1 — "State" aur "control" actually dikhte kaise hain
Isko term by term padhte hain, bilkul wahin jahan har symbol baitha hai:
- — dot ki velocity (har second mein kitna change hota hai). Overdot matlab "rate of change".
- — drift: dot ki natural tendency. Agar toh dot apne aap zero se door bhaagta hai (unstable — ise madad chahiye).
- — hamara influence: knob dot ko kitni strongly move karta hai. knob ka "leverage" hai.
WHY yahan se start karein? Neeche sab kuch is dot ko control karne aur dekhne ke baare mein hai. Agar aap dot, arrows, aur yeh dekh sako ki hum use kahan le jaana chahte hain (origin), toh aap poori derivation follow kar sakte ho.
PICTURE: dot position par, ek red drift arrow use baahir push kar raha hai, ek lavender control arrow jise hum aim kar sakte hain.

Step 2 — Hum "badness" ko bowl se kyun measure karte hain
Term by term:
- — squared position error. Squaring se yeh hamesha positive rehta hai aur badi errors ko disproportionately punish karta hai. yeh hai ki hum accuracy ki kitni parwah karte hain.
- — squared effort. yeh hai ki hum fuel/energy bachane ki kitni parwah karte hain.
WHY squares, aur nahi? Do reasons, dono visual. (1) Square ek smooth bowl hai — uska ek hi lowest point hai aur koi sharp corners nahi, isliye calculus slope ko zero set karke bottom dhundh sakta hai. (2) Quadratic bowl ka bottom ek straight-line feedback rule se reach hota hai — optimal knob simply ke proportional nikalta hai. Koi aur penalty shape woh clean linear answer tod deti hai. Tool ka yeh choice (quadratic) apne diye hue answer se earn hoti hai.
PICTURE: do parabolic bowls — coral mein position bowl, mint mein effort bowl — aur unka sum, ek wide bowl jiske bottom par hum baithna chahte hain.

Step 3 — Cost-to-go: future ki shape ka andaza
WHY guess karein ki yeh bhi bowl hai? Running penalty bowl hai (), physics linear hai, toh yeh bahut reasonable guess hai ki accumulated penalty bhi bowl hogi:
- — ek single positive number jo future-cost bowl ki steepness set karta hai. Zyada = off-target start karne ki zyada cost.
"Ek form guess karo, phir verify karo ki woh equation satisfy karta hai" — yahi Bellman method hai. Is bowl ka slope hai — ek line mein hume woh slope chahiye hoga.
PICTURE: cost-to-go bowl , aur current dot par tangent arrow ke roop mein local slope drawn hai.

Step 4 — Future ko balance karna: Bellman/HJB condition
Naye piece ko padho: future-cost bowl ka slope hai (Step 3), aur dot ki velocity hai (Step 1). Unka product yeh hai ki dot move karte waqt aapki remaining future cost kitni tezi se gir rahi hai. Balance = dono effects optimum par cancel ho jaate hain.
Knob pe minimize karo — sab kuch mein bowl ki tarah treat karo aur slope zero set karo:
- (scalar; general mein ) — feedback gain, yahan se janam leta hai.
- Minus sign hi poora point hai: agar dot right drift kare, left push karo. Yeh negative feedback hai.
PICTURE: mein effort-versus-future bowl, uska minimum marked, aur resulting rule "u equals minus K times x" ek slanted feedback line ke roop mein dikhaya gaya hai.

Step 5 — Loop band karna, aur Riccati equation
Term by term (scalar CARE):
- — future cost mein drift ka contribution (general mein ).
- — optimal push kitna buyback karta hai (general mein ). Subtract isliye hai kyunki control cost reduce karta hai.
- — unavoidable running penalty.
solve karo, read karo, aur controlled dot ab yeh obey karta hai: Agar toh dot zero par decay karta hai — stable. Yahi poora LQR result hai.
PICTURE: unstable open-loop trajectory (bhaagta hua) vs closed-loop trajectory (, decay karta hua), same starting dot.

Step 6 — Lekin hum dot dekh nahi sakte: predict + correct
- — estimate; ek doosra dot jo real wale ke peechhe bhaagta hai.
- — innovation, woh surprise: measured minus expected. Zero surprise = koi correction nahi chahiye.
- — Kalman gain: surprise ki taraf kitna jump karna hai. Sensors par zyada trust ⇒ zyada .
PICTURE: true dot (coral) fog band ke peechhe chhupa hua; estimate dot (lavender) aage predict kar raha hai, phir ek correction arrow use noisy measurement tick ki taraf kheench raha hai.

Step 7 — Error dot aur sundar duality
Padho: gap apne aap sickta hai agar , lekin process noise aur filtered sensor noise se constantly kick milti hai.
Ab ki shape dekho. Controller ke se compare karo:
| Regulator | Estimator |
|---|---|
| , |
Yeh same algebra hai substitution ke saath. Toh ek dual Riccati Equation se aata hai, aur poora Kalman Filter design, LQR design hai jo mirror mein dekh raha hai. (Yeh observability side hai jo controllability side ko mirror kar rahi hai.)
PICTURE: error dot decay karta hua ke under, side-by-side mirrored state dot ke saath jo ke under decay kar raha hai.

Step 8 — Dono ko jodna: block-triangular matrix
Chaar blocks padho:
- Top-left — controller dynamics (Step 5).
- Bottom-right — estimator dynamics (Step 7).
- Top-right — leak: estimation error true state ko distort karta hai. (Noise abhi bhi cost karta hai — separation design ke baare mein hai, zero cost ke baare mein nahi.)
- Bottom-left — hero. Error pure physics se evolve karta hai; controller gain use corrupt nahi kar sakta.
WHY zero important hai: neeche diagonal ke zero wali block matrix upper-triangular hoti hai, aur upper-triangular block matrix ke eigenvalues sirf diagonal blocks ke eigenvalues hote hain: Controller poles aur estimator poles kabhi mix nahi karte. Har ek akela design karo; union simply kaam karta hai. Yahi Separation Principle hai.
PICTURE: block matrix chaar tiles ke roop mein drawn, bottom-left tile ek glowing zero, arrows dikhate hain "error → state" (leak) lekin koi arrow nahi "state → error".

Step 9 — Edge cases jinpar kabhi mat trip karo
Degenerate limits (inhe pehle wale figures par padho):
- (perfect sensor): large, estimate truth par snap ho jaata hai, LQG LQR.
- (useless sensor): , filter ko ignore karta hai aur akele model par trust karta hai.
- (perfect model): filter bhi model par lean karta hai; error fast decay karta hai.
- (accuracy free): , kuch mat karo — correct karne ko kuch nahi.
- (fuel priceless): phir — kabhi push mat karo.
PICTURE: ek 2-D map, horizontal axis = trust-in-sensor (small ), vertical = trust-in-model (small ), chaar corner behaviours labelled ke saath.

Ek-picture summary
Do independent bowls (ek control ke liye, ek estimation ke liye) do gains produce karte hain (, ); block-triangular matrix apne corner zero ke saath unhe bina interference ke fuse karta hai.

Recall Feynman retelling — ek story ki tarah bolo
Ek line par ek dot hai jo apne aap door bhaagta hai, aur mere paas ek knob hai use wapas dhakeline ke liye. Main "badness" define karta hoon — far-off-squared plus push-squared — ek bowl — kyunki bowls ka ek bottom hota hai aur calculus usse dhundhta hai. Bottom tak rolling mujhe batati hai: kitna door ho usi proportion mein push karo, strength se. Yahi LQR half hai.
Lekin main dot dekh nahi sakta; main uski ek foggy, noisy shadow dekhta hoon. Toh main ek doosra dot chalata hoon, mera guess, jo physics se predict karta hai aur phir fog jo dikhata hai uski taraf jump karta hai, jump-size ke saath. choose karna ek same bowl problem hai mirror mein dekha hua — yahi Kalman half hai.
Ab trick: main apna guess knob mein feed karta hoon. Jab main real dot aur guessing-error ko side by side stack karta hoon, toh equation mein bottom-left corner mein ek zero hota hai — kyunki mera knob dot ko shove kar sakta hai lekin woh kabhi error ke heal hone ke tarike ko mess up nahi kar sakta. Iss zero wali matrix ke poles sirf controller ke plus estimator ke hote hain, kabhi tangle nahi hote. Toh dono halves akele design karo aur glue karo — optimal. Sirf ek price: error abhi bhi dot mein leak hoti hai (top-right block), toh noise abhi bhi cost karta hai, aur koi free robustness nahi mili — isliye LQG/LTR exist karta hai.
Recall Quick self-test
Optimal control state mein linear kyun hai? ::: Kyunki cost aur cost-to-go quadratic bowls hain, aur mein quadratic ka bottom ka linear function hai. Stacked matrix ki kaunsi single feature separation prove karti hai? ::: Bottom-left block mein zero (upper-triangular ⇒ eigenvalues diagonal blocks ka union hain). Kya separation ka matlab hai noise performance ko hurt nahi karta? ::: Nahi — leak error ko state mein inject karta hai, toh LQG cost ideal LQR cost se zyada hoti hai. Jab sensor noise , LQG ka kya hota hai? ::: Kalman gain badhta hai, estimate truth par snap ho jaati hai, aur LQG reduce ho jaata hai LQR mein.
See also: LQG — LQR + Kalman filter, separation principle · LQR — Linear Quadratic Regulator · Kalman Filter · Riccati Equation · Dynamic Programming and Bellman Equation · Controllability and Observability · LQG-LTR Loop Transfer Recovery · H-infinity Control