MATH-20 · OPTIMIZATION

제약 최적화·라그랑주·KKTConstrained optimization, Lagrange multipliers and KKT

허용 방향에서 자격조건·볼록 충분성·쌍대 인증까지From feasible directions to qualifications, convex sufficiency and dual certificates

실습 6종 · 풀이 포함 연습문제 50개6 labs · 50 exercises with solutions

기초Foundations

1. 가장 좋은 선택에도 지켜야 할 선이 있다1. The best choice must respect a feasible boundary

두 수 x,y의 합이 10이어야 한다면 x만 마음대로 늘릴 수 없습니다. x를 1 늘리면 y는 1 줄어야 합니다. 이처럼 선택들이 서로 묶인 문제에서는 좌표별 기울기가 모두 0일 필요가 없습니다. 허용되는 움직임을 따라 더 좋아질 수 있는지가 중요합니다.

19장에서는 경계를 직접 비교하거나 매개화했습니다. 이제 등식·부등식의 기울기를 이용해 그 경계를 다룹니다. 처음에는 거리의 제곱을 줄이는 숫자 예제로 시작하고, Lagrange 승수, KKT, 제약 자격조건, 쌍대성으로 올라갑니다. 공식에 승수를 붙이는 기술보다 각 조건이 왜 필요한지 이해하는 것이 목표입니다.

If x+y must equal ten, increasing x requires decreasing y. With linked choices, coordinate derivatives need not all vanish at an optimum. What matters is improvement along feasible movements.

We move from numerical squared-distance examples to Lagrange multipliers, KKT conditions, constraint qualifications and duality. The goal is to understand each assumption rather than merely attach multipliers to formulas.

기초Foundations

2. 부호 관례를 한 번 정하고 끝까지 유지2. Fix the sign convention before differentiating

이 장에서는 최소화만을 기본형으로 씁니다. 최대화는 −f의 최소화로 바꿉니다. 등식은 hⱼ(x)=0, 부등식은 gᵢ(x)≤0으로 정리합니다. 부등식 방향을 바꿨다면 함수의 부호도 바뀌어야 합니다.

min⁡xf(x)subject to hj(x)=0,gi(x)≤0,L(x,λ,ν)=f(x)+∑jλjhj(x)+∑iνigi(x)\min_x f(x)\quad\text{subject to }h_j(x)=0,\quad g_i(x)\le0,\qquad \mathcal L(x,\lambda,\nu)=f(x)+\sum_j\lambda_jh_j(x)+\sum_i\nu_i g_i(x)

등식 승수 λⱼ는 양수·0·음수가 모두 가능하고, 부등식 승수 νᵢ는 0 이상으로 제한합니다. 어떤 교재는 기호 λ,ν를 반대로 배정하거나 Lagrangian에 빼기 부호를 씁니다. 문자만 복사하지 말고 제약 방향과 전체 식을 함께 비교하세요.

미분 정리에서는 함수들이 후보점 주변의 열린 영역에서 C¹이라는 가정을 쓰고, 이계 조건에는 C²를 요구합니다. 정의역 자체에 로그의 양수 조건 등이 있으면 그 영역도 기록합니다. 기본 실습은 모든 실수에서 정의된 가정 다항함수를 사용합니다.

Use minimization as the standard form; maximize f by minimizing −f. Write equalities as hⱼ=0 and inequalities as gᵢ≤0.

min⁡xf(x)subject to hj(x)=0,gi(x)≤0,L(x,λ,ν)=f(x)+∑jλjhj(x)+∑iνigi(x)\min_x f(x)\quad\text{subject to }h_j(x)=0,\quad g_i(x)\le0,\qquad \mathcal L(x,\lambda,\nu)=f(x)+\sum_j\lambda_jh_j(x)+\sum_i\nu_i g_i(x)

Equality multipliers λ are unrestricted; inequality multipliers ν are nonnegative. Other references may swap letters or signs. Compare the full convention, not just the symbols.

Differentiable theorems assume C¹ functions on an open neighborhood; second-order statements use C². Retain additional domain restrictions, such as positive logarithm arguments. Basic polynomial labs are hypothetical models on real coordinates.

기초Foundations

3. 허용 경로의 미분이 접선 방향을 만든다3. Differentiating a feasible path gives tangent directions

제약을 지키며 움직이는 곡선 x(t)가 x(0)=a를 지나고 h(x(t))=0이라고 합시다. 연쇄법칙으로 0에서 ∇h(a)ᵀx′(0)=0입니다. 접선 속도 v=x′(0)는 제약의 기울기와 수직입니다.

h(x(t))=0⟹∇h(a)Tv=0,v=x′(0)h(x(t))=0\quad\Longrightarrow\quad \nabla h(a)^{\mathsf T}v=0,\qquad v=x'(0)

x+y=B라면 ∇h=(1,1)이고 접선 방향은 (1,−1)의 배수입니다. x를 늘리는 동안 y를 같은 양 줄이는 움직임을 수식으로 얻었습니다.

모든 실제 허용 경로의 접선은 이 선형식을 만족합니다. 역으로 선형식을 만족하는 방향이 모두 실제 경로로 구현되는지는 제약의 정칙성에 달려 있습니다. h(x)=x²=0의 원점에서는 미분식이 0=0이라 모든 방향을 허용하는 것처럼 보이지만 실제 허용점은 하나뿐입니다.

For a feasible curve x(t) through a with h(x(t))=0, the chain rule makes its velocity perpendicular to the constraint gradient.

h(x(t))=0⟹∇h(a)Tv=0,v=x′(0)h(x(t))=0\quad\Longrightarrow\quad \nabla h(a)^{\mathsf T}v=0,\qquad v=x'(0)

For x+y=B, the gradient is (1,1), and tangent directions are multiples of (1,−1).

Every feasible path satisfies the linearized equation. Its converse requires regularity: for x²=0 at zero, the linearized equation permits every direction although the feasible set contains only zero.

학부 연결 · 선택Undergraduate bridge · optional

4. 등식 최소에서는 목적함수 기울기가 법선 방향4. At an equality optimum, the gradient is normal to the surface

매끄러운 등식 곡면에서 a가 국소 최소이고 제약의 기울기가 0이 아니라고 합시다. 모든 접선 방향 v로 양쪽 움직임이 가능하고, 그 방향의 목적함수 변화율 ∇f(a)ᵀv는 0이어야 합니다. 따라서 ∇f(a)는 접선 공간에 수직인 법선 공간에 놓입니다.

∇h(a)≠0:∇f(a)+λ∇h(a)=0,h(a)=0\nabla h(a)\ne0:\qquad \nabla f(a)+\lambda\nabla h(a)=0,\qquad h(a)=0

법선은 ‘수직 방향’이고, 제약 하나에서는 ∇h가 그 방향을 나타냅니다. ∇f와 ∇h가 평행이라는 말을 승수 λ로 쓴 것입니다. 부호는 우리의 Lagrangian 관례에 맞췄으며 λ는 음수여도 됩니다.

정칙성 가정은 음함수정리가 곡면과 접선 방향의 연결을 보장하는 데 쓰입니다. 이 가정 없이 단순히 기울기 평행을 강요하면 진짜 최적점을 놓칠 수 있습니다. 또한 이 조건은 최대에서도 성립하므로 최소 판정 자체는 아닙니다.

At a regular smooth equality surface, feasible tangent directions can be followed in both signs. A local extremum has zero objective derivative in each tangent direction, placing its gradient in the normal space.

∇h(a)≠0:∇f(a)+λ∇h(a)=0,h(a)=0\nabla h(a)\ne0:\qquad \nabla f(a)+\lambda\nabla h(a)=0,\qquad h(a)=0

For one equality, the nonzero constraint gradient spans that normal space. The multiplier expresses parallelism, with unrestricted sign.

The implicit function theorem supplies the connection between the surface and tangent directions. Without regularity this condition may miss true optima. It also holds at maxima, so it is not by itself a minimum test.

기초Foundations

5. Lagrangian의 정상식과 제약식을 함께 풀기5. Solve stationarity and feasibility together

Lagrangian은 목적함수에 ‘승수×제약식’을 더한 함수입니다. 제약을 만족하는 입력에서는 제약항이 0이라 원래 목적함수와 값이 같습니다. x에 대해 미분한 정상식과 λ에 대해 미분한 등식 제약을 함께 씁니다.

∇xL(x,λ)=0,∂λL(x,λ)=h(x)=0\nabla_x\mathcal L(x,\lambda)=0,\qquad \partial_\lambda\mathcal L(x,\lambda)=h(x)=0

중요한 것은 x와 λ 전체에서 Lagrangian을 보통의 최소화 함수로 취급하지 않는 것입니다. 제약을 어긴 x에서 λ를 자유롭게 움직이면 제약항은 한없이 커지거나 작아집니다. 정상조건을 푸는 절차와 모든 변수의 공동 최소화는 다릅니다.

후보를 구한 뒤에는 제약을 만족하는지, 실제 최소인지 확인해야 합니다. 대입으로 줄인 단변수 함수, 제곱완성, 접선 이차형식, 볼록성 등이 그 확인을 도와줍니다.

The Lagrangian adds multiplier times constraint. On feasible inputs its value equals the original objective. Differentiate in x for stationarity and in λ for the equality constraint.

∇xL(x,λ)=0,∂λL(x,λ)=h(x)=0\nabla_x\mathcal L(x,\lambda)=0,\qquad \partial_\lambda\mathcal L(x,\lambda)=h(x)=0

Do not jointly minimize over both x and unrestricted λ as an ordinary unconstrained problem. At an infeasible x, varying λ sends the constraint term without bound in either sign.

After solving the equations, verify feasibility and classification using substitution, exact inequalities, tangent curvature or convexity.

기초Foundations

6. 등식 실습: 직선 위에서 목표점에 가장 가깝게6. Equality lab: the nearest point on a line

가정 목표점 (p,q)에 대한 제곱거리의 절반 f=½[(x−p)²+(y−q)²]를 x+y=B 위에서 최소화합니다. 정상식은 x−p+λ=0, y−q+λ=0이고 합 제약에 대입하면 λ=(p+q−B)/2입니다.

x⋆=p−λ⋆,y⋆=q−λ⋆,λ⋆=p+q−B2x^\star=p-\lambda^\star,\quad y^\star=q-\lambda^\star,\quad \lambda^\star=\frac{p+q-B}{2}

예를 들어 p=3,q=1,B=2이면 λ=1, 해는 (2,0), 최솟값은 1입니다. B=6이면 λ=−1, 해는 (4,2)입니다. 승수의 음수는 오류가 아니라 합을 늘리는 제약 방향과 목적함수의 관계를 반영합니다.

목표점에서 해로 향하는 차이는 (−λ,−λ)라 직선의 법선 방향입니다. 실습에서 원래 목표·허용 직선·투영점을 구별하세요. 다음 절은 이 후보가 전역 최소임을 승수 없이도 증명합니다.

Minimize half the squared distance to (p,q), subject to x+y=B. Stationarity gives x−p+λ=0 and y−q+λ=0.

x⋆=p−λ⋆,y⋆=q−λ⋆,λ⋆=p+q−B2x^\star=p-\lambda^\star,\quad y^\star=q-\lambda^\star,\quad \lambda^\star=\frac{p+q-B}{2}

For p=3,q=1,B=2, the solution is (2,0), multiplier one and minimum value one. With B=6 the solution is (4,2) and multiplier −1. Negative equality multipliers are valid.

The displacement is normal to the line. Identify the target, feasible line and projection separately. The next section independently verifies global optimality.

기초Foundations

7. 대입과 완전제곱으로 전역성 확인7. Verify global optimality by substitution and completing squares

y=B−x를 목적함수에 대입하면 한 변수의 이차함수가 됩니다. f(x,B−x)의 이계 도함수는 2>0이고 유일한 정지점은 (p+B−q)/2입니다. 앞의 Lagrange 해와 같습니다.

f(x,B−x)=(x−p+B−q2)2+(p+q−B)24f(x,B-x)=\left(x-\frac{p+B-q}{2}\right)^2+\frac{(p+q-B)^2}{4}

완전제곱 항등식에서 최솟값 (p+q−B)²/4와 유일성을 바로 읽습니다. 허용 직선은 무한하지만 이 함수는 그 직선을 따라 멀어질수록 커져 최소를 얻습니다.

한편 위로는 한없이 커지므로 최대가 없습니다. Lagrange 방정식의 해 하나가 있다고 해서 최소·최대가 둘 다 존재한다는 뜻은 아닙니다. 제약 대입은 작은 문제의 좋은 검산 도구이고, 많은 등식·변수가 있을 때는 승수 방식이 구조를 더 잘 보존합니다.

Substitute y=B−x to obtain a one-variable quadratic with second derivative two. Completing the square gives an independent global proof.

f(x,B−x)=(x−p+B−q2)2+(p+q−B)24f(x,B-x)=\left(x-\frac{p+B-q}{2}\right)^2+\frac{(p+q-B)^2}{4}

The minimum value is (p+q−B)²/4 and the minimizer is unique. Along the unbounded feasible line, the objective grows far away.

There is no maximum. A Lagrange candidate does not imply both extrema exist. Substitution is a useful check for small problems; multipliers preserve structure when dimensions and constraints grow.

학부 연결 · 선택Undergraduate bridge · optional

8. 여러 등식은 야코비안의 행 독립성이 필요8. Multiple equalities use independent Jacobian rows

등식 h₁,…,hₘ을 묶어 h(x)라는 벡터로 쓰면, Dh의 각 행은 제약 하나의 기울기 전치입니다. 정칙점에서 m개 행이 선형 독립이면 접선 공간은 Dh(a)v=0이고 그 수직 공간은 Dh(a)ᵀ의 열공간입니다.

rank⁡Dh(a)=m,∇f(a)+Dh(a)Tλ=0,h(a)=0\operatorname{rank}Dh(a)=m,\qquad \nabla f(a)+Dh(a)^{\mathsf T}\lambda=0,\qquad h(a)=0

미지수 n개에서 독립적인 등식 m개는 국소적으로 n−m개의 접선 자유도를 남깁니다. m=n이면 근처의 허용점이 고립될 수도 있습니다. m>n이면 행 독립성을 만족할 수 없습니다.

똑같은 제약을 두 번 쓰거나 한 식을 상수배해 추가하면 랭크가 늘지 않습니다. 최적점 자체가 사라지는 것은 아니지만 승수가 비유일해질 수 있고 이 독립성 정리를 그대로 적용할 수 없습니다.

Collect equalities into a vector h. Its Jacobian has one constraint-gradient row per equality. Full row rank makes the tangent space the kernel of Dh and its normal space the range of Dhᵀ.

rank⁡Dh(a)=m,∇f(a)+Dh(a)Tλ=0,h(a)=0\operatorname{rank}Dh(a)=m,\qquad \nabla f(a)+Dh(a)^{\mathsf T}\lambda=0,\qquad h(a)=0

There are locally n−m tangent degrees of freedom for n variables and m independent equalities. Independence is impossible when m>n.

Duplicating or rescaling the same equality does not add rank. It may leave the optimizer unchanged while making multipliers nonunique and invalidating this particular regularity assumption.

기초Foundations

9. 필요조건 실습: 원 위의 최소·최대 모두 정상식9. Necessity lab: a circle minimum and maximum both satisfy stationarity

단위원 x²+y²=1에서 f=x를 최소화합니다. h=x²+y²−1이므로 정상식은 1+2λx=0, 2λy=0입니다. 첫 식 때문에 λ≠0이고 y=0, 따라서 x=±1입니다.

(x,y,λ)=(−1,0,12)or(1,0,−12)(x,y,\lambda)=(-1,0,\tfrac12)\quad\text{or}\quad(1,0,-\tfrac12)

f값을 비교하면 −1이 최소, +1이 최대입니다. 둘 다 같은 Lagrange 정상조건을 만족합니다. 등식 제약의 승수는 부호 제한이 없으므로 음수 승수라는 이유만으로 최대 후보를 제거할 수 없습니다.

이 예의 목적함수 x는 볼록이지만 원의 경계만인 허용집합은 볼록하지 않습니다. 닫힌 원판과 원 둘레를 혼동하면 볼록 최소화 충분조건을 잘못 적용하게 됩니다.

For f=x on x²+y²=1, stationarity gives 1+2λx=0 and 2λy=0. Hence y=0 and x=±1.

(x,y,λ)=(−1,0,12)or(1,0,−12)(x,y,\lambda)=(-1,0,\tfrac12)\quad\text{or}\quad(1,0,-\tfrac12)

Comparing objective values identifies −1 as the minimum and +1 as the maximum, although both satisfy the same stationarity equations. Equality multipliers have unrestricted signs.

The objective is convex, but the circle circumference is a nonconvex feasible set. Do not confuse it with the filled disk when applying convex sufficiency.

선택 심화Optional extension

10. 이계 판정은 Lagrangian을 접선에 제한10. Second-order equality tests restrict the Lagrangian Hessian to tangents

C² 등식 문제의 정칙 국소 최소에서는 목적함수 헤시안 전체가 아니라 Lagrangian의 x헤시안을 접선 방향에 제한해 봅니다. 허용 경로의 곡률이 제약의 이계항으로 들어가기 때문입니다.

v∈ker⁡Dh(a):vT∇xx2L(a,λ)v≥0v\in\ker Dh(a):\qquad v^{\mathsf T}\nabla^2_{xx}\mathcal L(a,\lambda)v\ge0

원의 예에서는 HₓₓL=2λI입니다. (−1,0)의 λ=1/2에서는 접선 (0,t)에 이차형식 t²가 나오고, (1,0)의 λ=−1/2에서는 −t²가 나옵니다. f=x의 헤시안 자체는 0이지만 제약 위의 곡률은 0이 아니었습니다.

정칙 KKT 등식 후보에서 모든 비영 접선에 이차형식이 양수이면 엄격한 제약 국소 최소라는 충분조건이 됩니다. 여기서는 C²와 등식 야코비안 full row rank를 전제로 합니다. 부등식이 섞이면 단순 접선 공간 대신 활성 제약과 목적함수의 일계 변화를 반영하는 임계방향이 필요하므로 같은 식을 무조건 확대하지 않습니다.

For a regular C² equality-constrained local minimum, examine the x-Hessian of the Lagrangian on tangent directions, rather than the objective Hessian alone.

v∈ker⁡Dh(a):vT∇xx2L(a,λ)v≥0v\in\ker Dh(a):\qquad v^{\mathsf T}\nabla^2_{xx}\mathcal L(a,\lambda)v\ge0

On the circle, this Hessian is 2λI. Tangent curvature is positive at (−1,0) and negative at (1,0), although f=x itself has zero Hessian.

At a regular equality-stationary point, strict positivity for every nonzero tangent direction is sufficient for a strict constrained local minimum. This statement assumes C² functions and full row rank. Inequalities require a more careful critical-direction formulation and cannot be appended blindly.

선택 심화Optional extension

11. 곡선의 두 번째 미분에서 제약항이 생긴다11. A feasible curve explains the extra Hessian term

허용곡선 x(t)의 속도를 v, 가속도를 w라 합시다. f(x(t))의 두 번째 미분은 vᵀHf v+∇fᵀw입니다. 각 hⱼ(x(t))=0도 두 번 미분하면 vᵀHhⱼv+∇hⱼᵀw=0입니다.

