4.10.19 · D1 · HinglishAdvanced Topics (Elite Level)

FoundationsKKT conditions for constrained optimization

3,580 words16 min read↑ Read in English

4.10.19 · D1 · Maths › Advanced Topics (Elite Level) › KKT conditions for constrained optimization

Yeh page har woh symbol build karta hai jo the parent KKT note mein use hote hain, bilkul zero se. Isko upar se neeche padho: har item sirf unhi cheezon ka use karta hai jo usse pehle aaye hain.


0. "Function" aur "minimum" ka matlab kya hota hai

Ek landscape ki imagine karo. Horizontal floor woh jagah hai jahan tumhara input rehta hai; har jagah ke upar ki height hai. Nichle valleys = saste; uunche peaks = mehenge.

Figure — KKT conditions for constrained optimization

Yeh topic kyun chahiye isse: poora game hai "sabse nichla reachable height dhundo." Cost function ke bina kuch bhi minimize karne ko nahi hai.


1. Input space aur point

  • : ek line par ek single slider hai.
  • : ek flat map par ek dot hai — upar wale landscape ka wahi floor jis par figure s01 apne contours kheenchta hai.
  • : ek room mein ek point. Isse aage draw nahi kar sakte, lekin algebra bilkul same hai.

Yeh topic kyun chahiye isse: ball is space mein kahin bhi ho sakti hai. Constraints us part ko carve out kar denge jahan woh allowed hai, aur winner (upar defined) ek specific aisa hi point hai.


2. Constraints: fences () aur wires ()

Ab hum yard ka kuch hissa forbid karte hain.

Figure — KKT conditions for constrained optimization

convention kyun? Koi bhi inequality is shape mein push ki ja sakti hai: ban jaata hai ; "" ban jaata hai "." Ek convention → ek saaf rulebook.


3. Gradient — "uphill arrow"

Yeh KKT ka star hai, toh hum ise carefully build karte hain. (Upar wala standing assumption yaad karo — wahi exactly hai jo hamein likhne deta hai.)

Figure — KKT conditions for constrained optimization
  • uphill point karta hai → toh downhill point karta hai (steepest descent — woh direction jis taraf rolling ball jaana chahti hai, aur Gradient Descent and Projected Gradient ka engine).
  • Jahan ground flat hai, har partial zero hai, toh gradient zero vector hai (woh phir bhi exist karta hai — bas koi length nahi). Yahi unconstrained minimum test hai.
  • same arrow hai jo ek fence se bana hai: woh allowed region ke bahar point karta hai (bade ki taraf, yaani ki taraf, forbidden side).

Yeh topic kyun chahiye isse: KKT completely arrows ke baare mein ek statement hai — kahin point kar sakta hai jab fences use box kar lein.


4. Perpendicular, dot product, aur "balancing arrows"


5. Active vs inactive fences, aur "cone"

Isse pehle ki hum baat karein ki kaun se fence-arrows matter karte hain, hume pata hona chahiye ki ek point par tum actually kaun si fences ko touch kar rahe ho.

Figure — KKT conditions for constrained optimization

Non-negative weights kyun? Ek fence sirf push kar sakti hai, kabhi pull nahi. Push = uske outward arrow ka amount. Yeh single restriction wahi hai jo inequality constraints ko wires se alag banati hai — aur yahi rule ban jaata hai.


6. Multipliers aur


7. Lagrangian — sab kuch bundle karna


8. Convexity aur constraint qualifications (rulebook trustworthy kyun hai)

Yeh foundations directly flagship application Support Vector Machines mein combine hoti hain, jahan upar ke har symbol dobara aata hai.


Prerequisite map

smoothness C1 assumption

gradient nabla f uphill arrow

point x in R^n

objective f cost

optimal point x star arg min

constraints g fences and h wires

perpendicular and dot product

active vs inactive fence

linear combination and cone

multipliers lambda and mu

complementary slackness

the Lagrangian L

convexity and constraint qualification

KKT conditions


Equipment checklist

Cover the right side and recite before moving to the main note.

ko kaisi smoothness chahiye, aur kyun?
Continuously differentiable () — warna gradients exist hi nahi karte aur KKT likha bhi nahi ja sakta.
ka matlab kya hai?
Ek point = real-number coordinates ki ek list; landscape mein jahan tum khade ho.
kya hai, aur se kaise alag hai?
optimal location hai (input); optimal cost hai (woh number/height jo woh achieve karta hai).
kya measure karta hai?
Point par cost / height — woh cheez jo hum minimize karte hain.
"" ko standard fence form mein convert karo.
(sab kuch ek side mein ki tarah move karo).
Gradient kahin point karta hai, aur ?
steepest uphill point karta hai; steepest downhill point karta hai.
Valley floor par, kya gradient vanish hota hai ya exist karna band ho jaata hai?
Woh phir bhi exist karta hai — woh zero vector hai (zero length ka arrow).
Dot product formula aur perpendicular test likho.
; perpendicular jab ho.
par fence "active" vs "inactive" kya banata hai?
Active: (touching). Inactive: (strictly andar).
Gradients ka cone kya hai, aur non-negative weights kyun?
Active fence-arrows ke saare sums weights ke saath; kyunki fence sirf outward push kar sakti hai, kabhi pull nahi.
Kaun se multipliers hain aur kaun se sign mein free hain?
Fence (inequality) multipliers ; wire (equality) multipliers free.
Kya ek distance hai?
Nahi — yeh ek signed constraint value hai (slack); KKT sirf uske sign / whether it's zero se matlab rakhta hai.
Complementary slackness ko words mein bolo.
Ek fence tabhi push karti hai jab uska slack khatam ho jaaye: .
Convexity golden property kyun hai?
Ek valley, no false bottoms → KKT global minimum ke liye sufficient ban jaate hain.
Ek constraint qualification bolo.
LICQ — par active fence aur wire gradients linearly independent hain; ya Slater — ek strictly feasible interior point exist karta hai.
Agar constraint qualification fail ho toh kya toot jaata hai?
Multipliers exist hi nahi kar sakte even at a true optimum, toh KKT applicable nahi ho sakta.