3.5.35 · D3 · HinglishGuidance, Navigation & Control (GNC)

Worked examplesLinear Quadratic Regulator (LQR) — Riccati equation, optimal gains

3,530 words16 min read↑ Read in English

3.5.35 · D3 · Physics › Guidance, Navigation & Control (GNC) › Linear Quadratic Regulator (LQR) — Riccati equation, optimal

Shuru karne se pehle, hum — general Riccati equation se, seedha is page pe — woh scalar formula dobara banate hain jis par hum baar baar bharosa karte hain, taaki neeche ka kuch bhi parent note ko yaad rakhne par depend na kare.


Scenario matrix

Har LQR problem inhi cells mein se kisi ek mein aata hai. Har column ek knob hai; har row us knob ki ek value hai. Neeche ke worked examples batate hain ki woh kaunse cell(s) mein aate hain.

Cell Plant ka sign / structure Weight regime Kya stress-test hota hai
A Scalar, stable () balanced baseline, positive root
B Scalar, unstable () balanced control ko stability banana padega
C Scalar, marginal () balanced integrator edge case
D Scalar cheap control limiting: gain blast ho jaata hai
E Scalar expensive control limiting: gain fade hota hai, plant pe depend karna padega
F 2-state double integrator vary LQR = PD, pole placement
G 2-state degenerate (rank-deficient) ki observability zaroori
H Any huge vs aggressiveness / sirf ratio ka rule
I Uncontrollable plant any recipe fails — pehchanna zaroori
J Word problem (satellite) design task spec ke liye choose karo

Ab hum A–J cover karte hain.


Worked examples

Example 1 — Cell A: stable scalar plant, balanced weights

Forecast: plant pehle se hi stable hai (). Kya tumhe lagta hai LQR phir bhi pole ko aur left mein kheenchega, ya chhodega? Padhne se pehle andaza lagao.

  1. Scalar Riccati likho. Ye step kyun? Humne upar derive kiya tha; bas substitute kiya.

  2. Quadratic solve karo, positive root rakho. likhte hain, toh . Positive root kyun? ek cost hai aur honi chahiye, isliye zaroori hai; doosra root negative hai aur reject ho jaata hai.

  3. Gain compute karo. .

  4. Closed-loop pole. .

Verify: open-loop pole tha ; closed loop hai , left half-plane mein aur andar. Toh LQR ek pehle se stable plant ko bhi thoda aur push karta hai — thoda control kharach karke thoda kam error karta hai. Sanity check: , stable. ✔


Example 2 — Cell B: unstable scalar plant

Forecast: ek unstable plant apne aap bhaag jaata hai. Kya ek fixed gain use control kar sakta hai, aur pole kitna left ja sakta hai?

  1. Numbers ke saath Riccati. . Standard quadratic form mein laane ke liye (positive leading coefficient), dono taraf se multiply karo: , phir se divide karo: . Ye manipulation kyun? se multiply karne par coefficient positive ho jaata hai toh quadratic formula saaf padhta hai; common factor se divide karne par numbers chhote ho jaate hain. Dono operations roots nahi badlte (ek equation "" ko nonzero constant se multiply karne par solutions waahi rehte hain).

  2. Positive root. . Positive root kyun? Cost non-negativity wahi hai; , doosra root reject ho jaata hai.

  3. Gain. .

  4. Closed loop. .

Verify: pe shuru hua (bhaag raha tha), pe khatam hua (decay ho raha hai). Controller ne pole ka sign flip kar diya — bilkul wahi promise jo LQR karta hai ki koi bhi controllable plant stable hoga. ✔


Example 3 — Cell C: marginal plant ( integrator)

Forecast: ke saath plant na badhta hai na ghatata hai — bas hold karta hai. Kya formula phir bhi clean answer deta hai?

  1. Riccati. . Ye step kyun? term zero ho jaata hai kyunki hai; quadratic sirf ek pure square mein collapse ho jaati hai.

  2. Positive root. ke roots hain aur ; hum rakhte hain. reject kyun? Bilkul wahi reason jaise har scalar case mein: cost-to-go hai aur kabhi negative nahi ho sakti, isliye chahiye. Root kisi bhi ke liye banata, jo meaningless hai, isliye discard ho jaata hai.

  3. Gain. .

  4. Closed loop. .