∇f=−∑jλj∇hj⟹d2dt2f(x(t))∣0=vT(Hf+∑jλjHhj)v\nabla f=-\sum_j\lambda_j\nabla h_j\quad\Longrightarrow\quad \frac{d^2}{dt^2}f(x(t))\bigg|_0=v^{\mathsf T}\left(H_f+\sum_j\lambda_jH_{h_j}\right)v

정상식으로 ∇f를 바꿔 넣으면 경로 가속도 w가 제약의 헤시안 항으로 정리됩니다. 그래서 Lagrangian 헤시안이 등장합니다. 경로가 굽었는데도 직선의 두 번째 변화율 vᵀHf v만 쓰면 빠지는 항이 있었습니다.

필요조건은 모든 실현 가능한 접선에 적용되고, 정칙성이 전체 접선 공간과의 연결을 보장합니다. 충분조건의 완전한 증명은 국소 좌표로 등식 곡면을 표현하고 그 좌표의 Taylor 정리를 쓰는 방식으로 확장할 수 있습니다.

Let v and w be the velocity and acceleration of a feasible curve. The second derivative of the objective is vᵀHf v+∇fᵀw. Twice differentiating each equality supplies the matching constraint-curvature identities.

∇f=−∑jλj∇hj⟹d2dt2f(x(t))∣0=vT(Hf+∑jλjHhj)v\nabla f=-\sum_j\lambda_j\nabla h_j\quad\Longrightarrow\quad \frac{d^2}{dt^2}f(x(t))\bigg|_0=v^{\mathsf T}\left(H_f+\sum_j\lambda_jH_{h_j}\right)v

Stationarity replaces the acceleration contribution by constraint Hessians. This explains why the Lagrangian Hessian appears; a curved path is not governed by the straight-direction objective Hessian alone.

Regularity connects realizable tangent paths with the full tangent space. A complete sufficiency proof can use local coordinates on the equality surface and Taylor expansion there.

기초Foundations

12. 같은 허용집합도 제약 표현에 따라 정칙성이 달라진다12. Equivalent feasible sets can have different regularity

등식 x=0과 x³=0은 모두 허용점 {0}을 만듭니다. 그러나 첫 기울기는 1, 두 번째는 0에서 0입니다. f(x)=x를 최소화할 때 첫 표현의 정상식 1+λ=0은 λ=−1을 주지만, 두 번째 표현의 정상식 1+λ·0=0은 풀리지 않습니다.

{x:x=0}={x:x3=0}={0},h1′(0)=1,h2′(0)=0\{x:x=0\}=\{x:x^3=0\}=\{0\},\qquad h_1'(0)=1,\quad h_2'(0)=0

최소점은 두 문제 모두 0이며 변하지 않았습니다. 달라진 것은 그 점에서 제약식의 일차 정보입니다. 따라서 ‘최소인데 정상식을 만족하지 않으니 계산이 틀렸다’고 단정하지 말고 자격조건과 표현을 확인해야 합니다.

비영 상수배로 등식을 바꾸는 것은 기울기 랭크를 보존하지만, 제약식을 세제곱하는 비선형 변형은 영 기울기를 만들 수 있습니다. 허용집합의 동치와 미분 정리의 가정 보존은 다른 문제입니다.

The equalities x=0 and x³=0 define the same singleton feasible set. For objective f=x, the first gives multiplier −1, while the second has impossible stationarity 1+λ·0=0.

{x:x=0}={x:x3=0}={0},h1′(0)=1,h2′(0)=0\{x:x=0\}=\{x:x^3=0\}=\{0\},\qquad h_1'(0)=1,\quad h_2'(0)=0

The optimizer remains zero in both problems; the first-order constraint information changed. Check qualifications and representation before treating failed stationarity as a contradiction.

Nonzero constant scaling preserves equality-gradient rank, whereas nonlinear reformulations can destroy it. Equivalent feasible sets need not preserve theorem hypotheses.

기초Foundations

13. 부등식은 여유가 있는 안쪽과 닿은 경계가 다르다13. Inequalities distinguish slack interiors from active boundaries

g(x)≤0은 값이 음수인 여유 영역과 0인 경계를 포함합니다. x≥0은 g(x)=−x≤0으로 씁니다. x>0인 점에서는 작은 양쪽 움직임이 허용되지만 x=0에서는 음의 방향이 막힙니다.

x≥0⟺g(x)=−x≤0x\ge0\quad\Longleftrightarrow\quad g(x)=-x\le0

최소점이 여유 영역 안에 있다면 그 부등식은 충분히 작은 주변의 선택을 막지 않습니다. 경계에 닿았을 때에는 목적함수가 내려가는 방향을 차단할 수 있습니다. 이 차이를 활성 여부와 승수로 기록합니다.

여유가 크다고 중요하지 않은 제약이라는 전역적 해석은 하지 마세요. 현재 후보점 주변의 국소 역할에 대한 말입니다. 다른 점이나 다른 매개변수에서는 같은 제약이 활성화될 수 있습니다.

An inequality g≤0 includes slack points with g<0 and boundary points with g=0. For x≥0, use g=−x. Positive x permits small moves in both signs, while zero blocks negative movement.

x≥0⟺g(x)=−x≤0x\ge0\quad\Longleftrightarrow\quad g(x)=-x\le0

A strictly slack inequality does not restrict sufficiently small moves around the current point. An active boundary may block improvement; multipliers record this distinction.

This is a local statement at a selected point, not a claim that the constraint is unimportant everywhere. Changing the point or parameters can activate it.

기초Foundations

14. 활성집합은 후보점에서 다시 계산14. Recompute the active set at each candidate

후보 a에서 gᵢ(a)=0인 부등식들을 활성이라고 부르고 그 인덱스 집합을 A(a)라고 씁니다. gᵢ(a)<0이면 비활성입니다. gᵢ(a)>0이면 활성 후보가 아니라 허용되지 않는 점입니다.

A(a)={i:gi(a)=0},a must first satisfy every constraint\mathcal A(a)=\{i:g_i(a)=0\},\qquad a\text{ must first satisfy every constraint}

예를 들어 0≤x≤2는 gL=−x,gU=x−2입니다. x=0에서는 아래쪽만 활성, x=1에서는 둘 다 비활성, x=2에서는 위쪽만 활성입니다. 같은 제약식이지만 점에 따라 역할이 바뀝니다.

등식은 모든 허용점에서 항상 0입니다. 활성집합 용어는 여기서는 부등식에 사용하고, 등식의 기울기는 자격조건 검사에 항상 포함합니다. 숫자 계산에서는 ‘거의 0’의 허용오차를 정확한 활성 정의와 따로 표시하세요.

At a feasible point a, an inequality is active when gᵢ(a)=0 and inactive when gᵢ(a)<0. A positive value means infeasibility, not merely another active case.

A(a)={i:gi(a)=0},a must first satisfy every constraint\mathcal A(a)=\{i:g_i(a)=0\},\qquad a\text{ must first satisfy every constraint}

For 0≤x≤2, use −x and x−2. Only the lower constraint is active at zero, neither at one, and only the upper constraint at two.

Equality gradients are always included in qualification checks. Numerical near-activity thresholds must be distinguished from exact activity.

기초Foundations

15. 왜 부등식 승수는 0 이상인가?15. Why are inequality multipliers nonnegative?

f(x)=x를 x≥0에서 최소화하면 답은 0입니다. g=−x를 쓰면 정상식 1−ν=0이므로 ν=1≥0입니다. 목적함수가 내려가려는 음의 방향을 제약이 막습니다.

∇f(a)+ν∇g(a)=0,ν≥0,g≤0\nabla f(a)+\nu\nabla g(a)=0,\quad \nu\ge0,\quad g\le0

반면 f(x)=−x를 같은 범위에서 보면 0은 최소가 아니고 위로 x를 늘리며 계속 값을 줄일 수 있습니다. 원점의 정상식을 맞추려면 ν=−1이 필요하므로 비음수 조건이 그 후보를 제거합니다.

벡터 문제에서는 −∇f가 활성 제약의 바깥 법선들의 비음수 결합과 등식 법선의 자유 결합으로 표현됩니다. 이 기하학은 적절한 자격조건 아래 정리로 보장됩니다. 부등식을 −g≥0으로 쓰면서 같은 더하기 Lagrangian·ν≥0 공식을 그대로 쓰면 방향이 뒤집히므로 주의하세요.

Minimizing x subject to x≥0 gives zero. With g=−x, stationarity is 1−ν=0 and ν=1. The constraint blocks the decreasing direction.

∇f(a)+ν∇g(a)=0,ν≥0,g≤0\nabla f(a)+\nu\nabla g(a)=0,\quad \nu\ge0,\quad g\le0

For objective −x, the origin is not a minimum. Its stationarity would require ν=−1, so dual nonnegativity rejects it.

Under a suitable qualification, negative objective gradient is a nonnegative combination of active outward inequality normals plus unrestricted equality normals. Reversing the inequality without changing the convention would reverse this geometry.

기초Foundations

16. 상보성: 여유가 있으면 승수는 016. Complementarity: a slack constraint has zero multiplier

상보성은 νᵢgᵢ(a)=0입니다. νᵢ≥0과 gᵢ≤0에 더해 두 수의 곱이 0이어야 합니다. gᵢ<0이면 반드시 νᵢ=0이고, νᵢ>0이면 반드시 gᵢ=0입니다.

νigi(a)=0:gi(a)<0⇒νi=0,νi>0⇒gi(a)=0\nu_i g_i(a)=0:\qquad g_i(a)<0\Rightarrow\nu_i=0,\qquad \nu_i>0\Rightarrow g_i(a)=0

그러나 gᵢ=0이라고 승수가 반드시 양수는 아닙니다. f=x²를 x≥0에서 최소화하면 x=0이 활성이고 ν=0입니다. 목적함수의 자유 최소가 우연히 경계에 있어 제약의 정상식 기여가 0인 경우입니다.

활성과 양의 승수를 같은 말로 암기하지 마세요. 모든 활성 부등식의 승수가 양수인 추가 성질을 엄격 상보성이라고 부르지만, 기본 KKT는 그것을 요구하지 않습니다.

Complementarity requires νᵢgᵢ(a)=0. A strictly slack constraint must have zero multiplier; a positive multiplier requires an active constraint.

νigi(a)=0:gi(a)<0⇒νi=0,νi>0⇒gi(a)=0\nu_i g_i(a)=0:\qquad g_i(a)<0\Rightarrow\nu_i=0,\qquad \nu_i>0\Rightarrow g_i(a)=0

The converses need not hold. Minimizing x² over x≥0 gives an active constraint at zero with multiplier zero.

Activity and positive multiplier are different concepts. Strict complementarity is an additional property, not a requirement of basic KKT conditions.

기초Foundations

17. KKT는 네 묶음을 동시에 확인하는 조건17. KKT consists of four simultaneous checks

정상식만 풀고 끝내면 제약을 어기거나 승수 부호가 틀린 점이 남을 수 있습니다. KKT는 원문제 허용성, 승수 허용성, 상보성, x정상성의 네 묶음입니다. 등식 승수 λ에는 부호 제한이 없습니다.

h(a)=0,gi(a)≤0primal feasibilityνi≥0dual feasibilityνigi(a)=0complementarity∇f(a)+∑jλj∇hj(a)+∑iνi∇gi(a)=0stationarity\begin{aligned}&h(a)=0,\quad g_i(a)\le0&&\text{primal feasibility}\\&\nu_i\ge0&&\text{dual feasibility}\\&\nu_i g_i(a)=0&&\text{complementarity}\\&\nabla f(a)+\sum_j\lambda_j\nabla h_j(a)+\sum_i\nu_i\nabla g_i(a)=0&&\text{stationarity}\end{aligned}

부등식 승수에 대해 Lagrangian을 미분하고 gᵢ=0을 전부 강요하지 않습니다. 비활성 제약의 gᵢ는 음수일 수 있기 때문입니다. 등식의 ∂L/∂λ=0과 같은 방식으로 처리하면 허용집합을 불필요하게 줄입니다.

KKT가 언제 필요한지에는 자격조건이, 언제 충분한지에는 볼록성 같은 구조가 추가됩니다. 네 식을 정의하는 단계와 그 식의 최적성 보장을 말하는 단계를 나누어 읽으세요.

Stationarity alone may leave infeasible points or wrong-sign multipliers. KKT includes primal feasibility, dual feasibility, complementarity and stationarity; equality multipliers remain unrestricted.

h(a)=0,gi(a)≤0primal feasibilityνi≥0dual feasibilityνigi(a)=0complementarity∇f(a)+∑jλj∇hj(a)+∑iνi∇gi(a)=0stationarity\begin{aligned}&h(a)=0,\quad g_i(a)\le0&&\text{primal feasibility}\\&\nu_i\ge0&&\text{dual feasibility}\\&\nu_i g_i(a)=0&&\text{complementarity}\\&\nabla f(a)+\sum_j\lambda_j\nabla h_j(a)+\sum_i\nu_i\nabla g_i(a)=0&&\text{stationarity}\end{aligned}

Do not set every inequality gᵢ to zero by differentiating in ν as if it were a free equality multiplier. Inactive inequalities may be strictly negative.

Qualifications determine when KKT is necessary; convex structure can make it sufficient. Defining the conditions and proving their guarantees are separate steps.

기초Foundations

18. 구간 실습: 자유 최소와 두 경계를 한 틀로18. Box lab: an interior optimum and both endpoints in one framework

f(x)=½(x−c)²를 a≤x≤b에서 최소화합니다. gL=a−x,gU=x−b를 쓰면 정상식은 x−c−νL+νU=0입니다. a<b일 때 세 경우를 나눕니다.

casex⋆νLνUc<aaa−c0a≤c≤bc00c>bb0c−b\begin{array}{c|c|c|c} \text{case}&x^\star&\nu_L&\nu_U\\c<a&a&a-c&0\\a\le c\le b&c&0&0\\c>b&b&0&c-b\end{array}

중심이 정확히 끝점이면 그 제약은 활성이나 승수가 0입니다. 예를 들어 a=0,b=2,c=0이면 x*=0,νL=νU=0입니다. 중심 c가 밖으로 이동하면 경계 승수가 양수가 됩니다.

실습은 a=b도 허용하지만 위의 a<b 분류와 구별합니다. 한 점만 허용될 때는 두 제약이 동시에 활성이고 승수의 유일성이 달라집니다. 20절에서 따로 계산합니다.

Minimize ½(x−c)² with a≤x≤b. Use gL=a−x and gU=x−b, giving stationarity x−c−νL+νU=0.

casex⋆νLνUc<aaa−c0a≤c≤bc00c>bb0c−b\begin{array}{c|c|c|c} \text{case}&x^\star&\nu_L&\nu_U\\c<a&a&a-c&0\\a\le c\le b&c&0&0\\c>b&b&0&c-b\end{array}

When c is exactly an endpoint, that constraint is active but its multiplier is zero. Moving c outside creates a positive endpoint multiplier.

The table assumes a<b. The lab also permits a=b; the singleton case has two active constraints and potentially nonunique multipliers, treated separately in Section 20.

기초Foundations

19. 활성 승수 0은 오류가 아니라 정상적인 경계 경우19. A zero multiplier at an active boundary is valid

½x²를 x≥0에서 최소화하면 해는 0이고 ∇f=0입니다. g=−x,ν=0으로 KKT 네 조건이 모두 맞습니다. ‘활성은 양수’라고 강요하면 이 쉬운 답을 버리게 됩니다.

ν=0은 이 표현에서 그 제약항의 일계 정상식 기여가 없다는 뜻입니다. 제약을 아주 크게 바꾸거나 다른 목적함수를 택해도 무관하다는 전역적 주장은 아닙니다. 감도 해석도 값함수의 미분 가능성 같은 조건을 따로 확인해야 합니다.

또한 수치 알고리즘에서 작은 양의 승수와 정확한 0을 구별하는 데 오차가 있을 수 있습니다. 최적점과 승수의 계산 정확도, 활성 판단 기준을 함께 보고해야 합니다.

For ½x² over x≥0, the optimum zero satisfies KKT with g=−x and ν=0. Requiring positive multipliers at every active constraint would incorrectly discard this solution.

Zero multiplier means no first-order stationarity contribution from that constraint in this representation. It is not a universal claim of irrelevance under arbitrary changes. Sensitivity also requires separate value-function assumptions.

Numerical uncertainty may blur a small positive multiplier and exact zero. Report multiplier accuracy and activity thresholds together.

기초Foundations

20. 한 점 구간: 해는 유일해도 승수는 여러 개20. A singleton interval can have a unique point and many multipliers

a=b이면 허용점은 x=a 하나뿐입니다. gL=a−x,gU=x−a가 둘 다 활성이라 상보성은 자동입니다. 정상식은 νL−νU=a−c입니다. 비음수 해를 하나 정한 뒤 양쪽에 같은 t≥0을 더해도 여전히 정상식이 맞습니다.

νL=max⁡(a−c,0)+t,νU=max⁡(c−a,0)+t,t≥0\nu_L=\max(a-c,0)+t,\quad \nu_U=\max(c-a,0)+t,\qquad t\ge0

따라서 최소점은 유일하지만 승수는 비유일합니다. 두 활성 기울기는 −1과 1이라 선형 독립이 아닙니다. 양쪽 부등식을 엄격하게 만족하는 점도 없습니다. 그런데 KKT는 여전히 성립합니다.

이 예는 자격조건 실패가 KKT 실패를 뜻하지 않는다는 중요한 경고입니다. 자격조건은 최적점에서 KKT를 보장하는 충분한 가정이며, 실패했을 때에는 별도 검사가 필요합니다. 다음 예에서는 실제로 KKT가 실패하는 경우를 비교합니다.

When a=b, only x=a is feasible and both bounds are active. Stationarity becomes νL−νU=a−c, with the following family of nonnegative solutions.

νL=max⁡(a−c,0)+t,νU=max⁡(c−a,0)+t,t≥0\nu_L=\max(a-c,0)+t,\quad \nu_U=\max(c-a,0)+t,\qquad t\ge0

The optimizer is unique but the multipliers are not. Active gradients −1 and 1 are dependent, and strict feasibility fails, yet KKT holds.

Thus failed qualification does not automatically imply failed KKT. Qualifications guarantee conditions under assumptions; when they fail, investigate the specific problem.

학부 연결 · 선택Undergraduate bridge · optional

21. LICQ: 등식과 활성 부등식의 기울기 독립성21. LICQ requires independent equality and active-inequality gradients

선형 독립 제약 자격조건(LICQ)은 후보 a에서 모든 등식 기울기와 활성 부등식 기울기를 모았을 때 선형 독립이라는 조건입니다. 비활성 부등식의 기울기는 여기에 넣지 않습니다.

{∇hj(a)}j ∪ {∇gi(a):i∈A(a)}linearly independent\{\nabla h_j(a)\}_j\ \cup\ \{\nabla g_i(a):i\in\mathcal A(a)\}\quad\text{linearly independent}

변수 하나의 단순한 구간에서 끝점 하나만 활성일 때 그 기울기 ±1은 독립입니다. 한 점 구간의 두 활성 기울기는 독립이 아닙니다. 기울기가 0인 활성 제약 하나도 LICQ를 어깁니다.

LICQ는 해를 찾는 알고리즘이 아니라 특정 점의 미분 기하 조건입니다. 선형 제약과 비선형 제약 모두에서 검사할 수 있으며, 한 점에서 성립한다고 모든 점에 성립하는 것은 아닙니다. 정수로 쓴 예의 정확한 랭크와 컴퓨터가 정한 수치 랭크도 구별합니다.

