4.10.17 · D4 · HinglishAdvanced Topics (Elite Level)

ExercisesConvex optimization — convex sets, convex functions

2,623 words12 min read↑ Read in English

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


Level 1 — Recognition

L1.1 — Convex sets pehchano

Inme se kaun se convex hain? (a) closed disk ; (b) ring ; (c) half-plane ; (d) do points .

Neeche ki picture is poore exercise ka ek nazar mein summary hai: filled disk ke andar ek chord (andar hi rehti hai — convex) versus ring ke across ek chord (khali hole se guzarti hai — not convex).

Figure — Convex optimization — convex sets, convex functions
Figure L1.1 — Left: ek solid cyan disk; do points ke beech amber chord poori tarah andar rehti hai, isliye disk convex hai. Right: ek cyan ring (annulus) jisme inner disk nikaali gayi hai; uske do points ke beech amber chord seedha white khale hole se guzarti hai, set se bahar jaati hai, isliye ring convex nahi hai.

Recall Solution

(a) Convex. Filled ball model example hai — koi dent nahi, koi hole nahi. Koi bhi chord do interior/boundary points ke beech andar rehti hai (figure ka left panel). (b) NOT convex. Ring mein ek hole hai (radius wali inner disk nikaali gayi hai). Beech se guzarne wali chord hole mein se jaati hai, set se bahar (figure ka right panel). (c) Convex. Half-plane convex hota hai: agar aur ho, toh mix karne par milta hai. Inequality mix ke through seedha pass ho jaati hai kyunki linear hai. (d) NOT convex. Do isolated points: midpoint set mein nahi hai. Convex hone ke liye poora segment present hona chahiye.

L1.2 — Convex functions pehchano

Aankhon se (ya ek-line se), har ek ko uske natural domain par classify karo: (a) ; (b) ; (c) ; (d) on .

Chord test visual roop mein: convex function ke liye seedhi chord graph ke upar ya barabar rehti hai; concave ke liye neeche.

Figure — Convex optimization — convex sets, convex functions
Figure L1.2 — Do graphs. Left: convex parabola (cyan curve) jisme amber chord curve ke upar hai. Right: concave downward parabola (cyan curve) jisme amber chord curve ke neeche hai. Chord kis taraf hai yeh batata hai convex versus concave.

Recall Solution

(a) Convex (aur concave bhi). . Straight line boundary case hai: chord graph ke barabar hoti hai, isliye equality ke saath hold karta hai. (b) Concave. ; yeh ek downward bowl hai (figure ka right panel). Iska negative convex hai (figure ka left panel). (c) Convex. mein par corner hai, Hessian nahi, isliye definition + triangle inequality use karo: . (d) Neither. sign change karta hai (positive on , negative on ). Convexity ke liye har jagah chahiye.


Level 2 — Application

L2.1 — Second-order test in 1-D

Dikhao ki on convex hai, aur decide karo ki yeh strictly convex hai ya nahi.

Recall Solution

Hessian kya hai? Kai variables ke function ke liye, Hessian woh matrix hai jisme saare second partial derivatives hain — yeh har direction mein curvature record karta hai. 1-D mein yeh single number ban jaata hai. Second-order tool — KYUN: Hessian test kehta hai convex har jagah, kyunki measure karta hai ki tangent-slope kaise change hoti hai; agar slope sirf increase hoti hai, toh graph upar curl karta hai aur apne tangents ke upar rehta hai. Compute karo: , for all . Isliye convex hai. ✔ Strictly convex? , isliye sufficient condition " everywhere" par fail karti hai. Lekin strict convexity strict "" chord inequality se define hoti hai, jo satisfy karta hai (iska graph kabhi straight segment nahi contain karta). Isliye strictly convex hai hone ke bawajood: " everywhere" sufficient hai, necessary nahi.

L2.2 — Hessian test in 2-D

Kya convex hai?

Recall Solution

KYUN Hessian: higher dimensions mein "upar curl karta hai" ban jaata hai "second derivatives ki matrix (Hessian, L2.1 mein defined) positive semidefinite hai" (dekho Positive Definite Matrices). Hum test karte hain. Ek symmetric matrix positive semidefinite hai iff uska trace aur determinant . Trace ; determinant . Dono eigenvalues positive hain, isliye . Hence strictly convex hai. ✔


Level 3 — Analysis

L3.1 — Kaun se operations convexity preserve karte hain?

Maano on convex hain. Kaun se guaranteed convex hain? (a) ; (b) ; (c) ; (d) .

Recall Solution