Verify: ke saath Riccati padhti hai , toh (yahan lete hain). Numerically , step 2 se match. ✔ Clean edge case, stable.


Example 4 — Cell D & E: do limiting regimes (cheap vs expensive control)

Forecast: agar control almost free hai (), toh gain bada hona chahiye ya chhota? Agar control almost forbidden hai (), toh hum kis pole par phanse rahenge?

  1. Apne box se general root lo. Dobara derive kiya hua scalar formula upar par quadratic formula apply karke mila tha. substitute karo: Ye step kyun? Ye (aur isliye ) ko single knob ke explicit function ke roop mein express karta hai, taaki hum seedha limits le sakein instead of har ke liye quadratic dobara solve karne ke.

  2. ke function mein gain. . Aise kyun likhein? se divide karne par (aur root ke andar kheenchne par: ) woh term isolate ho jaata hai jiska limit directly padha ja sakta hai.

  3. Cheap control, . , toh . Kyun? Control almost free hai, toh optimizer unlimited effort kharach karta hai → infinite gain → pole (instant correction). Ye D-cell limit hai.

  4. Expensive control, . , toh ; pole . kyun nahi? Kyunki unstable hai — tum kharcha karna kabhi poora nahi rok sakte, warna state bhaag jaati hai. Controller us sabse saste gain par settle karta hai jo phir bhi stabilize kare, plant ki apni rate ko mirror karte hue. Ye mirror-image pole () ek famous LQR fact hai (cheap-vs-expensive limit).

  5. Figure.

    Figure — Linear Quadratic Regulator (LQR) — Riccati equation, optimal gains
    Horizontal axis control weight hai (0 se 8 tak); vertical axis optimal gain hai. Lavender curve left par se ghoom kar right par mint dashed asymptote tak aa jaata hai; coral dot value mark karta hai.

Verify: par, — parent note ke worked number se exactly match. ✔ Do asymptotes ( aur ) ise sahi bracket karte hain.


Example 5 — Cell H: sirf ratio matter karta hai (aggressiveness)

Forecast: dono penalties ko same factor se scale karna — kya controller zyada aggressive, kam aggressive, ya unchanged hoga?

  1. Ratio ke terms mein general gain. ke saath positive root (box se) hai , toh Ye step kyun? ko square root se bahar nikalo: . se divide karne ke baad, sirf ratio bachta hai — koi standalone ya nahi rehta.

  2. Case : , toh .

  3. Case : phir se, toh . Identical.

Verify: dono gains numerically equal hain kyunki sirf par depend karta hai. Ye parent-note ki mistake #1 confirm karta hai: sirf ratio aggressiveness set karta hai, dono ko scale karna no-op hai. ✔


Example 6 — Cell F: double integrator, LQR = PD controller

Forecast: LQR yahan PD controller ban jaata hai. Kaunsa damping ratio expect karna chahiye?

  1. CARE ko entry by entry expand karo (yahan kiya gaya hai, assume nahi). aur ke saath, toh , teen scalar equations hain:

    • : ,
    • : ,
    • : . Ye step kyun? Ek symmetric matrix equation exactly teen independent scalar equations deti hai — ek per distinct entry — jinhe hum order mein solve karte hain.
  2. Solve karo. se: . se: . se: . ke saath: .

  3. Gain. . Toh (position/spring), (velocity/damper). Ye PD kyun hai? — textbook PD form (dekho PID Controllers, Pole Placement).

  4. Closed-loop matrix. . Characteristic poly: . Kyun? .

  5. Poles. .

  6. Figure.

    Figure — Linear Quadratic Regulator (LQR) — Riccati equation, optimal gains
    Axes complex -plane hain: horizontal = real part , vertical = imaginary part . Do lavender crosses closed-loop poles hain par; woh coral unit circle () par left half-plane mein par baithe hain — damping ratio .

Verify: , aur — "critically nice" GNC damping. ✔


Example 7 — Cell F (twist): double integrator par expensive control

Forecast: zyada expensive control ka matlab hona chahiye chhote gains aur dheemi (lower-frequency) response. Kitne factor se?

  1. Example 6 ke general entries mein daalo. , . Kyun? .

  2. Gain. .

  3. Natural frequency. Is plant par LQR ke liye, . Kyun? Closed-loop poly hai , toh .