The linear independence constraint qualification collects every equality gradient and only the active inequality gradients, requiring them to be linearly independent.

{∇hj(a)}j ∪ {∇gi(a):i∈A(a)}linearly independent\{\nabla h_j(a)\}_j\ \cup\ \{\nabla g_i(a):i\in\mathcal A(a)\}\quad\text{linearly independent}

A single active interval endpoint has nonzero gradient ±1 and satisfies LICQ. The two gradients of a singleton interval do not. Any zero active gradient also violates it.

LICQ is a pointwise geometric condition, not a solving algorithm. Distinguish exact rank from tolerance-based numerical rank.

학부 연결 · 선택Undergraduate bridge · optional

22. 필요조건 정리: C¹ 국소 최소와 LICQ22. A necessary-condition theorem: C¹ local minima with LICQ

목적함수와 유한 개 제약식이 a 주변에서 C¹이고, a가 허용되는 국소 최소점이며 LICQ가 성립하면, 어떤 등식 승수 λ와 비음수 부등식 승수 ν가 존재해 KKT를 만족합니다. LICQ 아래 이 승수들은 주어진 점에서 유일합니다.

세 가지를 구별하세요. ① 최소점 a가 존재한다는 말 ② 그 점에서 승수가 존재한다는 말 ③ KKT 해를 풀면 반드시 최소라는 말입니다. 이 정리는 ②를 보장하고 ③은 일반적으로 보장하지 않습니다. 비볼록 문제의 KKT 후보는 최대·안장일 수 있습니다.

LICQ보다 약한 다른 자격조건도 있지만 이 입구에서는 한 가지 검사 가능한 충분조건을 정확히 익힙니다. 선택 심화에서는 접선 원뿔과 선형화 원뿔을 연결하고 Farkas의 대안정리로 승수 표현을 얻습니다. 원뿔의 연결 없이 정상식을 보편 법칙처럼 선언하지 않습니다.

If the objective and finitely many constraint functions are C¹ near a feasible local minimizer a and LICQ holds there, multipliers exist satisfying KKT. Under LICQ the multipliers at that point are unique.

Separate existence of a primal optimizer, existence of multipliers there, and sufficiency of a KKT solution. This theorem gives the second, not a general sufficiency claim. Nonconvex KKT candidates can be maxima or saddles.

Weaker qualifications exist. An advanced route links tangent and linearized cones and uses a theorem of alternatives to obtain multiplier representations. The elementary entry focuses on one precisely stated, checkable qualification.

기초Foundations

23. 자격조건 실습: 허용 반경이 0이 되는 순간23. Qualification lab: a radius collapsing to zero

f(x)=x를 g(x)=x²−r²≤0에서 최소화하고 r≥0이라 합시다. r>0이면 허용구간은 [−r,r], 해는 −r이고 활성 기울기 g′=−2r≠0입니다. 정상식 1−2rν=0에서 ν=1/(2r)>0입니다.

r>0:x⋆=−r,ν⋆=12r;r=0:x⋆=0,1+ν 0=0 impossibler>0:\quad x^\star=-r,\quad\nu^\star=\frac1{2r};\qquad r=0:\quad x^\star=0,\quad 1+\nu\,0=0\text{ impossible}

r=0에서는 허용점이 0 하나라 전역 최소는 확실히 존재하지만 KKT 승수는 없습니다. 제약의 기울기가 0이 되어 일차 정보가 실제 허용 방향을 설명하지 못합니다. ‘최적인데 KKT가 틀렸다’가 아니라 필요조건 정리의 자격 가정이 실패한 것입니다.

작은 양의 r에서 ν가 매우 커지는 현상도 관찰하세요. r=0에서 무한대라는 실수 승수를 넣어 해결할 수는 없습니다. KKT는 유한한 실수 승수에 관한 조건입니다.

Minimize x subject to x²−r²≤0 with r≥0. For positive r, the optimum is −r and its nonzero active gradient gives multiplier 1/(2r).

r>0:x⋆=−r,ν⋆=12r;r=0:x⋆=0,1+ν 0=0 impossibler>0:\quad x^\star=-r,\quad\nu^\star=\frac1{2r};\qquad r=0:\quad x^\star=0,\quad 1+\nu\,0=0\text{ impossible}

At r=0 the singleton zero is certainly a global optimizer, but no KKT multiplier exists. The zero constraint gradient loses first-order information, violating the qualification used by the necessary theorem.

Multipliers grow as positive r approaches zero. Infinity is not an admissible real multiplier that repairs stationarity at zero.

기초Foundations

24. 자격조건 실패·KKT 실패·최적성은 서로 다른 판정24. Failed qualification, failed KKT and optimality are different judgments

한 점 구간의 두 선형 부등식은 LICQ가 실패해도 승수가 있습니다. x²≤0에서 x를 최소화하면 LICQ가 실패하고 승수도 없습니다. 두 문제 모두 유일한 전역 최소점은 0으로 존재합니다.

따라서 ‘CQ 실패 ⇒ 최적점 아님’과 ‘CQ 실패 ⇒ KKT 불가능’은 둘 다 틀립니다. 실패는 보장 정리를 적용할 수 없다는 뜻입니다. 실제 허용집합과 정상식을 직접 조사해야 합니다.

반대로 KKT 네 조건을 만족해도 일반 비볼록 문제에서는 최적성을 얻지 못합니다. 원의 최대 후보가 앞의 반례입니다. 다음 묶음은 어떤 볼록 구조에서 KKT가 전역 최소의 충분한 증명으로 바뀌는지 다룹니다.

A singleton written with two affine bounds violates LICQ but has multipliers. Minimizing x with x²≤0 violates LICQ and has none. Both still have the unique global optimizer zero.

Failed qualification therefore proves neither nonoptimality nor absence of KKT multipliers. It means the guarantee theorem is unavailable; inspect the actual set and equations.

Conversely, KKT alone does not establish optimality for nonconvex problems, as the circle maximum illustrates. Convex structure supplies a separate sufficiency theorem.

기초Foundations

25. 볼록 문제는 목적·부등식이 볼록, 등식은 아핀25. A convex problem has convex objectives/inequalities and affine equalities

이 장의 미분 가능한 볼록 표준형은 볼록한 열린 정의역에서 f와 각 gᵢ가 볼록이고, 등식은 h(x)=Ax−b처럼 아핀인 문제입니다. 이때 부등식의 0 이하 영역과 아핀 등식의 교집합은 볼록입니다.

f,gi convex,h(x)=Ax−b,gi(x)≤0f,g_i\text{ convex},\qquad h(x)=Ax-b,\qquad g_i(x)\le0

등식 h가 단지 볼록하다는 사실만으로 충분하지 않습니다. x²+y²=1은 볼록함수의 등식이지만 원 둘레는 볼록집합이 아닙니다. 부등식 x²+y²−1≤0이면 원판이 되어 볼록합니다.

같은 허용집합을 비볼록한 식으로도 쓸 수 있으므로 여기서는 충분성 정리에 사용할 표준형의 가정을 정확히 말합니다. 최적 문제의 기하가 볼록하다는 사실과 특정 제약 표현이 이 표준 가정을 만족한다는 사실도 구별하세요.

Our differentiable convex standard form uses convex f and gᵢ on a convex open domain and affine equalities h=Ax−b. The feasible intersection is then convex.

f,gi convex,h(x)=Ax−b,gi(x)≤0f,g_i\text{ convex},\qquad h(x)=Ax-b,\qquad g_i(x)\le0

A convex equality function alone is insufficient: x²+y²=1 defines a nonconvex circumference, while the inequality x²+y²−1≤0 defines a convex disk.

These are assumptions on a representation used by the theorem. A convex feasible set may admit other, less useful nonlinear representations.

학부 연결 · 선택Undergraduate bridge · optional

26. 볼록 문제의 KKT 충분성은 자격조건 없이 증명26. Convex KKT sufficiency does not require a qualification

볼록 표준형에서 허용점 a와 승수 λ,ν가 KKT를 만족한다고 합시다. ν≥0이므로 x에 대한 Lagrangian은 볼록입니다. 정상식으로 ∇ₓL(a)=0이므로 19장의 접평면 부등식에서 L(y)≥L(a)를 얻습니다.

f(y)≥L(y,λ,ν)≥L(a,λ,ν)=f(a)for every feasible yf(y)\ge\mathcal L(y,\lambda,\nu)\ge\mathcal L(a,\lambda,\nu)=f(a)\qquad\text{for every feasible }y

첫 부등식은 y의 허용성과 ν≥0에서, 마지막 등호는 a의 허용성·상보성에서 옵니다. 따라서 a는 전역 최소입니다. 엄격볼록 목적함수라면 허용집합 위에서 해는 유일합니다.

이 충분성 증명은 LICQ나 Slater를 사용하지 않았습니다. 그 조건들은 최적점에서 승수가 존재함을 보장하는 필요성 방향에 쓰입니다. ‘이미 KKT를 찾았다면 전역 최소’와 ‘모든 최적점에 KKT 승수가 있다’를 같은 보장으로 합치지 마세요.

Suppose a feasible point and multipliers satisfy KKT in convex standard form. The Lagrangian is convex in x because ν≥0. Stationarity therefore makes a its global minimizer.

f(y)≥L(y,λ,ν)≥L(a,λ,ν)=f(a)for every feasible yf(y)\ge\mathcal L(y,\lambda,\nu)\ge\mathcal L(a,\lambda,\nu)=f(a)\qquad\text{for every feasible }y

Feasibility and nonnegative multipliers give the first inequality; complementarity gives the final equality. This proves global optimality. Strict convexity of the objective gives uniqueness on the feasible set.

No LICQ or Slater condition was used. Qualifications guarantee multiplier existence in the necessary direction; they are not required for this sufficiency argument once KKT has been verified.

학부 연결 · 선택Undergraduate bridge · optional

27. Slater 조건: 볼록 문제에 엄격한 허용점 하나27. Slater gives a strictly feasible point for a convex problem

간단한 Slater 조건은 등식을 만족하면서 모든 부등식을 엄격하게 gᵢ(x̃)<0으로 만족하는 점이 정의역 안에 하나 있는 것입니다. 여기서는 함수들이 공통의 열린 볼록 영역에서 유한하고 미분 가능하며, 등식은 아핀인 표준형을 사용합니다.

Ax~=b,gi(x~)<0for every inequality iA\widetilde x=b,\qquad g_i(\widetilde x)<0\quad\text{for every inequality }i

이 볼록 문제에서 유한한 최적값이 있고 Slater 조건이 성립하면 강쌍대성과 쌍대 최적 승수의 달성을 보장합니다. 원문제 최소점이 실제로 존재하면 그 점에 대한 KKT 승수가 존재합니다. Slater가 원문제 최소점의 달성을 자동 보장하는 것은 아닙니다.

반경 r>0인 x²−r²≤0에는 x̃=0이 엄격 허용점이지만 r=0에는 없습니다. 일반적인 정리는 상대적 내부와 아핀 부등식에 대한 완화형도 다룹니다. 이 장은 위의 단순 충분형만 사용하므로 엄격 허용점이 없다고 강쌍대성이나 KKT가 반드시 실패한다고 결론 내리지 않습니다.

A simple Slater condition asks for one point in the common open convex domain satisfying affine equalities and every inequality strictly.

Ax~=b,gi(x~)<0for every inequality iA\widetilde x=b,\qquad g_i(\widetilde x)<0\quad\text{for every inequality }i

For this convex problem with finite optimal value, Slater guarantees strong duality and attained optimal dual multipliers. If a primal minimizer is attained, KKT multipliers exist there. Slater does not by itself ensure primal attainment.

The radius constraint has strict feasible point zero for r>0, but none for r=0. General versions use relative interiors and refinements for affine inequalities. Failure of our simple sufficient version does not prove failure of duality or KKT.

기초Foundations

28. 허용성·원문제 달성·승수 달성을 분리28. Separate feasibility, primal attainment and multiplier attainment

최적 조건을 쓰기 전에 허용점이 있는지부터 확인합니다. x=0과 x=1을 동시에 요구하면 허용집합이 비어 있습니다. 이 경우 보통의 유한 최소점과 KKT 해를 찾는 절차를 시작할 수 없습니다.

허용점이 있어도 최소가 달성되지 않을 수 있습니다. eˣ를 x≤0에서 최소화하면 엄격 허용점 −1도 있고 볼록 문제지만, x→−∞에서 0으로 접근할 뿐 최소점은 없습니다. 원문제의 달성은 콤팩트성·강제성 등 별도의 존재 조건으로 확인합니다.

나중에 보듯 최적값은 같아도 쌍대 승수가 유한한 점에서 달성되지 않는 경우도 있습니다. 원문제 최적값 p*, 쌍대 최적값 d*, 원문제 해 x*, 쌍대 해 (λ*,ν*)는 네 대상을 나누어 적어야 합니다.

Check feasibility first. Simultaneous requirements x=0 and x=1 give an empty set, so an ordinary finite minimizer cannot be sought.

Feasibility does not imply attainment. Minimizing eˣ over x≤0 is convex and strictly feasible, but only approaches zero as x tends to negative infinity. Compactness or coercivity can supply separate primal existence guarantees.

Even equality of optimal values need not imply attained finite dual multipliers. Keep primal and dual values distinct from primal and dual optimizers.

기초Foundations

29. 쌍대함수는 고정 승수에서 Lagrangian의 하한값29. The dual function infimizes the Lagrangian at fixed multipliers

승수 λ,ν를 고정한 뒤 x를 원래 제약 없이 정의역 D 전체에서 움직여 Lagrangian의 하한값을 구합니다. 이를 쌍대함수 q라고 하겠습니다. 승수는 이 안쪽 계산에서 변수가 아니라 고정값입니다.

q(λ,ν)=inf⁡x∈DL(x,λ,ν),ν≥0,λ∈Rmq(\lambda,\nu)=\inf_{x\in D}\mathcal L(x,\lambda,\nu),\qquad \nu\ge0,\quad\lambda\in\mathbb R^m

inf는 가능한 모든 하한 중 가장 큰 값인 하한값입니다. 최솟값이 실제로 생기지 않아도 정의할 수 있습니다. 예를 들어 eˣ의 실수 전체 inf는 0이지만 어떤 x에서도 0을 얻지 못합니다. 아래로 무한하면 q=−∞입니다. 제약식 자체를 없앤 것이 아니라 그 정보를 Lagrangian 항으로 옮겨 하한을 만드는 것입니다.

x정상식을 푼 값이 항상 이 inf라는 보장은 없습니다. Lagrangian이 비볼록이면 정상 후보가 최대일 수도 있습니다. 쌍대함수를 계산할 때는 안쪽의 전역 하한값을 구해야 합니다.

Fix multipliers and infimize the Lagrangian over the original function domain D, without imposing the primal constraints in this inner optimization.

q(λ,ν)=inf⁡x∈DL(x,λ,ν),ν≥0,λ∈Rmq(\lambda,\nu)=\inf_{x\in D}\mathcal L(x,\lambda,\nu),\qquad \nu\ge0,\quad\lambda\in\mathbb R^m

An infimum is the greatest of all lower bounds; it need not be attained. For example, eˣ on the real line has infimum zero without ever equaling zero. An unbounded-below inner problem gives −∞. Constraints enter through Lagrangian terms to create a lower bound.

A stationary value need not equal this infimum for a nonconvex Lagrangian. The inner calculation requires a global infimum, not just a stationary candidate.

기초Foundations

30. 약쌍대성은 볼록성 없이도 성립30. Weak duality does not require convexity

임의의 허용점 y와 ν≥0을 고릅시다. 등식항은 0, 부등식항은 0 이하이므로 L(y,λ,ν)≤f(y)입니다. q는 모든 x에 대한 하한값이므로 q≤L(y)입니다.

q(λ,ν)≤L(y,λ,ν)≤f(y),d⋆:=sup⁡λ∈Rm, ν≥0q(λ,ν)≤p⋆:=inf⁡feasible xf(x)q(\lambda,\nu)\le\mathcal L(y,\lambda,\nu)\le f(y),\qquad d^\star:=\sup_{\lambda\in\mathbb R^m,\,\nu\ge0}q(\lambda,\nu)\le p^\star:=\inf_{\text{feasible }x}f(x)

이것이 약쌍대성입니다. sup는 가능한 모든 상한 중 가장 작은 값인 상한값으로, 가장 큰 값이 달성되지 않아도 정의합니다. 원문제 최소화의 아래쪽 보증값을 쌍대 문제가 가능한 한 높입니다. f(y)라는 허용 상한과 q라는 하한을 함께 구하면 최적값을 끼울 수 있습니다.

목적함수나 제약의 볼록성을 사용하지 않았습니다. 다만 ν의 부호와 g≤0 관례가 중요합니다. 부호를 틀리면 제약항이 0 이하라는 핵심 부등식이 사라집니다.

For feasible y and nonnegative ν, the equality terms vanish and inequality terms are nonpositive. The infimum q is no greater than the Lagrangian at y.

q(λ,ν)≤L(y,λ,ν)≤f(y),d⋆:=sup⁡λ∈Rm, ν≥0q(λ,ν)≤p⋆:=inf⁡feasible xf(x)q(\lambda,\nu)\le\mathcal L(y,\lambda,\nu)\le f(y),\qquad d^\star:=\sup_{\lambda\in\mathbb R^m,\,\nu\ge0}q(\lambda,\nu)\le p^\star:=\inf_{\text{feasible }x}f(x)

A supremum is the least of all upper bounds, whether or not a largest value is attained. The dual problem raises the certified lower bound. Combining a feasible primal value with a dual bound brackets the optimal value.

No convexity was used. The signs ν≥0 and g≤0 are essential to the bounding argument.

학부 연결 · 선택Undergraduate bridge · optional

31. 쌍대함수는 원문제가 비볼록이어도 오목31. The dual function is concave even for a nonconvex primal

각 x를 고정하면 L은 승수에 대해 아핀입니다. q는 이 아핀함수들의 점별 하한입니다. 두 승수를 섞은 경우 모든 x에서 가중합이 각각의 하한값의 가중합 이상이므로 q는 오목합니다.

q((1−t)z1+tz2)≥(1−t)q(z1)+tq(z2),0≤t≤1q((1-t)z_1+tz_2)\ge(1-t)q(z_1)+tq(z_2),\qquad 0\le t\le1

여기서 z는 λ,ν를 묶은 승수 벡터입니다. 두 쌍대함숫값이 유한한 경우 위 부등식을 보통의 실수식으로 읽으면 됩니다. q=−∞인 승수는 유한한 하한 인증에 쓸 수 없으므로 별도 처리합니다.

오목함수 최대화라는 쌍대 구조가 좋아도 원문제와 최적값이 같다는 보장은 아직 없습니다. 약쌍대성은 d*≤p*이고, 등호를 강쌍대성이라고 합니다.

At fixed x, the Lagrangian is affine in its multipliers. Taking a pointwise infimum of these affine functions produces a concave dual function.

q((1−t)z1+tz2)≥(1−t)q(z1)+tq(z2),0≤t≤1q((1-t)z_1+tz_2)\ge(1-t)q(z_1)+tq(z_2),\qquad 0\le t\le1

Here z bundles the multipliers; read the displayed real inequality where endpoint values are finite. A value −∞ provides no finite lower certificate.