Reminder — epigraph. ka epigraph woh set hai jisme saare points graph par ya uske upar hain: . Parent note se ek key fact: convex hai iff ek convex set hai. Hum ise part (c) mein use karenge. (a) Convex. Convex functions ke nonnegative-weighted sums convex hote hain: chord inequalities add karo, weights direction maintain karte hain. qualify karta hai. (b) NOT guaranteed. concave hai; convex + concave kuch bhi ho sakta hai. Example: , deta hai (concave). Isliye nahi. (c) Convex. Convex functions ka pointwise maximum convex hota hai. Reason via epigraphs: ek point dono graphs par ya upar hota hai exactly jab , isliye . Do convex sets ka intersection convex hota hai, isliye convex hai. (d) NOT guaranteed. Do convex functions ka product necessarily convex nahi hota. Lo (convex) aur (convex, kyunki ). Unka product mein hai, jo roots aur ke beech ke liye negative hai. Isliye us interval par concave hai — product par convex nahi hai. Koi general guarantee nahi.

L3.2 — Half-spaces aur polyhedra

Intersection rule se explain karo ki kisi bhi linear program ki feasible region convex kyun hai. Triangle se illustrate karo.

Recall Solution

ki har row ek inequality hai — ek half-space, jo convex hai (L1.1c). Poori feasible set in saare half-spaces ka intersection hai. Kyunki intersection convexity preserve karta hai (chord har ek mein chord sabme chord intersection mein), polyhedron convex hai. Isliye hi Linear Programming convex regions par optimize karta hai. Neeche wala triangle teen half-planes , , ka intersection hai — andar ke koi bhi do points, segment andar hi rehta hai.

Figure — Convex optimization — convex sets, convex functions
Figure L3.2 — Ek cyan-filled triangle jiske corners hain, teen half-planes , , ke overlap se bana hai. Do amber points P aur Q andar hain jo ek amber chord se join hain jo poori tarah andar rehti hai, convexity illustrate karta hai.


Level 4 — Synthesis

L4.1 — Ek naya convex function banao

Prove karo ki (2 variables mein "log-sum-exp") convex hai — iska Hessian compute karo aur positive semidefiniteness check karo.

Recall Solution

Maano . First derivatives: probabilities jaise hain (positive, sum 1). Second derivatives se Hessian milta hai: Kyunki hai, aur hai, isliye PSD check: trace , determinant . Dono eigenvalues ( aur ) hain, isliye . Hence log-sum-exp convex hai (strictly nahi — direction mein eigenvalue reflect karta hai ki saare inputs mein constant add karna ko linearly shift karta hai). ✔

L4.2 — Definition se Jensen

Sirf two-point convexity inequality use karke, three-point version derive karo: weights ke liye. Yeh finite Jensen's Inequality hai.

Recall Solution

Idea: do points group karo, phir teesra merge karo. Maano (warna trivial). Likho Inner weights , isliye ek genuine two-point convex combination hai. Step 1 (outer split): aur par dial ke saath two-point convexity apply karo: Step 2 (inner split): par phir se two-point convexity apply karo: Step 3 (substitute): plug in karo; denominators cancel kar deta hai: Yehi "ek point peel off karo, baaki renormalize karo" induction saare ke liye deta hai.


Level 5 — Mastery

L5.1 — Local = global, rigorously

Maano convex hai aur on convex hai. Prove karo ki koi bhi local minimizer global minimizer bhi hai. Phir dikhao ki agar strictly convex hai, toh global minimizer unique hai.

Recall Solution

Global part. Maano local min hai lekin koi hai jiske liye . Segment point banao. Kyunki convex hai, for all . Convexity deta hai: har ke liye, kyunki . Lekin jab , , isliye ke arbitrarily close points ka value strictly chhota hoga — yeh contradict karta hai ki local minimum hai. Isliye aisa koi exist nahi karta: global hai. ∎ Strictly convexity ke under uniqueness. Maano do distinct global minimizers hain jiske liye . Midpoint lo; strict convexity deta hai: ek aisa point jiska value supposed minimum se neeche hai — impossible. Isliye minimizer unique hai. ∎

L5.2 — Haath se ek convex program optimize karo

minimize karo line ke subject to. Do tarike se solve karo — (i) substitution, (ii) Lagrange Multipliers and KKT Conditions — aur explain karo ki convexity kyun stationary point ko automatically global minimum bana deti hai.

Recall Solution

Setup. convex hai (Hessian ); constraint ek line hai, isliye convex set. Convex objective over convex feasible set koi bhi stationary point global minimum hai (L5.1), aur KKT/Lagrange conditions sufficient hain, sirf necessary nahi.

(i) Substitution. rakho: minimize karo. Phir , isliye . Value .

(ii) Lagrange. . Stationarity: Constraint , isliye , (i) se match karta hai. Geometrically gradient line ke perpendicular hona chahiye, jo force karta hai — line ka origin ke sabse close point.

Answer: minimizer , minimum value .

Figure — Convex optimization — convex sets, convex functions
Figure L5.2 — Concentric cyan circles ke level sets hain (har circle par constant value). White line constraint hai. Sabse chhota circle jo line ko touch karta hai woh amber point par tangent hai — constrained minimum, value .


Connections

Recall Self-test checklist

Convex set = segment andar rehta hai ::: filled region, koi dents/holes nahi. Convex function test (twice-diff) ::: har jagah. Convex ka local min over convex ::: automatically global hota hai. Pointwise max of convex functions ::: convex; pointwise min ::: generally nahi.