Verify: Example 6 se compare karein (), badha aur gira (1 se 0.5 tak). Dheema aur gentle, exactly waise jaisa "expensive control" predict karta hai. Damping check: — same damping ratio (is problem ki ek scale-invariance). ✔


Example 8 — Cell G: degenerate jo phir bhi theek hai

Forecast: ka ek zero eigenvalue hai, toh hum velocity ke baare mein kuch bhi directly penalize nahi kar rahe. Kya solution phir bhi dono states ko stabilize karta hai?

  1. Requirement batao. Ek stabilizing exist karta hai iff controllable aur observable ho (Controllability and Observability). Ye step kyun? Ek degenerate theek hai jab tak penalized quantity dynamics ke through har unstable mode ko "dekhti" hai.

  2. chunno. Upar define kiye anusaar, , matlab output (position).

  3. ki Observability. , rank 2 = full. Ye humein kyun bachaata hai? Bhale hi hum velocity directly penalize nahi karte, velocity position se observable hai ke through (position ki rate velocity reveal karti hai). Toh cost phir bhi ek runaway velocity "feel" karti hai.

  4. Consequence. Example-6 solution valid aur stabilizing hai degenerate ke bawajood.

Verify: observability matrix identity hai, determinant ⇒ full rank ⇒ LQR well-posed. ✔ (Ise Cell I se contrast karo next mein, jahan plant itself ek condition fail karta hai.)


Example 9 — Cell I: jab recipe kaam karne se mana kar deti hai

Forecast: control sirf pehli row mein enter karta hai. Unstable mode hai. Kya koi gain use touch kar sakta hai?

  1. Controllability matrix banao. . . Toh . Ye step kyun? controllable ⟺ ka full rank ho (Controllability and Observability).

  2. Rank. , rank . Uncontrollable.

  3. Kaunsa mode diagnose karo. Uncontrollable mode hai, jiska eigenvalue (unstable) hai. Ek unstable aur uncontrollable mode kisi bhi se move nahi ho sakta. Ye LQR ko kyun khatam karta hai? Koi bhi feedback gain us pole ko push nahi kar sakta jahan control pahunch nahi sakta. Riccati equation ek stabilizing yield nahi karega.

  4. Conclusion. LQR ka yahan koi stabilizing solution nahi hai; tumhe actuator () redesign karna hoga taaki woh mein couple ho sake.

Verify: ⇒ rank-deficient ⇒ uncontrollable. Recipe sahi tarike se fail hoti hai. ✔ Ye boundary case hai jise har LQR user ko pehchanna chahiye.


Example 10 — Cell J: satellite design word problem

Forecast: humne nikala tha. tak dheela karne ke liye, kya bada karte hain ya chhota?

  1. Frequency relation invert karo. Example 7 se, , toh . Ye step kyun? Humne derive kiya tha; ke liye solve karne par required control weight milta hai. Bada (expensive control) ⇒ dheema response — forecast se match.

  2. Gain compute karo (Example 7 reuse karo). .

  3. Engineering reading. (torque per radian) = restoring "spring"; (torque per rad/s) = damping. Damping ratio → lagbhag overshoot, ek smooth slew. Satellite ke liye ye achha kyun hai? Kam ⇒ gentle wheel torques ⇒ kam power aur kam structural stress, dheemai settle ke cost par. Dekho LQG Control jab state pehle estimate karni ho.

Verify: ✔; ✔ (bilkul Example 7 jaisa, jaisa hona chahiye — same hai).


Recall Coverage checklist (kya humne har cell cover kiya?)

A ✔ (Ex 1) · B ✔ (Ex 2) · C ✔ (Ex 3) · D & E ✔ (Ex 4) · H ✔ (Ex 5) · F ✔ (Ex 6, 7) · G ✔ (Ex 8) · I ✔ (Ex 9) · J ✔ (Ex 10). Stable/unstable/marginal scalars, cheap/expensive limits, ratio-invariance, matrix PD case, degenerate-but-OK , aur uncontrollable failure — sab dikhaaya gaya.

Active Recall