Concavity of the dual does not yet equate primal and dual values. Their equality is the additional property called strong duality.

기초Foundations

32. 쌍대 실습: 반직선에 대한 제곱거리32. Duality lab: squared distance to a half-line

f(x)=½(x−c)²를 x≥0에서 최소화합니다. g=−x로 쓰면 L=½(x−c)²−νx이고, 고정 ν에서 x정상식은 x=c+ν입니다. x에 대한 이차계수가 양수이므로 이 점이 안쪽 전역 최소입니다.

q(ν)=−cν−ν22,ν≥0,ν⋆=max⁡(−c,0),x⋆=max⁡(c,0)q(\nu)=-c\nu-\frac{\nu^2}{2},\quad\nu\ge0,\qquad \nu^\star=\max(-c,0),\quad x^\star=\max(c,0)

c=−2이면 x*=0,ν*=2이고 p*=q(2)=2입니다. c=3이면 x*=3,ν*=0이고 두 값은 0입니다. c=0이면 x*=ν*=0이고 활성 제약의 승수가 0입니다.

실습에서 임의의 허용 x≥0와 ν≥0을 골라 f(x)≥q(ν)를 확인합니다. 둘 다 최적일 때만이 아니라 모든 허용 쌍에서 하한 관계가 성립합니다. 다음 절은 두 값의 차이가 무엇으로 구성되는지 보여 줍니다.

Minimize ½(x−c)² over x≥0. With g=−x, the inner Lagrangian minimum occurs at x=c+ν.

q(ν)=−cν−ν22,ν≥0,ν⋆=max⁡(−c,0),x⋆=max⁡(c,0)q(\nu)=-c\nu-\frac{\nu^2}{2},\quad\nu\ge0,\qquad \nu^\star=\max(-c,0),\quad x^\star=\max(c,0)

For c=−2 the optima are x=0,ν=2 with common value two. For c=3 they are x=3,ν=0 with value zero. For c=0 both vanish despite an active constraint.

Choose arbitrary feasible primal and dual inputs to verify the lower bound, not merely the optimal pair.

기초Foundations

33. 쌍대차이는 정상성 오차와 상보성으로 분해33. The gap separates stationarity and complementarity errors

위 반직선 문제에서는 허용 x≥0,ν≥0에 대해 정확한 항등식을 얻을 수 있습니다. 두 항이 각각 0 이상이므로 약쌍대성도 직접 보입니다.

f(x)−q(ν)=12(x−c−ν)2+νx≥0f(x)-q(\nu)=\frac12(x-c-\nu)^2+\nu x\ge0

첫 항은 정상식 x−c−ν=0의 제곱 오차, 둘째는 상보성 νx=0의 오차입니다. 둘 다 0이면 KKT가 성립하고 차이도 0입니다. 허용성은 이 해석에 포함되어 있어야 합니다. x<0을 넣으면 νx가 음수일 수 있어 하한 인증이 아닙니다.

유한한 p*,d*에서 f(x)−q(ν)가 작으면 원문제의 최적값 오차 f(x)−p*도 그보다 작거나 같습니다. 그러나 계수의 거리 ‖x−x*‖가 얼마나 작은지는 강볼록성 등 추가 구조로 연결해야 합니다.

For feasible x≥0 and ν≥0 in the half-line example, an exact identity decomposes the primal-dual gap.

f(x)−q(ν)=12(x−c−ν)2+νx≥0f(x)-q(\nu)=\frac12(x-c-\nu)^2+\nu x\ge0

The first term is squared stationarity error and the second complementary slackness. Feasibility matters: negative x could make the second term negative.

For finite optimal values, the gap bounds primal objective suboptimality. A bound on distance to the optimizer needs further structure such as strong convexity.

선택 심화Optional extension

34. 비볼록 문제에서는 최적 쌍대 하한도 느슨할 수 있다34. A nonconvex problem can have a positive optimal duality gap

다음은 숫자로 끝까지 확인할 수 있는 비볼록 반례입니다. f(x)=x²(x²−2)²를 h(x)=x²−1=0 아래에서 최소화합니다. 허용점 ±1의 값은 둘 다 1이므로 p*=1입니다.

L(x,λ)=x2(x2−2)2+λ(x2−1),L(0,λ)=−λ,L(2,λ)=λ\mathcal L(x,\lambda)=x^2(x^2-2)^2+\lambda(x^2-1),\qquad \mathcal L(0,\lambda)=-\lambda,\quad\mathcal L(\sqrt2,\lambda)=\lambda

따라서 q(λ)≤min(−λ,λ)=−|λ|≤0입니다. λ=0에서는 f≥0이고 x=0에서 0이라 q(0)=0입니다. 쌍대 최적값 d*=0, 원문제 값 p*=1로 차이는 1입니다. 두 최적값은 각각 달성되어도 서로 다를 수 있습니다.

약쌍대성은 여전히 맞습니다. 실패한 것은 등호 보장입니다. 이 제약은 비아핀 등식이고 허용집합도 비볼록이므로 앞의 볼록 충분성·Slater 표준 정리를 적용할 수 없습니다.

Minimize f(x)=x²(x²−2)² subject to x²−1=0. The feasible inputs ±1 both give one, so p*=1.

L(x,λ)=x2(x2−2)2+λ(x2−1),L(0,λ)=−λ,L(2,λ)=λ\mathcal L(x,\lambda)=x^2(x^2-2)^2+\lambda(x^2-1),\qquad \mathcal L(0,\lambda)=-\lambda,\quad\mathcal L(\sqrt2,\lambda)=\lambda

Hence q(λ)≤−|λ|≤0. At λ=0, nonnegativity and a zero at x=0 give q(0)=0. Thus d*=0 and the positive optimal duality gap is one, despite attainment on both sides.

Weak duality remains true. The non-affine equality and nonconvex feasible set fall outside the convex standard guarantees.

선택 심화Optional extension

35. 강쌍대성과 승수 달성은 같은 말이 아니다35. Strong duality and attained multipliers are distinct

반경 0의 예 min x subject to x²≤0으로 돌아갑시다. 원문제는 x*=0,p*=0입니다. ν>0이면 L=x+νx²를 완전제곱해 q(ν)=−1/(4ν)이고, ν=0이면 q=−∞입니다.

sup⁡ν≥0q(ν)=0=p⋆,q(ν)<0for every finite ν>0\sup_{\nu\ge0}q(\nu)=0=p^\star,\qquad q(\nu)<0\quad\text{for every finite }\nu>0

강쌍대성은 성립하지만 최적 승수를 유한한 ν에서 얻지 못합니다. ν→∞로 하한이 0에 접근할 뿐입니다. 그래서 실제 최소점이 있어도 KKT 승수가 없는 앞의 계산과 모순되지 않습니다.

‘강쌍대성이면 KKT’라고 짧게 말할 때는 실제로 원문제·쌍대 최적해가 달성된 쌍을 전제하는지 확인하세요. Slater 조건의 유용함은 적절한 볼록 유한값 문제에서 값의 등호와 쌍대 달성을 함께 보장한다는 데 있습니다.

Return to minimizing x with x²≤0. Its attained primal value is zero. For ν>0, completing the square gives q(ν)=−1/(4ν); at zero the infimum is −∞.

sup⁡ν≥0q(ν)=0=p⋆,q(ν)<0for every finite ν>0\sup_{\nu\ge0}q(\nu)=0=p^\star,\qquad q(\nu)<0\quad\text{for every finite }\nu>0

Strong duality holds, yet no finite optimal multiplier is attained. This agrees with the earlier failure of KKT at the primal optimum.

When deriving KKT from zero duality gap, check that primal and dual optimizers actually exist. Slater is useful partly because it supplies dual attainment as well as equality of values under the stated convex finite-value assumptions.

학부 연결 · 선택Undergraduate bridge · optional

36. 달성된 0 차이에서 KKT가 따라오는 이유36. Why an attained zero gap implies KKT

허용 x*와 쌍대 허용 (λ*,ν*)가 실제 최적해이고 두 값이 같다고 합시다. 약쌍대성 사슬 q≤L(x*)≤f(x*)의 양끝이 같으므로 가운데도 같습니다. 따라서 x*가 고정 승수 Lagrangian의 전역 최소이며, 열린 정의역에서 미분 가능하면 x정상식이 성립합니다.

또 L(x*)=f(x*)는 Σνᵢ*gᵢ(x*)=0입니다. 각 항이 0 이하이므로 모두 0이어야 하고 상보성이 나옵니다. 원문제·쌍대 허용성은 이미 가정했으므로 KKT 네 묶음이 완성됩니다.

이 논증 자체는 원문제의 볼록성을 사용하지 않습니다. 하지만 비볼록 문제에서 강쌍대성과 달성을 얻는 일은 별도이며 항상 가능하지 않습니다. 조건을 하나씩 명시하면 필요조건·충분조건·쌍대성의 서로 다른 논증이 연결됩니다.

Suppose feasible primal and dual optimizers are attained with equal values. Both inequalities q≤L(x*)≤f(x*) must then be equalities. Hence x* globally minimizes the fixed-multiplier Lagrangian, giving stationarity when differentiable on an open domain.

Equality L(x*)=f(x*) makes the sum of nonpositive terms νᵢgᵢ vanish, forcing each term to vanish and giving complementarity. Feasibility supplies the remaining KKT parts.

This argument does not itself require primal convexity, but attaining equal optimal values is a separate, nonautomatic property for nonconvex problems.

학부 연결 · 선택Undergraduate bridge · optional

37. 승수의 감도 해석은 값함수와 부호를 확인37. Sensitivity requires a value function and a sign convention

등식 x+y=B의 목표거리 문제에서 최적값은 V(B)=(p+q−B)²/4입니다. 직접 미분하면 V′(B)=−λ*(B)입니다. p=3,q=1,B=2에서는 λ=1이라 합 기준 B를 조금 늘리면 최적 거리가 줄어드는 일계 변화율은 −1입니다.

h(x,B)=x+y−B,V′(B)=−λ⋆(B)h(x,B)=x+y-B,\qquad V'(B)=-\lambda^\star(B)

이는 이 예의 매끄러운 값함수에서 직접 검산한 결과입니다. 일반적으로 승수를 감도라고 읽으려면 문제의 매개변수화, 정상식 부호, 최적해·승수의 안정성과 값함수 미분 가능성 등 필요한 조건을 확인합니다. 활성집합이 바뀌면 값함수가 꺾여 보통 미분이 없을 수 있습니다.

볼록 문제의 우변 완화 g(x)≤b에서는 기준 문제에서 강쌍대성이 성립하고 최적 쌍대 승수가 달성되면 −ν*가 값함수의 아래 지지 기울기를 줍니다. Slater 조건은 앞서 이 보장을 주는 한 충분조건입니다. 값함수가 미분 가능하면 그 미분과 연결됩니다. 실제 관측으로 만든 손실의 승수는 그 선택한 요약 문제의 감도이며, 현실의 정책·기업 이익에 대한 인과 가격이라고 자동 해석하지 않습니다.

For the line-projection example, V(B)=(p+q−B)²/4. Direct differentiation verifies V′(B)=−λ*(B). The sign follows from writing the equality as x+y−B=0.

h(x,B)=x+y−B,V′(B)=−λ⋆(B)h(x,B)=x+y-B,\qquad V'(B)=-\lambda^\star(B)

General sensitivity interpretations require the parameterization, sign convention, stability and value-function differentiability assumptions. Active-set changes can produce nonsmooth value functions.

In convex right-hand-side perturbations g(x)≤b, strong duality at the reference problem and attained optimal dual multipliers provide lower supporting slopes −ν*. Slater supplies one sufficient guarantee. If the value function is differentiable, these agree with its derivatives. A multiplier of a chosen data-summary loss is sensitivity of that mathematical summary, not automatically a causal policy or profit price.

기초Foundations

38. 제약식의 단위와 배율이 승수 숫자를 바꾼다38. Constraint units and scaling change multiplier numbers

등식 h=0을 s·h=0으로 바꾸되 s≠0이라 합시다. 같은 Lagrangian 기여를 보존하려면 새 승수는 λ/s입니다. 부등식은 s>0일 때에만 s·g≤0이 같은 허용집합이고 새 승수는 ν/s입니다.

h~=sh, λ~=λ/s;g~=tg, ν~=ν/t(t>0)\widetilde h=s h,\ \widetilde\lambda=\lambda/s;\qquad \widetilde g=t g,\ \widetilde\nu=\nu/t\quad(t>0)

따라서 승수가 크다는 숫자만으로 제약의 현실적 중요도를 비교하면 단위 선택을 효과로 오해할 수 있습니다. [λ]=[f]/[h], [ν]=[f]/[g]이고 같은 목적함수 안에서도 제약 단위가 다르면 승수 단위가 다릅니다.

목적함수 f를 양수 c배 하면 모든 승수도 c배로 바뀔 수 있지만 최소점은 같습니다. 표준화는 계산을 개선할 수 있으나 원단위로 돌아가는 변환을 함께 보존해야 합니다. 제약식을 세제곱하는 비선형 변형은 단순 단위 변환과 달라 정칙성을 파괴할 수 있습니다.

Replacing an equality by s·h=0 for nonzero s preserves the Lagrangian contribution with multiplier λ/s. For inequalities, only positive scaling preserves the direction and gives multiplier ν/s.

h~=sh, λ~=λ/s;g~=tg, ν~=ν/t(t>0)\widetilde h=s h,\ \widetilde\lambda=\lambda/s;\qquad \widetilde g=t g,\ \widetilde\nu=\nu/t\quad(t>0)

Multiplier magnitude depends on units: [λ]=[f]/[h] and [ν]=[f]/[g]. Raw numbers alone do not rank real-world importance.

Positive objective scaling also scales multipliers while preserving optimizers. Keep inverse unit transformations when normalizing. Nonlinear reformulations, such as cubing a constraint, are not harmless unit changes.

기초Foundations

39. 수치 KKT 검산은 네 잔차와 조건을 함께39. Numerical KKT checks need all residuals and assumptions

수치 해를 받았다면 등식 잔차 h, 부등식 위반 max(g,0), 음의 승수 위반 max(−ν,0), 상보 곱 νg, 정상식 벡터를 계산합니다. 한 잔차만 작은 것으로 종료하지 않습니다.

서로 단위가 다른 잔차를 그냥 더하지 말고 적절한 척도와 허용오차를 정합니다. 정의역·원문제 허용성도 확인하세요. 정상식만 작으면 허용되지 않는 점이 남을 수 있고, 제약만 맞으면 목적함수가 최적이 아닐 수 있습니다.

비볼록 문제에서는 모든 잔차가 정확히 0이어도 최소 보장이 아닙니다. 볼록 문제에서는 정확 KKT가 충분하지만 근사 잔차에서 정확한 목적값 오차로 가려면 추가 상계가 필요합니다. 쌍대함수의 진짜 하한과 원문제 허용값을 구했을 때의 gap 인증과, 단지 정상식 잔차만 보는 것을 구별하세요.

Check equality residuals, positive inequality violations, negative multiplier violations, complementarity products and the stationarity vector. Do not assess only one component.

Use scales and tolerances consistent with heterogeneous units. Check domains and feasibility as well as equations.

Exact zero residuals do not certify a minimum in general nonconvex problems. Exact KKT is sufficient in convex form, but translating approximate residuals to objective error requires additional bounds. A genuinely evaluated dual lower bound with a feasible primal value is a different certificate from a small stationarity residual alone.

기초Foundations

40. 벌점함수와 Lagrangian 승수는 같은 방법이 아니다40. A penalty function is not the same as multiplier stationarity

제약 위반을 벌주는 벌점함수도 있지만 이를 Lagrangian과 같은 것으로 생각하면 안 됩니다. min x subject to x=0은 해가 0입니다. 위반 제곱 벌점을 넣은 Pρ(x)=x+ρx²/2는 ρ>0에서 최소점 −1/ρ를 줍니다.

Pρ′(x)=1+ρx=0⟹xρ=−1/ρ≠0for finite ρP_\rho'(x)=1+\rho x=0\quad\Longrightarrow\quad x_\rho=-1/\rho\ne0\quad\text{for finite }\rho

유한한 ρ에서는 원래 제약을 정확히 만족하지 않습니다. ρ→∞로 해가 0에 접근하지만 계산의 민감도와 조건이 달라질 수 있습니다. Lagrangian은 λ=−1로 정상식과 원래 제약을 함께 맞춥니다.

이것은 모든 벌점법이 부정확하다는 뜻이 아닙니다. 다른 벌점·증강 Lagrangian·알고리즘에는 각각의 이론이 있습니다. 이 입구에서는 고정 제곱 벌점이 원문제와 자동으로 같은 해를 주지 않는다는 차이를 확인합니다.

For minimizing x subject to x=0, a fixed squared penalty gives Pρ=x+ρx²/2. Its minimizer is not feasible at any finite positive penalty weight.

Pρ′(x)=1+ρx=0⟹xρ=−1/ρ≠0for finite ρP_\rho'(x)=1+\rho x=0\quad\Longrightarrow\quad x_\rho=-1/\rho\ne0\quad\text{for finite }\rho

The penalty solution approaches zero as ρ grows, whereas Lagrange stationarity with λ=−1 is solved together with the exact original equality.

This does not condemn all penalty methods; exact penalties and augmented Lagrangians have their own theories. The point is that a fixed quadratic penalty is not automatically equivalent to the original constrained problem.

기초Foundations

41. 실제 자료의 손실에 가정 제약을 더하기41. Add explicitly hypothetical constraints to actual-data losses

국가 사례는 한국 실제 GDP/명의 직선요약 L(a,b)=SSE/22에 ‘2019년 절편 a를 그해 실측값으로 고정’하는 가정 등식을 추가합니다. 관측은 바꾸지 않고 요약 방식을 제한합니다. h=a−B에서 a=B=33496.3113815643이고 b≈754.47592853475, λ≈−206.22160281688입니다. 이 승수는 정책 효과가 아니라 선택한 적합 손실의 감도입니다.

가구 사례는 실제 주방·세탁 Wh 두 열을 상수 (a,b)로 요약하되 a+b=B, a≥0,b≥0이라는 가정 제약을 둡니다. B=2 Wh이면 해는 약 (0.2520833333,1.7479166667), λ≈1.1597222222, 두 부등식 승수는 0입니다. B=1 Wh이면 (0,1)로 주방 하한이 활성이고 ν주방≈0.4958333333입니다. B는 예측 상수의 합에 대한 가정이며 실제 가구 에너지 예산이 아닙니다.

L=J+λ(a+b−B)+νa(−a)+νb(−b),νa,νb≥0\mathcal L=J+\lambda(a+b-B)+\nu_a(-a)+\nu_b(-b),\quad \nu_a,\nu_b\ge0

기업 사례는 실제 5품목 매출 비교 L(α)에 가정 범위 0.95≤α≤1.01을 둡니다. 상단 1.01에서 최소이고 상단 승수 81,455,313.074, 하단 승수 0입니다. 정상식 L′−νL+νU=0이 맞습니다. 해는 유일해도 ‘실제 기업 제약을 발견했다’는 뜻은 아닙니다. 모두 실제 입력과 가정 제약·출력의 표식을 함께 읽으세요.

The country case adds a hypothetical equality fixing the intercept of an actual Korean GDP-per-person least-squares line to its observed 2019 value. For h=a−B, a=B=33496.3113815643, b≈754.47592853475 and λ≈−206.22160281688. Observations stay fixed; the multiplier describes the chosen summary loss, not policy effects.

