4.10.17 · D1 · HinglishAdvanced Topics (Elite Level)

FoundationsConvex optimization — convex sets, convex functions

3,497 words16 min read↑ Read in English

4.10.17 · D1 · Maths › Advanced Topics (Elite Level) › Convex optimization — convex sets, convex functions

Is page mein kuch bhi assume nahi kiya gaya. parent note ka har squiggle yahan ground up se build kiya gaya hai, ek aisi order mein jahan har symbol earn hota hai pehle agle symbol ke use se. Upar se neeche padho.


0. Sabse pehle ke symbols: numbers, points, aur

Picture. ek line hai. ek flat sheet hai — ek point hota hai, ek address "daayein jao, upar jao". aapke aas-paas ki space hai. se aage draw nahi kar sakte, lekin rules bilkul same rehte hain, isliye hum picture karte hain aur trust karte hain.

Topic ko iski zaroorat kyun hai. Optimization poochhta hai "kaun sa point best hai?" — yeh tab tak nahi pooch sakte jab tak pata nahi ki "point" kya hai aur woh kis "space" mein rehta hai. Baaki sab ke upar decoration hai.


1. Points ko mix karna: scalar multiplication aur vector addition

"" ka sense banane se pehle, humein pata hona chahiye ki ek point ko stretch karna aur do points ko add karna matlab kya hai. Yeh do operations ki poori grammar hain.

Yeh kaisa dikhta hai — figure padho. Figure mein ko tak scale kiya gaya hai (chhota, same direction), aur do arrows tip-to-tail add kiye gaye hain. Ek baar aap stretch aur add kar sakte hain, toh aap koi bhi mix bana sakte hain: ko se scale karo, ko se scale karo, phir do scaled arrows add karo.

Figure — Convex optimization — convex sets, convex functions

Topic ko iski zaroorat kyun hai. Har convex combination, har gradient step, har chord literally "scale, phir add" hai. Yahi do moves hain; chapter ka baaki hissa bas clever numbers choose karta hai scale karne ke liye.


2. Ek set, aur do points ke beech ka line segment

Ab is poore chapter ka sabse important construction: do points ke beech ka line segment, ek knob ke saath likha gaya jise aap slide kar sakte hain. Yeh purely Section 1 ke scale-and-add operations se bana hai.

Yeh kaisa dikhta hai — figure padho. Jaise se tak slide karta hai:

  • par: point hai (aap par khadhe hain),
  • par: point hai (aap par pahunch gaye),
  • par: point hai, exact midpoint.

Toh formula se tak ke straight segment ko trace karta hai, aur us par aapki position hai. Do weights aur hamesha mein add hote hain — yahi "adds to " exactly aapko segment par rakhta hai aur kabhi usne door nahi hone deta.

Figure — Convex optimization — convex sets, convex functions

Topic ko iski zaroorat kyun hai. "Koi dent nahi, koi hole nahi" — yeh symbols mein kehna hoga. Iske liye ek hi tool hai: do points lo, unke beech ka straight segment chalo, poochho ki segment andar rehta hai ya nahi. Yahi sawaal convexity hai.


3. Dot product aur — flat walls kaise likhi jaati hain

Parent note mein half-spaces jaisi likhi hain. Uske liye teen naye symbols chahiye: , dot product, aur ek poore expression par.

Yeh kaisa dikhta hai. Arrow fix karo. Equation (ek fixed number ke liye) ek flat wall draw karta hai — 2-D mein ek line, 3-D mein ek plane — ke "right angles" par. upar-neeche slide karne se woh wall parallel mein shift ho jaati hai. Figure dekho: arrow wall ke aaar-paar point karta hai, aur maapata hai ki point ki direction mein kitna dur gaya hai.

Figure — Convex optimization — convex sets, convex functions

Topic ko iski zaroorat kyun hai. Half-space flat boundary wala sabse simple possible convex region hai. Bahut saare stack karo ("intersect" karo) aur tum ek polyhedron nikaalte ho — har linear program ka feasible region. Isliye woh atom hai jisse convex feasible regions bante hain. Dot product norms aur inner products mein aur gradient (Section 6) mein bhi aata hai.


4. Vector ki length: norm

Yeh kaisa dikhta hai. = "centre se distance ke andar saare points" = ek filled ball (2-D mein disk). = "exactly distance par points" = sirf rim. Same , wildly different sets — filled disk convex hai, rim nahi.

Topic ko iski zaroorat kyun hai. Balls convex set ka standard example hain, aur norm function triangle inequality se bana convex function ka standard example hai: Yahi picture hai "every norm is convex" ke peeche, aur yeh seedha Norms and Inner Products se link karta hai.


5. Graph, chord, aur epigraph