The household case summarizes actual kitchen/laundry Wh channels by constants a,b with hypothetical a+b=B and nonnegativity. At B=2 Wh the optimum is about (0.2520833333,1.7479166667) with λ≈1.1597222222 and zero inequality multipliers. At B=1 Wh it is (0,1), with active kitchen multiplier about 0.4958333333. B constrains prediction constants, not an observed household energy budget.

L=J+λ(a+b−B)+νa(−a)+νb(−b),νa,νb≥0\mathcal L=J+\lambda(a+b-B)+\nu_a(-a)+\nu_b(-b),\quad \nu_a,\nu_b\ge0

The company case adds hypothetical bounds 0.95≤α≤1.01 to a loss from actual five-category sales. The upper endpoint minimizes, with upper multiplier 81,455,313.074 and lower multiplier zero. This verifies L′−νL+νU=0 without claiming to identify actual business constraints.

기초Foundations

42. 제약 문제의 답안 순서42. A workflow for a constrained solution

① 목적함수·정의역·단위와 제약 방향을 쓴다. ② 허용성·달성 여부를 검사한다. ③ 후보별 활성집합과 자격조건을 확인한다. ④ 정상식·허용성·승수 부호·상보성을 모두 푼다. ⑤ 볼록 충분성이나 후보 값 비교·이계 조건으로 분류한다. ⑥ 국소·전역·유일성·승수 비유일성을 구별해 결론을 쓴다.

필요조건을 만족하지 않는 후보를 버릴 때는 필요성 정리의 가정이 그 점에서 성립하는지 확인해야 합니다. 자격조건이 실패하면 후보를 자동 삭제하지 말고 허용집합을 직접 조사합니다. 반대로 KKT를 만족한 후보를 채택할 때는 충분성의 근거를 제시합니다.

수치 결과에는 잔차·단위·척도·쌍대 하한 계산의 방법을 함께 남깁니다. 실제 자료로 만든 사례에는 어떤 값이 실측이고 어떤 계수·제약이 학습 가정인지 표시합니다. 다음 장에서는 이 최적 조건을 만족하는 점을 반복 계산으로 찾아가는 알고리즘을 배웁니다.

State objective, domain, units and constraint signs; check feasibility and attainment; inspect active sets and qualifications; solve all KKT components; establish sufficiency or compare candidates; then report local/global scope, uniqueness and possible multiplier nonuniqueness.

Before discarding a point for failed necessary conditions, verify the qualification. Before accepting a KKT candidate, provide a sufficiency argument.

For numerical work, preserve residual scales and how dual lower bounds were computed. In actual-data examples, label observed inputs and hypothetical constraints. The next chapter studies iterative algorithms for locating optimality conditions.

기초Foundations

43. 국가·가구·기업의 제약 사례43. Country, household and company constraint cases

국가 사례 · 실제 기준점을 반드시 지나는 직선 맞추기

한국의 2014~2024년 실제 1인당 실질 GDP 11개를 사용합니다. t=연도−2019, 예측식 a+b t, 손실 L=제곱오차 합/22로 18장의 적합 문제를 유지합니다. 여기에 “2019년 관측을 정확히 지나라”는 학습용 등식 제약을 추가합니다. 실제 정부 제도나 GDP 생성 법칙에서 주어진 제약이 아닙니다.

L(a,b)=122∑i(a+bti−yi)2,h(a,b)=a−A=0,A=y2019=33496.3113815643L(a,b)=\frac1{22}\sum_i(a+bt_i-y_i)^2,\qquad h(a,b)=a-A=0,\quad A=y_{2019}=33496.3113815643

t=0이 2019년이므로 이 제약은 a를 실측 A에 고정합니다. 무제약 최소제곱의 â≈33,290.090과 달라지고, 두 직선의 다른 연도 값은 여전히 계산한 참조값입니다. 단위는 a,A가 2015 USD/명이고 b는 그 단위/년입니다.

1. 부호관례를 정하고 등식 승수를 구하기

이 장은 모든 사례에서 h=0의 승수 λ는 실수 전체, g≤0의 승수 ν는 비음수로 둡니다. Lagrangian은 ℒ=목적함수+λh+Σνg로 통일합니다. 등식 승수의 부호는 제한하지 않습니다.

L(a,b,λ)=L(a,b)+λ(a−A)\mathcal L(a,b,\lambda)=L(a,b)+\lambda(a-A)
0=∂aL=a−yˉ+λ,0=∂bL=10(b−b^),a=A0=\partial_a\mathcal L=a-\bar y+\lambda,\qquad0=\partial_b\mathcal L=10(b-\widehat b),\qquad a=A
실제 자료에서 계산한 무제약·등식 제약 적합
항목무제약 최소가정한 기준점 통과 최소
a (2015 USD/명)33,290.08977933,496.311382
b (2015 USD/명/년)754.475929754.475929
L ((2015 USD/명)²)43,144.02750864,407.702243
λ (2015 USD/명)등식 제약 없음-206.221602817

λ=ȳ−A≈-206.221602817입니다. 제약을 준 뒤에도 b가 같은 이유는 중심화한 t의 합이 0이라서 a와 b의 적합식이 분리되기 때문입니다. 임의의 회귀 자료에서 언제나 기울기가 그대로라는 법칙은 아닙니다.

먼저 생각한 뒤 풀이 보기: 음수 λ는 계산 오류인가요?

아닙니다. λ는 등식 승수라 음수여도 됩니다. 같은 등식을 h̃=A−a=0으로 적으면 그 승수는 −λ가 되어도 예측값과 최적점은 같습니다. 부호를 비교하기 전에 제약식의 방향과 Lagrangian 정의를 확인합니다.

먼저 생각한 뒤 풀이 보기: ℒ의 정지점을 찾으면 λ까지 함께 최소화한 것인가요?

아닙니다. 승수는 등식을 강제하는 조건을 정리하는 보조변수입니다. 이 사례에서는 λ를 임의로 움직여 ℒ를 공동 최소화하는 문제가 아닙니다. 실제 목적함수의 최소는 a=A인 허용 직선에서 b를 선택하는 문제입니다. ∇h=(1,0)은 0이 아니므로 이 등식의 정칙성도 확인할 수 있습니다.

L(A,b)−L(A,b^)=5(b−b^)2≥0L(A,b)-L(A,\widehat b)=5(b-\widehat b)^2\ge0
먼저 생각한 뒤 풀이 보기: 이 제약 최소가 전역이며 유일하다는 근거는?

위 정확한 등식은 허용되는 모든 b에서 손실이 최소값 이상이며 b=b̂일 때만 같음을 보여줍니다. 최소 손실은 무제약 값보다 (A−ȳ)²/2만큼 커집니다. 제약을 추가하면 후보집합이 줄어드므로 무제약 최소보다 더 작은 손실을 얻을 수 없습니다.

먼저 생각한 뒤 풀이 보기: A를 조금 바꿀 때 −λ를 실제 정책의 경제적 가치로 읽을까요?

여기서는 V(A)=무제약 최소 손실+(A−ȳ)²/2이므로 V′(A)=A−ȳ=−λ입니다. 이는 선택한 적합 제약의 우변을 바꿀 때 제곱손실이 달라지는 비율입니다. 정부 정책의 인과효과, 국민 소득 증가액, 시장가격으로 해석하지 않습니다.

자료: World Bank · 실제 한국 GDP/명과 가정한 적합 제약 · 실제 입력·가공 CSV

가구 사례 · 합과 비음수를 동시에 지키는 두 상수 요약

같은 UCI 하루의 1,440개 실제 주방·세탁실 분별 에너지(Wh)를 각각 상수 a,b로 요약합니다. 실측 평균은 μ₁≈1.411805556, μ₂≈2.907638889 Wh입니다. 이제 a+b=B와 a,b≥0라는 가정한 요약 규칙을 추가합니다. B는 대체 상수 두 개의 합이며 실제 가구에 적용한 에너지 예산·절약 정책이나 실측 총량이 아닙니다.

J(a,b)=12880∑i[(Ei1−a)2+(Ei2−b)2],h=a+b−B=0,g1=−a≤0,g2=−b≤0J(a,b)=\frac1{2880}\sum_i[(E_{i1}-a)^2+(E_{i2}-b)^2],\qquad h=a+b-B=0,\quad g_1=-a\le0,\quad g_2=-b\le0
L=J+λ(a+b−B)−ν1a−ν2b,λ∈R,ν1,ν2≥0\mathcal L=J+\lambda(a+b-B)-\nu_1a-\nu_2b,\quad \lambda\in\mathbb R,\quad\nu_1,\nu_2\ge0
a−μ1+λ−ν1=0,b−μ2+λ−ν2=0,ν1a=ν2b=0a-\mu_1+\lambda-\nu_1=0,\qquad b-\mu_2+\lambda-\nu_2=0,\qquad \nu_1a=\nu_2b=0

J는 Wh², a,b,B는 Wh이므로 λ와 ν도 Wh입니다. 원자료는 고정합니다. a를 0으로 맞추는 제약해가 나와도 실제 주방 에너지가 0이 되었다는 뜻은 아닙니다. 그림의 경로는 B를 가정해 바꾼 최적 상수들이며 새 관측값이 아닙니다.

1. 두 상수가 양수인 경우와 경계가 활성화되는 경우

선택한 B에서의 KKT 해 (모든 열 Wh)
가정한 합 B최적 a최적 b등식 λ주방 ν₁세탁실 ν₂
0.0000000.0000000000.0000000002.9076388891.4958333330.000000000
1.0000000.0000000001.0000000001.9076388890.4958333330.000000000
2.0000000.2520833331.7479166671.1597222220.0000000000.000000000
4.3194441.4118055562.9076388890.0000000000.0000000000.000000000
먼저 생각한 뒤 풀이 보기: B=2 Wh에서 비음수 제약 승수는 왜 0인가요?

해는 a=0.252083333, b=1.747916667로 둘 다 양수입니다. 따라서 g₁,g₂가 음수여서 보완성에 따라 ν₁=ν₂=0입니다. 두 정상성 식과 a+b=2를 풀면 λ=(μ₁+μ₂−2)/2=1.159722222 Wh을 얻습니다.

먼저 생각한 뒤 풀이 보기: B=1 Wh에서 등식만 풀면 어떤 문제가 생기나요?

비음수를 무시한 등식 해의 a=(1+μ₁−μ₂)/2는 음수입니다. 따라서 허용되지 않습니다. 비음수까지 지키는 해는 a=0,b=1입니다. λ=μ₂−1≈1.907638889, ν₁=λ−μ₁≈0.495833333, ν₂=0을 넣으면 두 정상성 식, 허용성, 비음수 승수, 보완성을 모두 만족합니다.

먼저 생각한 뒤 풀이 보기: KKT 해가 전역 최소인 이유도 확인할 수 있나요?

J는 Hessian I인 엄격한 볼록 이차함수이고 제약은 아핀 등식·부등식입니다. 허용집합은 B≥0일 때 닫힌 선분이므로 최소가 존재하고, 엄격한 볼록성으로 해가 유일합니다. 실제 상수항을 뺀 목적은 [(a−μ₁)²+(b−μ₂)²]/2입니다. a∈[0,B], b=B−a를 대입해 한 변수 이차함수를 최소화해도 같은 해를 얻습니다.

a∗(B)=max⁡ ⁣(0,min⁡ ⁣(B,B+μ1−μ22)),b∗(B)=B−a∗(B),B≥0a^*(B)=\max\!\left(0,\min\!\left(B,\frac{B+\mu_1-\mu_2}{2}\right)\right),\qquad b^*(B)=B-a^*(B),\quad B\ge0

2. 활성 제약이 있어도 승수가 0일 수 있다

경계 전환 B=μ₂−μ₁=1.495833333 Wh에서는 a=0이지만 ν₁=0입니다. 보완성은 “승수>0이면 제약이 활성”을 뜻하며, 그 역인 “활성이면 승수>0”을 보장하지 않습니다.

먼저 생각한 뒤 풀이 보기: B=0에서는 최적점도 승수도 모두 유일한가요?

허용되는 상수는 a=b=0 하나라서 최적점은 유일합니다. 하지만 λ를 μ₂ 이상 임의로 고르면 ν₁=λ−μ₁, ν₂=λ−μ₂가 모두 비음수이고 같은 점에서 KKT를 만족합니다. 예를 들어 λ=μ₂와 λ=μ₂+1이 가능합니다. 이 점에서는 등식과 두 활성 부등식의 기울기 세 개가 2차원에서 선형독립일 수 없어 LICQ가 실패합니다. 그 사실이 최적점이나 직접 검산한 승수의 존재를 없애지는 않습니다.

먼저 생각한 뒤 풀이 보기: B가 음수여도 승수 방정식을 풀어 답을 만들까요?

a,b≥0이면 a+b≥0이므로 B<0의 허용집합은 비어 있습니다. 먼저 허용성을 확인하고, 불가능한 문제를 승수 숫자로 해결했다고 표시하지 않습니다.

자료: Hebrail·Berard · UCI 실제 두 계통 자료 (CC BY 4.0) · 실제 입력·가공 CSV

기업 사례 · 19장의 경계 최소를 네 가지 KKT 조건으로 검산하기

실제 Apple FY2023 매출 x와 FY2024 매출 z를 고정하고, 같은 참조식 αx의 손실 L=‖αx−z‖²/10을 씁니다. 단위는 매출이 백만 명목 USD, 손실이 그 제곱입니다. 0.95≤α≤1.01은 학습용 가정 범위이며 실제 Apple의 경영 제약·매출 목표가 아닙니다.

실제 입력과 가정 범위의 최소 참조값 (백만 USD)
품목실제 FY2023 x실제 FY2024 zα=1.01 참조 (실측 아님)
iPhone200,583201,183202,588.83
Mac29,35729,98429,650.57
iPad28,30026,69428,583.00
웨어러블·홈·액세서리39,84537,00540,243.45
서비스85,20096,16986,052.00
gU(α)=α−1.01≤0,gL(α)=0.95−α≤0,L=L+νU(α−1.01)+νL(0.95−α)g_U(\alpha)=\alpha-1.01\le0,\quad g_L(\alpha)=0.95-\alpha\le0,\qquad\mathcal L=L+\nu_U(\alpha-1.01)+\nu_L(0.95-\alpha)

두 부등식을 모두 g≤0로 썼으므로 νU,νL≥0입니다. 위·아래 제약의 gradient가 각각 +1,−1이라 정상성 식은 L′+νU−νL=0입니다. 부호가 헷갈릴 때는 암기 대신 제약식을 직접 미분합니다.

α∗=1.01,νU=−L′(1.01)=81455313.074,νL=0\alpha^*=1.01,\quad \nu_U=-L'(1.01)=81455313.074,\quad\nu_L=0
α=1.01에서의 네 가지 확인
조건실제 숫자 대입판정
원문제 허용성gU=0, gL=−0.06둘 다 ≤0
승수 허용성νU=81,455,313.074, νL=0둘 다 ≥0
보완성νU×0=0, νL×(−0.06)=0두 곱 모두 0
정상성−81,455,313.074+81,455,313.074−0=0미분합 0

α는 무차원이므로 두 승수의 단위는 (백만 USD)²입니다. 이 숫자는 이익이나 주식가치가 아니라 선택한 적합 손실과 가정한 범위의 조합에서 나온 값입니다.

1. 상한 u를 바꾸면 활성 제약도 바뀐다

같은 자료와 하한 0.95를 유지하고 상한 u만 가정해 바꿉니다. 무제약 최소 α₀≈1.0180262726보다 u가 작으면 상한에 붙고, u가 더 크면 α₀가 허용되어 상한 승수는 0입니다. 그림은 이 계산 경로이며 실제 매출이나 경영 의사결정의 관측이 아닙니다.

α∗(u)=min⁡(α0,u),νU(u)=max⁡ ⁣(0,xTz−u xTx5),u≥0.95\alpha^*(u)=\min(\alpha_0,u),\qquad\nu_U(u)=\max\!\left(0,\frac{x^{\mathsf T}z-u\,x^{\mathsf T}x}{5}\right),\quad u\ge0.95
먼저 생각한 뒤 풀이 보기: 상한 u=α₀에서 상한은 활성인데 νU가 0일 수 있나요?

그렇습니다. 무제약 최소가 경계와 정확히 같아서 gU=0이고 L′=0이므로 νU=0입니다. “활성이면 반드시 양의 승수”라고 바꾸어 읽지 않습니다. 여기서는 원자료로 계산한 정확한 α₀ 분수를 사용해 전환점을 확인합니다.

먼저 생각한 뒤 풀이 보기: KKT를 만족했다는 이유만으로 어떤 비선형 문제에서나 전역 최소인가요?

일반적으로는 아닙니다. 이 사례는 L″=xᵀx/5>0인 엄격한 볼록 이차함수이고 모든 제약이 아핀입니다. 이런 볼록 문제에서는 네 조건을 만족하는 점이 전역 최적임을 인증할 수 있습니다. 또한 0.95<1<1.01이라 엄격히 허용되는 점이 있고, 일반 필요조건을 말할 때 필요한 제약 정칙성과도 구별해 확인합니다.

먼저 생각한 뒤 풀이 보기: 상한을 조금 완화할 때 손실이 얼마나 줄어드는지 νU로 정확히 말하나요?

활성 구간에서 최적 손실 V(u)=L(u)이므로 V′(u)=−νU입니다. 이는 국소 민감도입니다. 유한한 Δu에는 V(u+Δu)=V(u)−νUΔu+(xᵀx/10)(Δu)²가 적용되며 두 상한이 모두 α₀ 이하인 같은 활성 구간이어야 합니다. α₀를 넘으면 최소 계수가 고정되어 다른 식으로 이어집니다. 실제 기업의 매출 증가효과를 뜻하지 않습니다.

먼저 생각한 뒤 풀이 보기: 승수를 고정한 ℒ가 원목적의 최소를 어떻게 뒷받침하나요?

위 최적 승수를 고정하면 ℒ(α)−L(1.01)=(xᵀx/10)(α−1.01)²≥0입니다. 허용 α에서는 νU gU+νL gL≤0이므로 L(α)≥ℒ(α)≥L(1.01)입니다. 이 직접 부등식은 가정한 범위 전체의 전역 최소를 증명하며, λ·ν까지 모두 최소화한다는 주장이 아닙니다.

FY2023 53주와 FY2024 52주, 명목 단위와 품목별 차이는 그대로입니다. 적합 제약의 민감도를 기업의 인과효과·이익·투자 판단으로 바꾸지 않습니다.

자료: SEC EDGAR · Apple 2024 Form 10-K 실제 매출 · 실제 입력·가공 CSV

가정 제약별 KKT 해·승수 CSV · 허용점의 목적함수·고정 승수 Lagrangian CSV · 원자료·가정·단위·가공·SHA-256

Country case · Fit a line required to pass through an actual reference year

Use eleven actual Korean real-GDP-per-capita records, 2014–2024. Keep t=year−2019, the prediction a+b t and loss L=SSE/22 from Chapter 18. Add the hypothetical fitting equality requiring the line to pass through the 2019 observation. This is not an actual government institution or a law generating GDP.

L(a,b)=122∑i(a+bti−yi)2,h(a,b)=a−A=0,A=y2019=33496.3113815643L(a,b)=\frac1{22}\sum_i(a+bt_i-y_i)^2,\qquad h(a,b)=a-A=0,\quad A=y_{2019}=33496.3113815643

Because t=0 in 2019, the equality fixes a at actual A, rather than the unrestricted â≈33,290.090. Other fitted annual values remain calculated references. The units of a,A are 2015 USD/person; b uses those units per year.

1. Fix a sign convention and calculate the equality multiplier

Throughout these cases, λ for h=0 is unrestricted, while ν for g≤0 is nonnegative. Use ℒ=objective+λh+Σνg. Equality multipliers have no sign restriction.

L(a,b,λ)=L(a,b)+λ(a−A)\mathcal L(a,b,\lambda)=L(a,b)+\lambda(a-A)
0=∂aL=a−yˉ+λ,0=∂bL=10(b−b^),a=A0=\partial_a\mathcal L=a-\bar y+\lambda,\qquad0=\partial_b\mathcal L=10(b-\widehat b),\qquad a=A
Unrestricted and equality-constrained fits from actual inputs
QuantityUnrestricted minimumAssumed anchored minimum
a (2015 USD/person)33,290.08977933,496.311382
b (2015 USD/person/year)754.475929754.475929
L ((2015 USD/person)²)43,144.02750864,407.702243
λ (2015 USD/person)No equality constraint-206.221602817

The equality multiplier is λ=ȳ−A≈-206.221602817. The slope stays the same here because centered t sums to zero, separating intercept and slope equations. This is a feature of this design, not a universal rule for arbitrary regressions.

Think first, then reveal: Does a negative λ signal an error?

No. Equality multipliers can be negative. Rewriting the same equality as h̃=A−a=0 changes the multiplier to −λ without changing predictions or the primal optimum. Inspect the equality direction and Lagrangian convention before comparing signs.

Think first, then reveal: Does stationarity of ℒ mean jointly minimizing over λ too?

No. The multiplier packages the equality condition; this is not joint minimization over unrestricted λ. The actual problem chooses b on the feasible line a=A. The equality is regular because ∇h=(1,0) is nonzero.

L(A,b)−L(A,b^)=5(b−b^)2≥0L(A,b)-L(A,\widehat b)=5(b-\widehat b)^2\ge0
Think first, then reveal: What establishes a unique global constrained minimum?

The exact identity covers every feasible b, with equality only at b̂. The constrained minimum loss exceeds the unrestricted minimum by (A−ȳ)²/2. Adding a constraint reduces the candidate set and cannot improve on the unrestricted minimum.

Think first, then reveal: Is −λ a real economic policy value when A changes slightly?

Here V(A)=unrestricted minimum loss+(A−ȳ)²/2, so V′(A)=A−ȳ=−λ. This is sensitivity of our squared fitting loss to its chosen equality right-hand side. It is not an identified policy effect, income increment or market price.

Source: World Bank · actual Korean GDP/person and hypothetical fitting equality · Actual inputs/transformations CSV

Household case · Two constant summaries with a sum and nonnegativity

Summarize the same 1,440 actual UCI kitchen/laundry minute energies in Wh by constants a,b. Observed means are μ₁≈1.411805556 and μ₂≈2.907638889 Wh. Add the hypothetical summary rules a+b=B and a,b≥0. B is the combined value of replacement constants, not an actual household energy budget, conservation intervention or observed total.

J(a,b)=12880∑i[(Ei1−a)2+(Ei2−b)2],h=a+b−B=0,g1=−a≤0,g2=−b≤0J(a,b)=\frac1{2880}\sum_i[(E_{i1}-a)^2+(E_{i2}-b)^2],\qquad h=a+b-B=0,\quad g_1=-a\le0,\quad g_2=-b\le0
L=J+λ(a+b−B)−ν1a−ν2b,λ∈R,ν1,ν2≥0\mathcal L=J+\lambda(a+b-B)-\nu_1a-\nu_2b,\quad\lambda\in\mathbb R,\quad\nu_1,\nu_2\ge0
a−μ1+λ−ν1=0,b−μ2+λ−ν2=0,ν1a=ν2b=0a-\mu_1+\lambda-\nu_1=0,\qquad b-\mu_2+\lambda-\nu_2=0,\qquad\nu_1a=\nu_2b=0

J has Wh² units; a,b,B have Wh units, so λ and ν also have Wh units. Actual records stay fixed. A constrained summary a=0 does not make actual kitchen consumption zero. The plotted path changes assumed B and computes optimal constants; it is not new measurement.

1. Interior nonnegative coordinates versus an active boundary

KKT solutions for selected assumed B (all columns in Wh)
Assumed sum BOptimal aOptimal bEquality λKitchen ν₁Laundry ν₂
0.0000000.0000000000.0000000002.9076388891.4958333330.000000000
1.0000000.0000000001.0000000001.9076388890.4958333330.000000000
2.0000000.2520833331.7479166671.1597222220.0000000000.000000000
4.3194441.4118055562.9076388890.0000000000.0000000000.000000000
Think first, then reveal: Why are nonnegativity multipliers zero at B=2 Wh?

The solution has a=0.252083333 and b=1.747916667, both positive. Thus g₁,g₂ are strictly negative and complementary slackness forces ν₁=ν₂=0. Stationarity and the sum equality give λ=(μ₁+μ₂−2)/2=1.159722222 Wh.

Think first, then reveal: What fails if only the equality is solved at B=1 Wh?

Ignoring nonnegativity gives a=(1+μ₁−μ₂)/2<0, which is infeasible. With all constraints, a=0,b=1. Substitution of λ=μ₂−1≈1.907638889, ν₁=λ−μ₁≈0.495833333 and ν₂=0 verifies stationarity, primal feasibility, nonnegative multipliers and complementary slackness.

Think first, then reveal: Why is the KKT solution a global minimum?

J is strictly convex quadratic with Hessian I; all constraints are affine. For B≥0 the feasible set is a closed line segment, giving existence, and strict convexity gives uniqueness. Removing the actual constant term leaves [(a−μ₁)²+(b−μ₂)²]/2. Substituting b=B−a and minimizing on a∈[0,B] gives the same answer.

a∗(B)=max⁡ ⁣(0,min⁡ ⁣(B,B+μ1−μ22)),b∗(B)=B−a∗(B),B≥0a^*(B)=\max\!\left(0,\min\!\left(B,\frac{B+\mu_1-\mu_2}{2}\right)\right),\qquad b^*(B)=B-a^*(B),\quad B\ge0

2. An active constraint can have zero multiplier

At B=μ₂−μ₁=1.495833333 Wh, a=0 but ν₁=0. Complementarity implies “positive multiplier ⇒ active constraint”; its converse need not hold.

Think first, then reveal: At B=0 are both the primal solution and multipliers unique?

The only feasible constants are a=b=0, so the primal optimum is unique. Yet any λ≥μ₂ gives ν₁=λ−μ₁ and ν₂=λ−μ₂ nonnegative and satisfies KKT. For example, λ=μ₂ or μ₂+1 both work. Here one equality and two active inequality gradients cannot be linearly independent in two dimensions: LICQ fails. This does not remove the optimum or the directly verified multipliers.

Think first, then reveal: Should multiplier equations be solved anyway when B is negative?

Nonnegative a,b imply a+b≥0. For B<0 the feasible set is empty. Check primal feasibility before solving equations and do not present multipliers as a solution of an infeasible problem.

Source: Hebrail and Berard · UCI actual two-channel records (CC BY 4.0) · Actual inputs/transformations CSV

Company case · Verify the Chapter 19 boundary minimum with all four KKT conditions

Fix actual Apple FY2023 sales x and FY2024 sales z. Retain L=‖αx−z‖²/10. Sales use million nominal USD and loss uses squared sales units. The bounds 0.95≤α≤1.01 are teaching assumptions, not an actual Apple rule or sales target.

Actual inputs and minimum reference on assumed bounds (million USD)
CategoryActual FY2023 xActual FY2024 zα=1.01 reference (not observed)
iPhone200,583201,183202,588.83
Mac29,35729,98429,650.57
iPad28,30026,69428,583.00
Wearables, Home and Accessories39,84537,00540,243.45
Services85,20096,16986,052.00
gU(α)=α−1.01≤0,gL(α)=0.95−α≤0,L=L+νU(α−1.01)+νL(0.95−α)g_U(\alpha)=\alpha-1.01\le0,\quad g_L(\alpha)=0.95-\alpha\le0,\qquad\mathcal L=L+\nu_U(\alpha-1.01)+\nu_L(0.95-\alpha)

Both inequalities use g≤0, so νU,νL≥0. Their gradients are +1 and −1, giving stationarity L′+νU−νL=0. Differentiate the written constraints rather than guessing signs.

α∗=1.01,νU=−L′(1.01)=81455313.074,νL=0\alpha^*=1.01,\quad\nu_U=-L'(1.01)=81455313.074,\quad\nu_L=0
Four checks at α=1.01
ConditionNumerical substitutionResult
Primal feasibilitygU=0, gL=−0.06Both ≤0
Multiplier feasibilityνU=81,455,313.074, νL=0Both ≥0
Complementary slacknessνU×0=0, νL×(−0.06)=0Both products zero
Stationarity−81,455,313.074+81,455,313.074−0=0Derivative sum zero

Because α is dimensionless, multipliers have (million USD)² units. They measure this chosen fitting-loss problem with its hypothetical bounds, not profit or equity value.

1. Varying an assumed cap changes its active status

Keep the same actual inputs and lower bound 0.95; vary only the assumed cap u. Below the unrestricted α₀≈1.0180262726, the solution reaches the cap. Above α₀, the unrestricted optimum is feasible and the cap multiplier vanishes. The plot is a calculation path, not observed sales or management decisions.

α∗(u)=min⁡(α0,u),νU(u)=max⁡ ⁣(0,xTz−u xTx5),u≥0.95\alpha^*(u)=\min(\alpha_0,u),\qquad\nu_U(u)=\max\!\left(0,\frac{x^{\mathsf T}z-u\,x^{\mathsf T}x}{5}\right),\quad u\ge0.95
Think first, then reveal: Can the cap be active with zero νU at u=α₀?

Yes. The unrestricted optimum equals the endpoint, so gU=0 and L′=0 imply νU=0. Active does not imply a strictly positive multiplier. The exact fraction for α₀, computed from actual inputs, locates this transition.

Think first, then reveal: Does satisfying KKT prove a global minimum for every nonlinear problem?

No. Here L″=xᵀx/5>0 gives a strictly convex quadratic, and all constraints are affine. In this convex setting all four conditions certify global optimality. Also 0.95<1<1.01 supplies a strictly feasible point. Distinguish this certificate from regularity conditions needed for general necessity statements.

Think first, then reveal: Does νU give the exact loss reduction for a finite cap increase?

Within the active region V(u)=L(u), so V′(u)=−νU is local sensitivity. A finite change obeys V(u+Δu)=V(u)−νUΔu+(xᵀx/10)(Δu)² when both caps stay at or below α₀. Beyond α₀ the minimizing coefficient stops changing and the value follows a different expression. This is not a causal sales effect.

Think first, then reveal: How does ℒ with fixed multipliers certify the original minimum?

Fix the displayed optimal multipliers. Then ℒ(α)−L(1.01)=(xᵀx/10)(α−1.01)²≥0. For feasible α, the multiplier terms are nonpositive, so L(α)≥ℒ(α)≥L(1.01). This proves global optimality on the assumed domain; it does not jointly minimize over all multipliers.

Nominal units, category differences and unequal fiscal weeks (53 versus 52) remain. Fitting-constraint sensitivity is not an identified business effect, profit increment or investment conclusion.

Source: SEC EDGAR · Apple 2024 Form 10-K actual sales · Actual inputs/transformations CSV

KKT solutions and multipliers under assumed constraints CSV · Feasible-point objectives and fixed-multiplier Lagrangians CSV · Inputs, assumptions, units, transformations and SHA-256

기초Foundations

44. 정의와 부호를 비교하며 읽을 자료44. Readings to compare definitions and conventions

OpenStax Calculus 3, 4.8에서 등식 제약의 기하와 숫자 예제를 읽으세요. ∇f=λ∇h 형태는 이 장의 ∇f+λ∇h=0과 승수 부호가 다릅니다. 제약 정칙성과 최대·최소의 후보 비교를 별도 확인합니다.

MIT 18.335J, Week 11은 Lagrangian·약쌍대성·KKT·LICQ가 연결되는 흐름을 설명합니다. Boyd·Vandenberghe 저자 공개본은 5.1 쌍대함수, 5.2 약·강쌍대와 Slater, 5.5.3 KKT 충분성·필요성, 5.6 감도를 골라 읽으세요. 이 책은 부등식 승수 λ, 등식 승수 ν를 써서 이 장과 문자 배정이 반대입니다.

선택 심화에서는 등식 음함수정리, 접선·법선 원뿔, Farkas의 대안정리, 임계방향의 이계 조건을 공부할 수 있습니다. 지금의 숫자 예제마다 어떤 가정이 작동했는지 설명할 수 있다면 뒤의 최적화·계량경제·머신러닝에 필요한 출발점을 갖춘 것입니다.

Python · R · 가정 제약의 정확 KKT 계산 CSV

Use OpenStax Calculus 3, Section 4.8 for equality geometry and examples. Its ∇f=λ∇h convention reverses our equality multiplier sign. Check regularity and compare minimum/maximum candidates.

MIT 18.335J, Week 11 links Lagrangians, weak duality, KKT and LICQ. In the authors' Convex Optimization, select Sections 5.1, 5.2, 5.5.3 and 5.6. That book assigns λ to inequalities and ν to equalities, opposite to our letters.

Optional advanced bridges include the implicit function theorem, tangent/normal cones, theorems of alternatives and second-order conditions on critical directions. First practice explaining exactly which assumptions justify each numerical example.

Python · R · Exact KKT calculations for assumed constraints CSV

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

python math20-reproduce.py
Rscript --vanilla --encoding=UTF-8 math20-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

영상·학자·함께 읽기Videos, thinkers and guided reading

본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.

제약 최적화 입문 · 허용되는 점과 접선Constrained optimization introduction

Khan Academy · Grant Sanderson

공식 영어 영상을 본문에서 보며 목적함수와 허용곡선을 구별합니다. 영상은 등식의 기하 입문이며 부등식 KKT 전체를 다루는 자료로 대신 쓰지 않습니다.Watch the official English introduction in the chapter. Separate the objective from its feasible curve;this equality-geometry introduction does not replace the full inequality KKT discussion.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 영상의 접점이라는 그림만으로 어떤 제약 문제나 최적값을 확정하나요?Does a tangency picture settle every constrained optimum?

생각을 점검하는 해설Check your reasoning

아닙니다. 실제 식의 허용성·정칙성·도함수 조건을 확인하고 후보를 분류해야 합니다. 이 장은 볼록 이차손실과 아핀 제약의 해를 수치 대입과 정확한 부등식으로 다시 검산합니다.No. Check feasibility,regularity and derivatives and classify candidates. These convex quadratic/affine cases additionally verify numerical equations and exact inequalities.

조제프루이 라그랑주 · 변분과 제약을 식으로 다루기Joseph-Louis Lagrange: variation and constrained equations

University of St Andrews · MacTutor

대학 소개에서 라그랑주(1736–1813)의 해석학·변분법·역학 연구를 읽습니다. 인물 소개와 현대 KKT의 구체적 가정·부호관례는 구별합니다.Read the university account of Lagrange (1736–1813),analysis,calculus of variations and mechanics. Separate historical context from the assumptions and sign convention of modern KKT.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 이름이 같은 승수라면 다른 교재의 λ 부호를 그대로 비교해도 되나요?Can identically named multipliers be compared without checking conventions?

생각을 점검하는 해설Check your reasoning

제약식의 방향과 Lagrangian의 더하기·빼기 정의를 먼저 봅니다. 등식 h를 −h로 바꾸면 같은 해의 승수도 반대로 바뀝니다. 부등식은 이 장의 g≤0,ν≥0 관례에 맞추어 전체 식을 옮겨야 합니다.First inspect the constraint direction and Lagrangian definition. Reversing an equality flips its multiplier. Translate inequalities consistently to this chapter’s g≤0,ν≥0 convention.

정칙 등식과 라그랑주 승수의 필요조건A regular equality and the Lagrange-multiplier necessary condition

OpenStax · Rice University · Calculus Volume 3 §4.8, Theorem 4.20

정리 4.20의 매끄러움과 비영 제약 gradient를 읽습니다. 책의 ∇f=λ∇g를 이 장의 ℒ=f+λh와 비교해 등식 승수 기호의 부호를 맞춥니다.Read Theorem4.20 with smoothness and a nonzero constraint gradient. Translate its ∇f=λ∇g to this chapter’s ℒ=f+λh before comparing multiplier signs.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 가구 B=0에서 세 활성 제약의 gradient를 독립이라고 가정해도 되나요?Can three active household constraint gradients be assumed independent at B=0?

생각을 점검하는 해설Check your reasoning

2차원에서 세 벡터는 선형독립일 수 없습니다. 해당 정칙성 가정을 충족했다고 말하지 않고, 이 사례의 유일한 허용점과 승수 가족을 직접 확인합니다.Three vectors cannot be linearly independent in two dimensions. Do not assert that regularity assumption;directly verify the sole feasible point and multiplier family.

KKT 네 조건과 볼록 문제의 충분성Four KKT conditions and sufficiency for convex problems

Boyd and Vandenberghe · Convex Optimization §5.5.3, printed pp.243–244

저자 공식 PDF의 네 조건과 볼록 목적·아핀 등식에서의 충분성을 읽습니다. 책은 부등식 승수를 λ, 등식 승수를 ν로 써서 이 장과 글자가 반대입니다. 조건의 역할에 맞추어 옮깁니다.Read the four conditions and convex sufficiency in the authors’ official PDF. The book uses λ for inequality multipliers and ν for equalities,the reverse of this chapter’s letters;translate by their roles.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 볼록 문제에서 KKT 해의 충분성과, 모든 최적점에서 승수가 존재한다는 필요성은 같은 주장인가요?Is convex KKT sufficiency the same claim as multiplier existence at every optimum?

생각을 점검하는 해설Check your reasoning

구별해야 합니다. 볼록 목적·볼록 부등식·아핀 등식의 미분 가능한 문제에서는 KKT를 만족하는 해가 전역 최적입니다. 필요성과 승수 존재를 일반적으로 보장하려면 적절한 제약 정칙성·강쌍대성 조건 등을 별도로 확인합니다.No. For differentiable convex objectives/inequalities with affine equalities,a KKT point is globally optimal. General necessity and multiplier existence require appropriate additional regularity or duality conditions.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 표준 부등식 방향Standard inequality signs

x≥2와 x≤5를 g≤0 형태로 쓰고 Lagrangian을 만드세요. 목적함수는 ½(x−1)²입니다.

Write x≥2 and x≤5 in g≤0 form and construct the Lagrangian for ½(x−1)².

풀이와 확인할 이유Solution and explanation

gL=2−x,gU=x−5입니다. L=½(x−1)²+νL(2−x)+νU(x−5), νL,νU≥0입니다. 정상식은 x−1−νL+νU=0입니다. 위아래 제약의 기울기 부호가 반대임을 확인합니다.

Use gL=2−x,gU=x−5 and L=½(x−1)²+νL(2−x)+νU(x−5), with nonnegative multipliers. Stationarity is x−1−νL+νU=0.