Yeh kaisa dikhta hai — figure padho. Bowl-shaped graph par do points lo aur unke beech chord draw karo. Convex function ke liye chord curve ke upar ya curve par baitta hai (bowl kabhi apni khud ki strings se upar bulge nahi karta). Epigraph — curve ke upar ki sand — toh ek dent-free region hai, yaani ek convex set. Yahi is poore topic ka deep secret hai: ek function convex hai exactly tab jab uska "above-region" ek convex set hai. Ek idea, do hats.

Figure — Convex optimization — convex sets, convex functions

Topic ko iski zaroorat kyun hai. Yeh inequality is poore chapter ka engine hai: yeh "koi fake dips nahi" force karti hai, isliye convex function ka exactly ek bottom hota hai.


6. Bahut directions mein slopes: gradient aur Hessian

Calculus se convexity test karne ke liye humein landscapes ke liye "slope" aur "curvature" chahiye.

Second derivative kyun, first kyun nahi? Convexity bending ke baare mein hai, tilting ke nahi. Ek straight ramp tilt karta hai () lekin bend nahi karta () — aur ek ramp convex hai. Sirf second derivative bend dekhta hai, jo exactly "bowl-shaped" ka matlab hai. Isliye curvature test use karta hai, nahi.

Isliye first-order convexity test is tarah dikhta hai: right-hand side flat tangent plane ka prediction hai, aur convex ka matlab hai true surface hamesha us flat prediction ke upar baitta hai. Yeh woh object bhi hai jise Gradient Descent downhill follow karta hai ( ke against chalo).

Topic ko iski zaroorat kyun hai. Ek se zyada dimension mein ek surface ek axis ke along upar aur doosre ke along neeche curve kar sakti hai (saddle). Ek single number yeh capture nahi kar sakta; Hessian aur test kar sakta hai, direction by direction, ke through.


7. Prerequisite map

Yahan hai yeh foundations topic ke do central definitions mein kaise flow karte hain.

Real space R and R-n

Points and vectors

Scale and add operations

Segment theta x plus 1 minus theta y

Dot product a-transpose x

Half-space and polyhedron

Norm length of a vector

Convex SET no dents no holes

Function f height landscape

Chord on the graph

Convex FUNCTION chord on top

Partial derivatives

Gradient steepest uphill arrow

First-order test tangent below

Hessian multi-direction curvature

Second-order test PSD v-transpose M v >= 0

Convex Optimization global min guaranteed


Equipment checklist

Har sawaal padho, out loud jawab do, phir reveal karo. Agar koi bhi trip kare, parent note tackle karne se pehle uska section upar se dobara padho.

ka plain words mein kya matlab hai?
Point set ka member hai (C ke andar rehta hai).
mein colon ka kya matlab hai?
"Aisa ki" — un saare ka collection jo uske baad wali rule satisfy karte hain.
aur kaise compute karte hain?
ke har coordinate ko se scale karo; aur ko coordinate by coordinate add karo (tip-to-tail arrows).
Jaise slide karta hai, kahan jaata hai?
(at ) se (at ) tak ke straight segment ke along, par midpoint hit karte hue.
Convex set ki definition batao.
Saare aur saare ke liye, — poora segment andar rehta hai.
Convex function ki definition batao.
saare aur ke liye — chord graph ke upar ya graph par rehti hai.
Weights aur ka sum kyun hona chahiye?
Taaki combined point exactly aur ke beech segment par rahe, kabhi usne door na jaaye.
Dot product kis tarah ka object hai — vector ya number?
Ek single number (yeh do vectors ko ek "alignment" value mein collapse karta hai).
ki kya shape hai?
Ek half-space — flat wall ke ek taraf saare points.
mein norm ka general formula?
.
aur mein kya difference hai?
Pehla filled disk hai (convex); doosra sirf rim circle hai (not convex).
ka epigraph kaisa dikhta hai?
Graph ke upar ya graph par sab kuch — surface ke upar daali gayi sand; .
Partial derivative kya maapati hai?
Sirf direction mein ka slope, baaki saare coordinates fixed rakh ke.
Curvature test ki jagah kyun use karta hai?
Convexity bending ke baare mein hai, jo sirf detect kar sakta hai; sirf tilt maapata hai, aur ek tilted straight ramp phir bhi convex hai.
Hessian ki entries kya hain, aur woh symmetric kyun hai?
Entry hai ; second derivatives ki symmetry entry ko entry ke barabar banati hai.
ka kya matlab hai, spell out karo?
Har direction ke liye, — surface har direction mein upar bend karti hai (ya flat rehti hai).

Connections

  • Parent topic — poora convexity note
  • Linear Programming — Section 3 ka half-space stack hokar feasible polyhedron banta hai.
  • Norms and Inner Products — norm (Section 4) aur dot product (Section 3) formalised.
  • Gradient Descent — Section 6 ke gradient arrow ko downhill follow karta hai.
  • Positive Definite Matrices — Section 6 ka Hessian test .
  • Jensen's Inequality — Section 5 ki chord picture ko averages tak push kiya.
  • Lagrange Multipliers and KKT Conditions — convexity set hone ke baad gradients par build karta hai.