2. 등식 접선An equality tangent

x+y=6에서 가능한 접선 v=(v₁,v₂)를 구하세요. (1,0)은 허용 접선인가요?

Find tangent directions for x+y=6. Is (1,0) feasible as a tangent?

풀이와 확인할 이유Solution and explanation

제약 기울기 (1,1)과 내적이 0이어야 하므로 v₁+v₂=0, 즉 v=t(1,−1)입니다. (1,0)은 합을 늘려 허용 접선이 아닙니다. 이 아핀 제약에서는 a+tv로 직선 이동이 실제로 제약을 유지합니다.

The gradient (1,1) requires v₁+v₂=0, giving v=t(1,−1). The direction (1,0) changes the sum and fails. For this affine constraint, linear movement along a tangent remains feasible exactly.

3. 거리 투영의 승수Projection and its multiplier

½[(x−3)²+(y−1)²]를 x+y=2에서 최소화하고 승수·최솟값을 구하세요.

Minimize ½[(x−3)²+(y−1)²] with x+y=2. Find the multiplier and value.

풀이와 확인할 이유Solution and explanation

정상식은 x−3+λ=0,y−1+λ=0입니다. 합 제약에서 4−2λ=2이므로 λ=1, 해 (2,0)입니다. 제곱거리 절반은 1입니다. 대입한 함수는 (x−2)²+1이라 유일한 전역 최소임도 확인됩니다.

Stationarity gives x=3−λ,y=1−λ. Feasibility yields λ=1 and (x,y)=(2,0), value one. Substitution gives (x−2)²+1, proving unique global optimality.

4. 음의 등식 승수A negative equality multiplier

같은 거리함수 ½[(x−3)²+(y−1)²]에서 합 제약을 x+y=6으로 바꾸세요. λ가 음수여도 되는 이유는?

Minimize the same squared-distance objective ½[(x−3)²+(y−1)²] with x+y=6. Why is a negative λ valid?

풀이와 확인할 이유Solution and explanation

λ=(3+1−6)/2=−1이고 해는 (4,2), 최솟값 1입니다. 등식 승수는 부호 제한이 없으므로 정상입니다. 부등식의 비음수 조건을 등식에 잘못 적용하면 이 해를 버리게 됩니다.

The multiplier is −1, giving (4,2) and value one. Equality multipliers are unrestricted; inequality sign restrictions do not apply.

5. 대입의 전역 검산A global substitution check

½[(x−p)²+(B−x−q)²]를 완전제곱하고 최소·최대 존재를 판단하세요.

Complete the square in ½[(x−p)²+(B−x−q)²] and assess both extrema.

풀이와 확인할 이유Solution and explanation

(x−(p+B−q)/2)²+(p+q−B)²/4입니다. 제곱이 0인 한 점에서 유일 최소를 얻습니다. |x|→∞에서는 함수가 +∞로 가므로 최대는 없습니다. 승수 해의 존재가 두 극값의 존재를 뜻하지 않습니다.

It equals (x−(p+B−q)/2)²+(p+q−B)²/4. The unique minimizer makes the square zero. The function is unbounded above, so there is no maximum.

6. Lagrangian 공동 최소화의 함정Why joint minimization fails

h(x)≠0인 x를 고정하고 λ를 자유롭게 바꾸면 f(x)+λh(x)는 어떻게 되나요?

At a fixed x with h(x)≠0, what happens when unrestricted λ varies in f(x)+λh(x)?

풀이와 확인할 이유Solution and explanation

h(x)>0이면 λ→−∞, h(x)<0이면 λ→+∞에서 −∞로 갑니다. 따라서 제약을 어긴 x에서 λ를 공동 최소화하는 것은 원문제 해법이 아닙니다. Lagrange 방법은 x정상식과 h=0을 동시에 맞추는 방식입니다.

Choosing the sign of unbounded λ opposite to h sends the expression to −∞. Ordinary joint minimization is not the constrained problem. Lagrange equations combine x-stationarity with h=0.

7. 독립 등식 두 개Two independent equalities

실수 세 변수에서 h₁=x+y+z−3,h₂=x−y가 있습니다. 야코비안의 랭크와 접선 공간을 구하세요.

For h₁=x+y+z−3 and h₂=x−y, find the Jacobian rank and tangent space.

풀이와 확인할 이유Solution and explanation

행은 (1,1,1),(1,−1,0)으로 독립이라 랭크 2입니다. 접선은 v₁=v₂=t, v₃=−2t, 즉 span{(1,1,−2)}입니다. 독립 제약 둘이 자유도 하나를 남깁니다.

The rows (1,1,1) and (1,−1,0) are independent, giving rank two. Solving the tangent equations yields span{(1,1,−2)}, one remaining degree of freedom.

8. 중복 등식의 승수Redundant equality multipliers

min ½x² subject to x−1=0, 2x−2=0에서 해와 승수 관계를 구하세요.

Solve min ½x² with x−1=0 and 2x−2=0, including the multiplier relation.

풀이와 확인할 이유Solution and explanation

허용점과 최소점은 x=1입니다. 정상식 1+λ₁+2λ₂=0에서 λ₁=−1−2t,λ₂=t라는 무한한 승수 쌍이 나옵니다. 등식 행들이 종속이라 LICQ가 실패하지만 최적성과 승수 존재는 유지됩니다.

The unique feasible point is one. Stationarity gives 1+λ₁+2λ₂=0, so (λ₁,λ₂)=(−1−2t,t). Dependent gradients cause nonunique multipliers without removing optimality.

9. 원 정상 후보Circle stationary candidates

f=x, h=x²+y²−1=0의 모든 Lagrange 후보를 구하고 분류하세요.

Find and classify all Lagrange candidates for f=x with x²+y²−1=0.

풀이와 확인할 이유Solution and explanation

1+2λx=0,2λy=0,h=0을 풀면 (−1,0,1/2),(1,0,−1/2)입니다. 함수값은 −1과 1이라 각각 전역 최소·최대입니다. 둘 다 정상식을 만족하며 등식 승수의 음수는 배제 사유가 아닙니다.

The equations give (x,y,λ)=(−1,0,1/2) and (1,0,−1/2). Comparing values gives global minimum −1 and maximum one. Stationarity alone does not distinguish them.

10. 접선 이계 곡률Tangent second-order curvature

원의 두 후보 (−1,0,λ=1/2),(1,0,λ=−1/2)에서 Lagrangian 이차형식을 접선에 제한하세요.

Restrict the Lagrangian Hessian to tangents at (−1,0,λ=1/2) and (1,0,λ=−1/2) on the unit circle.

풀이와 확인할 이유Solution and explanation

두 점의 접선은 v=(0,t)이고 HₓₓL=2λI입니다. 첫 점에서는 t², 둘째에서는 −t²입니다. 비영 접선에서 양수·음수라 각각 엄격한 제약 국소 최소·최대입니다. 원 위 함수 f=x의 제약 곡률은 Hf=0만으로 설명되지 않습니다.

Tangents are (0,t), and the Hessian is 2λI. The quadratic values are t² and −t², identifying a strict constrained local minimum and maximum. The zero objective Hessian alone misses constraint curvature.

11. 제약식 세제곱Cubing an equality

min x subject to x=0과 min x subject to x³=0의 허용집합·정상식을 비교하세요.

Compare feasible sets and stationarity for min x with x=0 and with x³=0.

풀이와 확인할 이유Solution and explanation

둘 다 {0}이 허용집합이라 최적점은 같습니다. 첫 정상식은 1+λ=0으로 λ=−1입니다. 두 번째는 1+λ·0=0으로 불가능합니다. 세제곱 표현이 원점의 정칙성을 없앴고, 최소 자체가 없어진 것은 아닙니다.

Both have optimizer zero. The first has multiplier −1; the second would require 1=0. The reformulation destroys regularity, not the optimizer.

12. 활성·비활성·위반Active, inactive or violated

0≤x≤2에서 x=0,1,2,3 각각의 활성 여부와 허용성을 정리하세요.

Classify feasibility and activity at x=0,1,2,3 for 0≤x≤2.

풀이와 확인할 이유Solution and explanation

gL=−x,gU=x−2입니다. 0은 하한만 활성, 1은 둘 다 비활성, 2는 상한만 활성입니다. 3은 gU=1>0이라 허용되지 않습니다. 위반을 활성이라고 부르지 않습니다.

With −x and x−2, zero activates only the lower bound, one neither, two only the upper bound. Three violates the upper bound and is infeasible.

13. 승수 부호가 후보를 버리는 경우A rejected multiplier sign

min −x subject to x≥0에서 원점의 정상식 승수를 구하고 최소 여부를 판단하세요.

For min −x subject to x≥0, solve stationarity at zero and assess minimality.

풀이와 확인할 이유Solution and explanation

g=−x이므로 −1−ν=0에서 ν=−1입니다. 비음수 조건을 어겨 KKT가 아닙니다. 실제 x를 양수 방향으로 늘리면 −x가 계속 작아져 원점은 최소가 아니며 함수는 아래로 유계가 아닙니다.

Using g=−x gives −1−ν=0, requiring ν=−1 and violating dual feasibility. Increasing x improves the objective without bound, so zero is not a minimizer.

14. 활성인데 승수 0Active with zero multiplier

min ½x² subject to x≥0의 KKT 네 조건을 모두 확인하세요.

Check every KKT component for min ½x² with x≥0.

풀이와 확인할 이유Solution and explanation

x*=0,ν*=0입니다. −x≤0,ν≥0이 맞고 ν(−x)=0입니다. 정상식 x−ν=0도 맞습니다. 활성 g=0이지만 ν=0입니다. 볼록 목적·아핀 부등식이므로 충분성으로 전역 최소이고 엄격볼록성으로 유일합니다.

At x=ν=0, primal feasibility, nonnegativity, complementarity and x−ν=0 all hold. The active constraint has zero multiplier. Convex sufficiency and strict convexity prove unique global optimality.

15. 상보성의 논리 방향Directions of complementarity

g≤0,ν≥0,νg=0에서 성립하는 함의를 쓰고, g=0⇒ν>0이 틀린 예를 드세요.

State the valid implications of g≤0,ν≥0,νg=0 and refute g=0⇒ν>0.

풀이와 확인할 이유Solution and explanation

g<0⇒ν=0과 ν>0⇒g=0은 성립합니다. g=0이면 ν는 0일 수도 있습니다. ½x²를 x≥0에서 최소화한 x=0,ν=0이 반례입니다. 엄격 상보성은 기본 KKT보다 추가 조건입니다.

Strict slackness forces zero multiplier; a positive multiplier forces activity. Activity can coexist with zero multiplier, as for ½x² over x≥0 at zero. Strict complementarity is additional.

16. 구간의 왼쪽 최소A lower-endpoint optimum

½(x−1)²를 [2,5]에서 최소화하고 νL,νU를 구하세요.

Minimize ½(x−1)² on [2,5] and find both multipliers.

풀이와 확인할 이유Solution and explanation

해는 x=2입니다. gL=2−x=0,gU=x−5=−3이라 상보성으로 νU=0입니다. 정상식 2−1−νL=0에서 νL=1입니다. 모두 허용되고 볼록 KKT 충분성으로 유일 전역 최소입니다. 최솟값은 1/2입니다.

The solution is two. The upper bound is slack, so its multiplier is zero. Stationarity gives lower multiplier one. Convex sufficiency proves the unique global minimum value 1/2.

17. 구간의 오른쪽 최소An upper-endpoint optimum

½(x−7)²를 [2,5]에서 최소화하고 νL,νU를 구하세요.

Minimize ½(x−7)² on [2,5] and find both multipliers.

풀이와 확인할 이유Solution and explanation

해는 5, 하한은 비활성이라 νL=0입니다. 정상식 5−7+νU=0에서 νU=2입니다. 최솟값은 2입니다. 음의 목적함수 도함수 −2를 상한 승수 +2가 상쇄합니다.

The optimum is five, with inactive lower multiplier zero. Stationarity gives upper multiplier two. The minimum value is two; the upper normal term balances the objective derivative −2.

18. 구간 내부 최소An interior box optimum

½(x−3)²를 [2,5]에서 최소화하고 활성집합·승수를 구하세요.

Minimize ½(x−3)² on [2,5], giving the active set and multipliers.

풀이와 확인할 이유Solution and explanation

x*=3이 두 부등식을 엄격하게 만족해 활성집합은 공집합입니다. 상보성으로 두 승수는 모두 0이고 정상식 3−3=0이 맞습니다. 자유 최소가 범위 안에 있어 최솟값 0입니다.

At x=3 both bounds are slack, so the active set is empty and both multipliers vanish. Stationarity holds and the minimum value is zero.

19. 중심이 경계인 경우A center on the boundary

½(x−2)²를 [2,5]에서 최소화할 때 활성집합과 양의 승수 집합이 같은가요?

For ½(x−2)² on [2,5], do the active set and positive-multiplier set coincide?

풀이와 확인할 이유Solution and explanation

최소점 2에서 하한이 활성이고 상한은 비활성입니다. 정상식 0−νL+νU=0과 상보성으로 두 승수 모두 0입니다. 따라서 활성집합은 하한을 포함하지만 양의 승수 집합은 비어 있어 서로 다릅니다.

No. The optimum two activates the lower bound, but both multipliers are zero. Activity does not require a positive multiplier.

20. 한 점 구간의 승수 가족Singleton multiplier family

½(x−1)² on [3,3]에서 모든 비음수 KKT 승수 쌍을 구하세요.

Find every nonnegative KKT multiplier pair for ½(x−1)² on [3,3].

풀이와 확인할 이유Solution and explanation

허용점 x=3에서 정상식 2−νL+νU=0입니다. 따라서 νL=2+t,νU=t,t≥0입니다. 두 제약이 활성이고 상보성은 자동입니다. 최소점은 유일하지만 승수는 무한히 많습니다.

At x=3, stationarity gives νL−νU=2. All pairs are (2+t,t), t≥0. Both constraints are active; the unique optimizer has infinitely many multiplier pairs.

21. LICQ 검사Checking LICQ

등식 제약이 없다고 가정하고, 변수 하나에서 활성 기울기가 {−1}, {−1,1}, {0}, 공집합일 때 각각 LICQ를 판단하세요.

For one variable, test LICQ for active gradients {−1}, {−1,1}, {0} and the empty set, assuming no equalities.

풀이와 확인할 이유Solution and explanation

{−1}은 독립, {−1,1}은 종속, {0}도 종속입니다. 등식이 없을 때 공집합은 선형 독립으로 취급하므로 LICQ가 성립합니다. 비활성 제약은 모음에 넣지 않습니다.

The nonzero singleton is independent; the two opposite gradients and the zero gradient are dependent. The empty family is linearly independent. Inactive gradients are excluded.

22. 양의 반경의 필요조건A positive-radius optimum

min x subject to x²−r²≤0에서 r=2일 때 최적점·승수·LICQ를 확인하세요.

For min x subject to x²−r²≤0, take r=2 and verify optimizer, multiplier and LICQ.

풀이와 확인할 이유Solution and explanation

허용구간 [−2,2]의 최소는 −2입니다. 활성 기울기 2x=−4≠0이라 LICQ가 성립합니다. 정상식 1−4ν=0에서 ν=1/4이고 상보성·비음수 조건도 맞습니다. 목적값은 −2입니다.

The optimizer is −2. Its active gradient is −4, so LICQ holds. Stationarity gives ν=1/4, satisfying all KKT components. The objective value is −2.

23. 반경 0의 실패The zero-radius failure

같은 문제 min x subject to x²≤0에서 최소와 KKT 존재를 각각 판단하세요.

For min x with x²≤0, assess the minimum and KKT existence separately.

풀이와 확인할 이유Solution and explanation

허용집합은 {0}이므로 0이 유일 전역 최소입니다. 활성 기울기 0으로 LICQ가 실패하고 정상식 1+ν·0=0은 불가능합니다. 따라서 승수가 없습니다. 필요성 정리의 가정이 실패했으므로 모순이 아닙니다.

The unique feasible point zero is a global minimizer. LICQ fails and stationarity would require 1=0, so no KKT multipliers exist. The necessary theorem does not apply.

24. CQ 실패의 잘못된 추론A false inference from failed CQ

‘LICQ가 실패하므로 KKT 승수가 없다’라는 말을 반례로 고치세요.

Refute “LICQ fails, therefore no KKT multiplier exists.”

풀이와 확인할 이유Solution and explanation

½(x−1)² on [3,3]은 두 활성 기울기 −1,1이 종속이라 LICQ가 실패합니다. 그래도 x=3,νL=2+t,νU=t는 모든 t≥0에서 KKT입니다. 실패는 보장 정리를 못 쓴다는 뜻이지 부재의 증명이 아닙니다.

For ½(x−1)² on [3,3], opposite active gradients violate LICQ, yet multipliers (2+t,t), t≥0 satisfy KKT. An unavailable guarantee is not proof of absence.

25. 볼록 표준형 구별Recognizing convex standard form

x²+y²=1과 x²+y²−1≤0 중 어느 것이 볼록 표준 제약인가요?

Compare x²+y²=1 with x²+y²−1≤0 as convex standard constraints.

풀이와 확인할 이유Solution and explanation

부등식은 볼록함수의 0 이하 영역인 원판이라 표준형에 맞습니다. 등식은 비아핀이고 원 둘레는 볼록하지 않으므로 이 볼록 표준형에 맞지 않습니다. 목적함수의 볼록성만 확인해서는 충분하지 않습니다.

The inequality is a convex sublevel disk. The equality is non-affine and defines a nonconvex circumference. Objective convexity alone cannot repair that difference.

26. KKT 충분성 사슬The convex sufficiency chain

볼록 표준형의 KKT 점 a에 대해 허용 y에서 f(y)≥L(y)≥L(a)=f(a)의 이유를 하나씩 쓰세요.

Explain each step of f(y)≥L(y)≥L(a)=f(a) for a convex KKT point and feasible y.

풀이와 확인할 이유Solution and explanation

첫째 등식항 0,부등식항 νg≤0이라 f(y)≥L(y)입니다. 둘째 L은 x에 대해 볼록하고 ∇ₓL(a)=0이라 a가 그 전역 최소입니다. 마지막은 a의 허용성과 상보성입니다. 따라서 a는 전역 최소이며 이 충분성에는 자격조건을 별도로 쓰지 않았습니다.

Feasibility and nonnegative inequality multipliers give the first step. Convexity and zero gradient make a globally minimize the Lagrangian. Feasibility and complementarity give the equality. No separate qualification is needed for this sufficiency proof.

27. Slater 점 찾기Finding a Slater point

x²+y²−1≤0, x+y=0의 볼록 제약에서 엄격 허용점을 찾고, 등식을 x+y=3으로 바꾸면 어떻게 되는지 설명하세요.

Find a strict feasible point for x²+y²−1≤0 and x+y=0. What if the equality becomes x+y=3?

풀이와 확인할 이유Solution and explanation

첫 문제에서는 (0,0)이 등식을 만족하고 부등식 값 −1<0이라 Slater 점입니다. 합 3이면 x²+y²≥(x+y)²/2=9/2>1이라 허용점 자체가 없습니다. Slater 검사 전에 기본 허용성을 확인해야 합니다.

The origin is strictly feasible for the first problem. With sum three, x²+y²≥(x+y)²/2=9/2, contradicting the disk constraint. The second problem is infeasible.

28. Slater와 원문제 미달성Slater without primal attainment

min eˣ subject to x≤0에서 Slater 조건과 최소 달성을 각각 검사하세요.

Check Slater and primal attainment for min eˣ subject to x≤0.

풀이와 확인할 이유Solution and explanation

f=eˣ는 볼록, g=x는 아핀이고 x=−1에서 g<0이라 Slater가 성립합니다. 최적값은 0이지만 x→−∞로 접근할 뿐 달성되지 않습니다. 유한 최적값·쌍대 보장과 원문제 최소점 존재는 구별해야 합니다.

The objective is convex and x=−1 strictly satisfies the affine inequality. Slater holds. The finite infimum zero is approached only at negative infinity and is not attained, so Slater does not ensure a primal optimizer.

29. 약쌍대성 직접 증명Proving weak duality

허용 y와 ν≥0에 대해 q(λ,ν)≤f(y)를 제약식 부호로 증명하세요.

Prove q(λ,ν)≤f(y) for feasible y and ν≥0.

풀이와 확인할 이유Solution and explanation

inf의 정의로 q≤L(y)입니다. h(y)=0이고 각 νᵢgᵢ(y)≤0이므로 L(y)=f(y)+Σνᵢgᵢ(y)≤f(y)입니다. 두 부등식을 합칩니다. 볼록성은 쓰지 않았고 λ는 자유 실수입니다.

The infimum satisfies q≤L(y). Equality terms vanish and each νᵢgᵢ(y)≤0, so L(y)≤f(y). Convexity is unnecessary; equality multipliers remain unrestricted.

30. 쌍대함수의 계산Computing a dual function

½(x−c)²−νx를 x에 대해 완전제곱해 q(ν)를 구하세요.

Complete the square in ½(x−c)²−νx to derive q(ν).

풀이와 확인할 이유Solution and explanation

½(x−c−ν)²−cν−ν²/2입니다. 제곱이 0인 x=c+ν에서 전역 최소가 달성되므로 q=−cν−ν²/2입니다. 이 안쪽 x는 원문제 x≥0 제약 없이 실수 전체에서 움직입니다.

It equals ½(x−c−ν)²−cν−ν²/2. The inner minimum over all real x is attained at c+ν, giving q=−cν−ν²/2. The primal nonnegativity constraint is not imposed in this inner calculation.

31. 음의 목표의 쌍대 해A negative target and its dual

½(x+2)²를 x≥0에서 최소화하고 쌍대 최적 승수와 값을 구하세요.

Solve min ½(x+2)² over x≥0, including the dual optimum.

풀이와 확인할 이유Solution and explanation

c=−2라 x*=0입니다. q(ν)=2ν−ν²/2=2−(ν−2)²/2이므로 ν*=2,d*=2입니다. 원문제 f(0)=2와 같고 정상식 0+2−2=0,상보성도 맞습니다.

The primal optimum is zero with value two. The dual q=2ν−ν²/2 uniquely maximizes at ν=2, value two. Stationarity and complementarity verify the zero gap.

32. 양의 목표의 비활성 제약A positive target and a slack constraint

½(x−3)²를 x≥0에서 최소화하고 q의 최대를 구하세요.

Find primal and dual optima for ½(x−3)² over x≥0.

풀이와 확인할 이유Solution and explanation

원문제 x*=3에서 값 0이고 제약은 비활성입니다. q=−3ν−ν²/2는 ν≥0에서 최대 0을 ν=0에서 얻습니다. 상보성은 0·(−3)=0이고 정상식도 맞습니다.

The primal optimum is three with value zero and a slack constraint. The dual −3ν−ν²/2 maximizes at ν=0 with value zero. All KKT components hold.

33. 비최적 쌍의 gapA nonoptimal pair and its gap

c=−2,x=1,ν=1에서 f(x),q(ν),gap을 구하고 분해식과 맞추세요.

For c=−2,x=1,ν=1, compute f,q and the gap and verify its decomposition.

풀이와 확인할 이유Solution and explanation

f(1)=9/2,q(1)=3/2라 gap=3입니다. 분해식은 ½(1+2−1)²+1·1=2+1=3입니다. 원문제 최적값 2에 대한 오차 f(1)−2=5/2는 gap 3보다 작습니다.

The values are 9/2 and 3/2, so the gap is three. The decomposition gives ½(1+2−1)²+1=3. Primal suboptimality 5/2 is bounded by that gap.

34. 허용성 없는 gap 인증은 안 된다Feasibility is required for a certificate

c=−2,x=−2,ν=2를 넣으면 f(x)=0,q(ν)=2입니다. 약쌍대성이 틀렸나요?

For c=−2,x=−2,ν=2, f(x)=0 but q(ν)=2. Is weak duality false?

풀이와 확인할 이유Solution and explanation

아닙니다. x=−2는 x≥0을 어겨 원문제 허용점이 아닙니다. 약쌍대성의 허용 y 가정이 빠졌습니다. 분해식에서도 정상 오차 제곱과 νx의 합이 −2일 수 있는데 둘째 항이 음수여서 비음수 인증이 사라집니다.

No. The chosen primal input is infeasible. The lower-bound theorem compares dual values with feasible primal values. The gap identity can be negative because νx is negative here.

35. 쌍대 오목성의 증명Why the dual is concave

각 x에서 L(x,z)가 승수 z에 대해 아핀일 때 infₓL(x,z)가 왜 오목한지 설명하세요.

Why is infₓL(x,z) concave when L is affine in z at each x?

풀이와 확인할 이유Solution and explanation

모든 x에서 L(x,(1−t)z₁+tz₂)=(1−t)L(x,z₁)+tL(x,z₂)≥(1−t)q(z₁)+tq(z₂)입니다. 왼쪽에 x하한값을 취해도 오른쪽은 고정되어 유지됩니다. 유한값인 두 끝점에서 오목 부등식이 됩니다.

For every x, the mixed Lagrangian equals the mixture of its endpoint values and is at least the mixture of their infima. Infimizing the left side preserves this bound, proving concavity where the endpoint values are finite.

36. 양의 쌍대차이의 원문제Primal side of a positive-gap example

min x²(x²−2)² subject to x²=1의 원문제 최적값과 해를 구하세요.

Solve min x²(x²−2)² subject to x²=1.

풀이와 확인할 이유Solution and explanation

허용점은 x=±1뿐입니다. 둘 다 f=1·(−1)²=1이라 두 점이 전역 최소이자 최대입니다. 허용집합 밖에서 f가 0이 될 수 있어도 원문제 값은 바뀌지 않습니다.

The only feasible points are ±1 and both give value one. Both minimize and maximize on this feasible set. Zeros of the objective outside the set do not change the primal optimum.

37. 양의 쌍대차이의 하한Dual side of a positive-gap example

위 문제의 L=f+λ(x²−1)에서 x=0,√2를 사용해 d*=0임을 증명하세요.

Use x=0 and √2 in L=f+λ(x²−1) to prove the preceding problem has d*=0.

풀이와 확인할 이유Solution and explanation

L(0)=−λ,L(√2)=λ이므로 q(λ)≤−|λ|≤0입니다. λ=0에서는 f≥0이고 x=0에서 0이라 q(0)=0입니다. 따라서 d*=0,p*=1로 gap 1입니다. 원문제·쌍대 모두 달성되지만 강쌍대성은 실패합니다.

Those inputs bound q(λ) by min(−λ,λ)≤0. At λ=0 the nonnegative objective attains zero, so q(0)=0. Thus d*=0 versus p*=1, a positive gap despite attainment on both sides.

38. 강쌍대성이지만 승수 미달성Strong duality without a dual optimizer

min x subject to x²≤0의 q(ν)를 구하고 최적 승수 존재를 판단하세요.

Derive q(ν) and assess dual attainment for min x with x²≤0.

풀이와 확인할 이유Solution and explanation

ν>0에서 x+νx²=ν(x+1/(2ν))²−1/(4ν)이므로 q=−1/(4ν)입니다. ν=0에서는 −∞입니다. sup q=0=p*지만 어떤 유한 ν에서도 0이 아니므로 쌍대 최적점은 없습니다. 강쌍대성과 쌍대 달성을 분리하는 예입니다.

For ν>0, completing the square gives q=−1/(4ν); at zero it is −∞. The supremum zero equals the primal value but is not attained by a finite multiplier.

39. 달성된 0 gap의 상보성Complementarity from an attained zero gap

원문제·쌍대 해가 달성되고 q=L(x*)=f(x*)이면 왜 각 νᵢgᵢ(x*)가 0인가요?

Why does attained equality q=L(x*)=f(x*) force every νᵢgᵢ(x*) to vanish?

풀이와 확인할 이유Solution and explanation

허용성 때문에 각 항은 0 이하이고 합은 L−f=0입니다. 하나라도 음수면 다른 항들이 양수일 수 없으므로 합이 음수가 되어 모순입니다. 따라서 각 항이 0이고 상보성이 성립합니다.

Each term is nonpositive by feasibility and nonnegative multipliers, and their sum is zero. Any strictly negative term would make the whole sum negative, forcing every term to be zero.

40. 감도의 부호The sign of sensitivity

p=3,q=1의 직선 투영 문제에서 V(B)=(4−B)²/4입니다. B=2에서 V′와 λ를 비교하세요.

For p=3,q=1, V(B)=(4−B)²/4. Compare V′ and λ at B=2.

풀이와 확인할 이유Solution and explanation

V′=(B−4)/2라 B=2에서 −1입니다. λ=(4−B)/2=1이므로 V′=−λ입니다. 제약을 x+y−B=0으로 쓴 부호가 이 관계를 정합니다. 작은 B 증가의 최적 손실 변화는 약 −ΔB입니다.

The derivative is −1 and multiplier one, so V′=−λ. The sign follows from h=x+y−B. A small increase in B changes the optimal loss by approximately −ΔB.

41. 제약식 배율Constraint scaling

등식 h=x+y−2의 λ=1을 h̃=100h로 바꾸면 새 승수는? 부등식도 같은가요?

If λ=1 for h=x+y−2, what is the multiplier for h̃=100h? Compare inequalities.

풀이와 확인할 이유Solution and explanation

λ̃=1/100이어야 λ̃h̃=λh가 같습니다. 부등식은 양수 100배에서만 방향이 보존되고 ν̃=ν/100입니다. 음수배한 뒤 같은 ≤0을 쓰면 원래 허용집합이 아니므로 단순한 승수 변환이 아닙니다.

The new multiplier is 1/100, preserving its Lagrangian contribution. Positive inequality scaling similarly divides ν by 100. Negative scaling with unchanged ≤ direction changes the feasible set.

42. 정상 잔차만 보면 안 된다Stationarity residual alone is insufficient

min ½(x−3)² subject to x≤1에서 x=3,ν=0은 정상 잔차 0입니다. 왜 해가 아니며 진짜 KKT 해는 무엇인가요?

For min ½(x−3)² subject to x≤1, x=3,ν=0 has zero stationarity residual. Why is it invalid, and what is the true KKT solution?

풀이와 확인할 이유Solution and explanation

x=3은 g=x−1=2>0으로 원문제 허용성을 어깁니다. 진짜 해는 x=1이고 정상식 1−3+ν=0에서 ν=2입니다. 상보성과 부호가 맞고 볼록 충분성으로 유일 전역 최소입니다.

It violates x≤1. The true solution is x=1,ν=2, satisfying feasibility, stationarity, nonnegativity and complementarity. Convexity proves unique global optimality.

43. 고정 벌점과 정확 제약A fixed penalty versus an exact constraint

min x subject to x=0에서 벌점 x+ρx²/2의 ρ=10 최소와 원문제 해를 비교하세요.

Compare the minimizer of x+ρx²/2 at ρ=10 with min x subject to x=0.

풀이와 확인할 이유Solution and explanation

벌점 정상식 1+10x=0에서 x=−0.1로 제약을 어깁니다. 원문제 해는 0이고 Lagrange 승수는 −1입니다. 유한 제곱벌점은 원래 문제와 자동 동치가 아닙니다. ρ를 키우면 위반이 줄지만 정확히 0은 아닙니다.

The penalty gives x=−0.1, violating the equality. The original optimizer is zero with multiplier −1. A finite quadratic penalty is not automatically equivalent to the constrained problem.

44. 실제 국가 등식 승수An actual-data country equality multiplier

실제 GDP 요약 손실 L(a,b)의 ∂L/∂a=a−μ, μ≈33290.08977874742입니다. a=B=33496.3113815643이면 h=a−B의 λ를 구하고 의미를 한정하세요.

For a GDP-summary loss with ∂L/∂a=a−μ, μ≈33290.08977874742, fix a=B=33496.3113815643. Find λ for h=a−B and limit its interpretation.

풀이와 확인할 이유Solution and explanation

정상식 a−μ+λ=0에서 λ=μ−B≈−206.22160281688입니다. b의 최적값은 중심 연도 좌표의 합이 0이어서 기존 기울기와 같습니다. 승수는 이 가정 앵커에 대한 선택 손실의 감도이며 실제 GDP 정책의 인과 효과가 아닙니다.

Stationarity gives λ=μ−B≈−206.22160281688. Centered years leave the fitted slope unchanged. The multiplier concerns the hypothetical anchor in this chosen loss, not a causal GDP policy effect.

45. 실제 가구 B=2의 KKTActual household KKT at B=2

가구 상수요약 J의 기울기가 (a−μa,b−μb), μa=2033/1440,μb=4187/1440입니다. a+b=2,a,b≥0의 KKT 해를 구하세요.

For gradient (a−μa,b−μb), μa=2033/1440,μb=4187/1440, solve a+b=2,a,b≥0.

풀이와 확인할 이유Solution and explanation

두 상수가 양수라고 풀면 a=μa−λ,b=μb−λ, λ=(μa+μb−2)/2=167/144≈1.1597222222입니다. a=121/480≈0.2520833333,b=839/480≈1.7479166667로 양수여서 가정이 맞고 νa=νb=0입니다. 볼록 이차손실·아핀 제약으로 유일 전역 최소입니다.

An interior solution gives λ=167/144, a=121/480 and b=839/480. Both constants are positive, validating zero inequality multipliers. Convex quadratic loss and affine constraints give a unique global optimum.

46. 실제 가구 B=1의 활성 변화Actual household active-set change at B=1

같은 평균 μa=2033/1440,μb=4187/1440에서 a+b=1,a,b≥0을 풀고 네 조건을 확인하세요.

With μa=2033/1440 and μb=4187/1440, solve a+b=1,a,b≥0 and check all KKT parts.

풀이와 확인할 이유Solution and explanation

자유 등식해의 a는 음수가 되어 배제합니다. a=0,b=1에서 b정상식은 λ=μb−1=2747/1440입니다. a정상식 −μa+λ−νa=0에서 νa=714/1440=119/240≈0.4958333333,νb=0입니다. 허용성·승수 부호·상보성·정상성이 맞습니다.

The unrestricted equality solution has negative a. Set a=0,b=1; stationarity gives λ=2747/1440, νa=119/240 and νb=0. Feasibility, multiplier signs, complementarity and both stationarity equations hold.

47. 가구의 음수 B와 0인 BNegative and zero household totals

가구 제약 a+b=B,a,b≥0에서 B<0과 B=0을 비교하세요. B=0의 KKT 승수 가족도 구하세요.

Compare a+b=B,a,b≥0 for B<0 and B=0, and find the B=0 multiplier family.

풀이와 확인할 이유Solution and explanation

B<0이면 비음수 두 수의 합이 음수일 수 없어 허용점이 없습니다. B=0이면 (0,0)만 허용됩니다. 평균 μa,μb에 대해 νa=λ−μa,νb=λ−μb이므로 λ≥max(μa,μb)에서 모두 KKT입니다. 해는 유일하지만 승수는 비유일하고 LICQ는 실패합니다.

Negative B is infeasible. At zero the only point is (0,0). Stationarity gives νa=λ−μa,νb=λ−μb, both nonnegative for λ≥max(μa,μb). The optimizer is unique but multipliers are not; LICQ fails.

48. 실제 기업의 상한 승수An actual company upper-bound multiplier

앞에서 정의한 실제 매출의 엄격볼록 이차손실 L(α)=Σ(αxᵢ−zᵢ)²/10에서 L′(1.01)=−81,455,313.074이고 가정 범위는 [0.95,1.01]입니다. 두 경계 승수를 계산하세요.

For the previously defined strictly convex quadratic actual-sales loss L(α)=Σ(αxᵢ−zᵢ)²/10, L′(1.01)=−81,455,313.074 and the hypothetical bounds are [0.95,1.01]. Find both multipliers.

풀이와 확인할 이유Solution and explanation

볼록 이차손실의 도함수는 증가하므로 상단에서도 음수이면 구간 전체가 감소합니다. 최소 α=1.01에서 하한은 비활성이라 νL=0입니다. 정상식 L′−νL+νU=0에서 νU=81,455,313.074입니다. 단위는 (백만 USD)²/무차원 계수이고 선택 손실의 정상조건입니다. 기업의 관측된 자원 가격이나 실제 매출 증가액이 아닙니다.

The quadratic derivative is increasing, so negativity at the upper endpoint makes the whole interval decreasing. At the upper optimum the lower bound is slack, giving νL=0. Stationarity requires νU=81,455,313.074. The units and meaning belong to the chosen fitting loss, not an observed business resource price or sales increase.

49. 마지막 논리 점검A final logic check

①KKT이면 항상 최소 ②LICQ 실패면 최적점 없음 ③강쌍대성이면 유한 최적 승수 존재 ④볼록 표준형의 정확 KKT이면 전역 최소를 각각 판정하세요.

Assess: KKT always means minimum; failed LICQ means no optimizer; strong duality implies finite attained multipliers; exact KKT in convex standard form proves a global minimum.

풀이와 확인할 이유Solution and explanation

①거짓: 원의 최대 후보도 KKT입니다. ②거짓: x²≤0에서 x최소는 0입니다. ③거짓: 같은 문제는 d*=p*=0이나 쌍대 승수가 미달성입니다. ④참: 허용성·승수 부호·상보성·정상성과 볼록 구조를 이용한 Lagrangian 부등식 사슬로 증명합니다.

The first three are false: use the circle maximum, the singleton x²≤0 optimizer, and its unattained dual supremum. The fourth is true by convex Lagrangian sufficiency, with every KKT component verified.

50. 목적함수와 승수의 단위Objective and multiplier units

f의 단위가 원², h의 단위가 m이면 λ의 단위는? 목적함수를 100배하면 같은 해의 정상식을 맞추는 λ는 어떻게 바뀌나요?

If f has units currency² and h has units metres, what units must λ have? How does λ change when the objective is multiplied by 100?

풀이와 확인할 이유Solution and explanation

λh와 f의 단위를 맞춰야 하므로 λ는 원²/m입니다. 목적함수를 100배하고 제약은 그대로 두면 λ도 100배해 정상식 전체를 같은 배율로 맞출 수 있습니다. 최소점은 같지만 승수의 숫자와 단위 해석을 보존해야 합니다.

The multiplier has units currency²/metre. Multiplying both the objective gradient and λ by 100 preserves stationarity at the same optimizer. Numerical multiplier sizes depend on objective scaling.

자료와 출처Data and sources

20장 실제 자료와 가정 제약Chapter 20 actual data and assumed constraints · KKT·단위·원자료·정확 분수KKT, units, original data and exact fractions

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms