{
  "cases": {
    "ko": "<div class=\"case-studies\"><article class=\"case-study\" id=\"constraints-case-country-ko\"><h3>국가 사례 · 실제 기준점을 반드시 지나는 직선 맞추기</h3><p>한국의 2014~2024년 실제 1인당 실질 GDP 11개를 사용합니다. t=연도−2019, 예측식 a+b t, 손실 L=제곱오차 합/22로 18장의 적합 문제를 유지합니다. 여기에 “2019년 관측을 정확히 지나라”는 <strong>학습용 등식 제약</strong>을 추가합니다. 실제 정부 제도나 GDP 생성 법칙에서 주어진 제약이 아닙니다.</p><div data-tex=\"L(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\"></div><p>t=0이 2019년이므로 이 제약은 a를 실측 A에 고정합니다. 무제약 최소제곱의 â≈33,290.090과 달라지고, 두 직선의 다른 연도 값은 여전히 계산한 참조값입니다. 단위는 a,A가 2015 USD/명이고 b는 그 단위/년입니다.</p><div data-case-chart=\"country\"></div><h4>1. 부호관례를 정하고 등식 승수를 구하기</h4><p>이 장은 모든 사례에서 h=0의 승수 λ는 실수 전체, g≤0의 승수 ν는 비음수로 둡니다. Lagrangian은 ℒ=목적함수+λh+Σνg로 통일합니다. 등식 승수의 부호는 제한하지 않습니다.</p><div data-tex=\"\\mathcal L(a,b,\\lambda)=L(a,b)+\\lambda(a-A)\"></div><div data-tex=\"0=\\partial_a\\mathcal L=a-\\bar y+\\lambda,\\qquad0=\\partial_b\\mathcal L=10(b-\\widehat b),\\qquad a=A\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 자료에서 계산한 무제약·등식 제약 적합</caption><thead><tr><th scope=\"col\">항목</th><th scope=\"col\">무제약 최소</th><th scope=\"col\">가정한 기준점 통과 최소</th></tr></thead><tbody><tr><th scope=\"row\">a (2015 USD/명)</th><td>33,290.089779</td><td>33,496.311382</td></tr><tr><th scope=\"row\">b (2015 USD/명/년)</th><td>754.475929</td><td>754.475929</td></tr><tr><th scope=\"row\">L ((2015 USD/명)²)</th><td>43,144.027508</td><td>64,407.702243</td></tr><tr><th scope=\"row\">λ (2015 USD/명)</th><td>등식 제약 없음</td><td>-206.221602817</td></tr></tbody></table></div><p>λ=ȳ−A≈-206.221602817입니다. 제약을 준 뒤에도 b가 같은 이유는 중심화한 t의 합이 0이라서 a와 b의 적합식이 분리되기 때문입니다. 임의의 회귀 자료에서 언제나 기울기가 그대로라는 법칙은 아닙니다.</p><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 음수 λ는 계산 오류인가요?</summary><div><p>아닙니다. λ는 등식 승수라 음수여도 됩니다. 같은 등식을 h̃=A−a=0으로 적으면 그 승수는 −λ가 되어도 예측값과 최적점은 같습니다. 부호를 비교하기 전에 제약식의 방향과 Lagrangian 정의를 확인합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: ℒ의 정지점을 찾으면 λ까지 함께 최소화한 것인가요?</summary><div><p>아닙니다. 승수는 등식을 강제하는 조건을 정리하는 보조변수입니다. 이 사례에서는 λ를 임의로 움직여 ℒ를 공동 최소화하는 문제가 아닙니다. 실제 목적함수의 최소는 a=A인 허용 직선에서 b를 선택하는 문제입니다. ∇h=(1,0)은 0이 아니므로 이 등식의 정칙성도 확인할 수 있습니다.</p></div></details><div data-tex=\"L(A,b)-L(A,\\widehat b)=5(b-\\widehat b)^2\\ge0\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 이 제약 최소가 전역이며 유일하다는 근거는?</summary><div><p>위 정확한 등식은 허용되는 모든 b에서 손실이 최소값 이상이며 b=b̂일 때만 같음을 보여줍니다. 최소 손실은 무제약 값보다 (A−ȳ)²/2만큼 커집니다. 제약을 추가하면 후보집합이 줄어드므로 무제약 최소보다 더 작은 손실을 얻을 수 없습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: A를 조금 바꿀 때 −λ를 실제 정책의 경제적 가치로 읽을까요?</summary><div><p>여기서는 V(A)=무제약 최소 손실+(A−ȳ)²/2이므로 V′(A)=A−ȳ=−λ입니다. 이는 선택한 적합 제약의 우변을 바꿀 때 제곱손실이 달라지는 비율입니다. 정부 정책의 인과효과, 국민 소득 증가액, 시장가격으로 해석하지 않습니다.</p></div></details><p class=\"source-note\">자료: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · 실제 한국 GDP/명과 가정한 적합 제약</a> · <a href=\"math20-sources/korea-actual-inputs-and-assumed-anchored-fit.csv\" download>실제 입력·가공 CSV</a></p></article><article class=\"case-study\" id=\"constraints-case-person-ko\"><h3>가구 사례 · 합과 비음수를 동시에 지키는 두 상수 요약</h3><p>같은 UCI 하루의 1,440개 실제 주방·세탁실 분별 에너지(Wh)를 각각 상수 a,b로 요약합니다. 실측 평균은 μ₁≈1.411805556, μ₂≈2.907638889 Wh입니다. 이제 a+b=B와 a,b≥0라는 <strong>가정한 요약 규칙</strong>을 추가합니다. B는 대체 상수 두 개의 합이며 실제 가구에 적용한 에너지 예산·절약 정책이나 실측 총량이 아닙니다.</p><div data-tex=\"J(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\"></div><div data-tex=\"\\mathcal L=J+\\lambda(a+b-B)-\\nu_1a-\\nu_2b,\\quad \\lambda\\in\\mathbb R,\\quad\\nu_1,\\nu_2\\ge0\"></div><div data-tex=\"a-\\mu_1+\\lambda-\\nu_1=0,\\qquad b-\\mu_2+\\lambda-\\nu_2=0,\\qquad \\nu_1a=\\nu_2b=0\"></div><p>J는 Wh², a,b,B는 Wh이므로 λ와 ν도 Wh입니다. 원자료는 고정합니다. a를 0으로 맞추는 제약해가 나와도 실제 주방 에너지가 0이 되었다는 뜻은 아닙니다. 그림의 경로는 B를 가정해 바꾼 최적 상수들이며 새 관측값이 아닙니다.</p><div data-case-chart=\"person\"></div><h4>1. 두 상수가 양수인 경우와 경계가 활성화되는 경우</h4><div class=\"table-scroll\" tabindex=\"0\"><table><caption>선택한 B에서의 KKT 해 (모든 열 Wh)</caption><thead><tr><th scope=\"col\">가정한 합 B</th><th scope=\"col\">최적 a</th><th scope=\"col\">최적 b</th><th scope=\"col\">등식 λ</th><th scope=\"col\">주방 ν₁</th><th scope=\"col\">세탁실 ν₂</th></tr></thead><tbody><tr><th scope=\"row\">0.000000</th><td>0.000000000</td><td>0.000000000</td><td>2.907638889</td><td>1.495833333</td><td>0.000000000</td></tr><tr><th scope=\"row\">1.000000</th><td>0.000000000</td><td>1.000000000</td><td>1.907638889</td><td>0.495833333</td><td>0.000000000</td></tr><tr><th scope=\"row\">2.000000</th><td>0.252083333</td><td>1.747916667</td><td>1.159722222</td><td>0.000000000</td><td>0.000000000</td></tr><tr><th scope=\"row\">4.319444</th><td>1.411805556</td><td>2.907638889</td><td>0.000000000</td><td>0.000000000</td><td>0.000000000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: B=2 Wh에서 비음수 제약 승수는 왜 0인가요?</summary><div><p>해는 a=0.252083333, b=1.747916667로 둘 다 양수입니다. 따라서 g₁,g₂가 음수여서 보완성에 따라 ν₁=ν₂=0입니다. 두 정상성 식과 a+b=2를 풀면 λ=(μ₁+μ₂−2)/2=1.159722222 Wh을 얻습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: B=1 Wh에서 등식만 풀면 어떤 문제가 생기나요?</summary><div><p>비음수를 무시한 등식 해의 a=(1+μ₁−μ₂)/2는 음수입니다. 따라서 허용되지 않습니다. 비음수까지 지키는 해는 a=0,b=1입니다. λ=μ₂−1≈1.907638889, ν₁=λ−μ₁≈0.495833333, ν₂=0을 넣으면 두 정상성 식, 허용성, 비음수 승수, 보완성을 모두 만족합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: KKT 해가 전역 최소인 이유도 확인할 수 있나요?</summary><div><p>J는 Hessian I인 엄격한 볼록 이차함수이고 제약은 아핀 등식·부등식입니다. 허용집합은 B≥0일 때 닫힌 선분이므로 최소가 존재하고, 엄격한 볼록성으로 해가 유일합니다. 실제 상수항을 뺀 목적은 [(a−μ₁)²+(b−μ₂)²]/2입니다. a∈[0,B], b=B−a를 대입해 한 변수 이차함수를 최소화해도 같은 해를 얻습니다.</p></div></details><div data-tex=\"a^*(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\"></div><h4>2. 활성 제약이 있어도 승수가 0일 수 있다</h4><p>경계 전환 B=μ₂−μ₁=1.495833333 Wh에서는 a=0이지만 ν₁=0입니다. 보완성은 “승수>0이면 제약이 활성”을 뜻하며, 그 역인 “활성이면 승수>0”을 보장하지 않습니다.</p><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: B=0에서는 최적점도 승수도 모두 유일한가요?</summary><div><p>허용되는 상수는 a=b=0 하나라서 최적점은 유일합니다. 하지만 λ를 μ₂ 이상 임의로 고르면 ν₁=λ−μ₁, ν₂=λ−μ₂가 모두 비음수이고 같은 점에서 KKT를 만족합니다. 예를 들어 λ=μ₂와 λ=μ₂+1이 가능합니다. 이 점에서는 등식과 두 활성 부등식의 기울기 세 개가 2차원에서 선형독립일 수 없어 LICQ가 실패합니다. 그 사실이 최적점이나 직접 검산한 승수의 존재를 없애지는 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: B가 음수여도 승수 방정식을 풀어 답을 만들까요?</summary><div><p>a,b≥0이면 a+b≥0이므로 B<0의 허용집합은 비어 있습니다. 먼저 허용성을 확인하고, 불가능한 문제를 승수 숫자로 해결했다고 표시하지 않습니다.</p></div></details><p class=\"source-note\">자료: <a href=\"https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption\" target=\"_blank\" rel=\"noopener\">Hebrail·Berard · UCI 실제 두 계통 자료 (CC BY 4.0)</a> · <a href=\"math20-sources/household-actual-two-channel-observations.csv\" download>실제 입력·가공 CSV</a></p></article><article class=\"case-study\" id=\"constraints-case-company-ko\"><h3>기업 사례 · 19장의 경계 최소를 네 가지 KKT 조건으로 검산하기</h3><p>실제 Apple FY2023 매출 x와 FY2024 매출 z를 고정하고, 같은 참조식 αx의 손실 L=‖αx−z‖²/10을 씁니다. 단위는 매출이 백만 명목 USD, 손실이 그 제곱입니다. <strong>0.95≤α≤1.01은 학습용 가정 범위</strong>이며 실제 Apple의 경영 제약·매출 목표가 아닙니다.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>실제 입력과 가정 범위의 최소 참조값 (백만 USD)</caption><thead><tr><th scope=\"col\">품목</th><th scope=\"col\">실제 FY2023 x</th><th scope=\"col\">실제 FY2024 z</th><th scope=\"col\">α=1.01 참조 (실측 아님)</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>202,588.83</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,650.57</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,583.00</td></tr><tr><th scope=\"row\">웨어러블·홈·액세서리</th><td>39,845</td><td>37,005</td><td>40,243.45</td></tr><tr><th scope=\"row\">서비스</th><td>85,200</td><td>96,169</td><td>86,052.00</td></tr></tbody></table></div><div data-tex=\"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)\"></div><p>두 부등식을 모두 g≤0로 썼으므로 νU,νL≥0입니다. 위·아래 제약의 gradient가 각각 +1,−1이라 정상성 식은 L′+νU−νL=0입니다. 부호가 헷갈릴 때는 암기 대신 제약식을 직접 미분합니다.</p><div data-tex=\"\\alpha^*=1.01,\\quad \\nu_U=-L&#x27;(1.01)=81455313.074,\\quad\\nu_L=0\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>α=1.01에서의 네 가지 확인</caption><thead><tr><th scope=\"col\">조건</th><th scope=\"col\">실제 숫자 대입</th><th scope=\"col\">판정</th></tr></thead><tbody><tr><th scope=\"row\">원문제 허용성</th><td>gU=0, gL=−0.06</td><td>둘 다 ≤0</td></tr><tr><th scope=\"row\">승수 허용성</th><td>νU=81,455,313.074, νL=0</td><td>둘 다 ≥0</td></tr><tr><th scope=\"row\">보완성</th><td>νU×0=0, νL×(−0.06)=0</td><td>두 곱 모두 0</td></tr><tr><th scope=\"row\">정상성</th><td>−81,455,313.074+81,455,313.074−0=0</td><td>미분합 0</td></tr></tbody></table></div><p>α는 무차원이므로 두 승수의 단위는 (백만 USD)²입니다. 이 숫자는 이익이나 주식가치가 아니라 선택한 적합 손실과 가정한 범위의 조합에서 나온 값입니다.</p><h4>1. 상한 u를 바꾸면 활성 제약도 바뀐다</h4><p>같은 자료와 하한 0.95를 유지하고 상한 u만 가정해 바꿉니다. 무제약 최소 α₀≈1.0180262726보다 u가 작으면 상한에 붙고, u가 더 크면 α₀가 허용되어 상한 승수는 0입니다. 그림은 이 계산 경로이며 실제 매출이나 경영 의사결정의 관측이 아닙니다.</p><div data-case-chart=\"company\"></div><div data-tex=\"\\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\"></div><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 상한 u=α₀에서 상한은 활성인데 νU가 0일 수 있나요?</summary><div><p>그렇습니다. 무제약 최소가 경계와 정확히 같아서 gU=0이고 L′=0이므로 νU=0입니다. “활성이면 반드시 양의 승수”라고 바꾸어 읽지 않습니다. 여기서는 원자료로 계산한 정확한 α₀ 분수를 사용해 전환점을 확인합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: KKT를 만족했다는 이유만으로 어떤 비선형 문제에서나 전역 최소인가요?</summary><div><p>일반적으로는 아닙니다. 이 사례는 L″=xᵀx/5>0인 엄격한 볼록 이차함수이고 모든 제약이 아핀입니다. 이런 볼록 문제에서는 네 조건을 만족하는 점이 전역 최적임을 인증할 수 있습니다. 또한 0.95<1<1.01이라 엄격히 허용되는 점이 있고, 일반 필요조건을 말할 때 필요한 제약 정칙성과도 구별해 확인합니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 상한을 조금 완화할 때 손실이 얼마나 줄어드는지 νU로 정확히 말하나요?</summary><div><p>활성 구간에서 최적 손실 V(u)=L(u)이므로 V′(u)=−νU입니다. 이는 국소 민감도입니다. 유한한 Δu에는 V(u+Δu)=V(u)−νUΔu+(xᵀx/10)(Δu)²가 적용되며 두 상한이 모두 α₀ 이하인 같은 활성 구간이어야 합니다. α₀를 넘으면 최소 계수가 고정되어 다른 식으로 이어집니다. 실제 기업의 매출 증가효과를 뜻하지 않습니다.</p></div></details><details class=\"case-answer\"><summary>먼저 생각한 뒤 풀이 보기: 승수를 고정한 ℒ가 원목적의 최소를 어떻게 뒷받침하나요?</summary><div><p>위 최적 승수를 고정하면 ℒ(α)−L(1.01)=(xᵀx/10)(α−1.01)²≥0입니다. 허용 α에서는 νU gU+νL gL≤0이므로 L(α)≥ℒ(α)≥L(1.01)입니다. 이 직접 부등식은 가정한 범위 전체의 전역 최소를 증명하며, λ·ν까지 모두 최소화한다는 주장이 아닙니다.</p></div></details><p>FY2023 53주와 FY2024 52주, 명목 단위와 품목별 차이는 그대로입니다. 적합 제약의 민감도를 기업의 인과효과·이익·투자 판단으로 바꾸지 않습니다.</p><p class=\"source-note\">자료: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · Apple 2024 Form 10-K 실제 매출</a> · <a href=\"math20-sources/apple-actual-inputs-and-assumed-bounded-fit.csv\" download>실제 입력·가공 CSV</a></p></article><p><a href=\"math20-sources/exact-KKT-solutions-under-assumed-constraints.csv\" download>가정 제약별 KKT 해·승수 CSV</a> · <a href=\"math20-sources/feasible-profiles-objective-and-fixed-multiplier-lagrangian.csv\" download>허용점의 목적함수·고정 승수 Lagrangian CSV</a> · <a href=\"math20-sources/provenance.json\" download>원자료·가정·단위·가공·SHA-256</a></p></div>",
    "en": "<div class=\"case-studies\"><article class=\"case-study\" id=\"constraints-case-country-en\"><h3>Country case · Fit a line required to pass through an actual reference year</h3><p>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 <strong>hypothetical fitting equality</strong> requiring the line to pass through the 2019 observation. This is not an actual government institution or a law generating GDP.</p><div data-tex=\"L(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\"></div><p>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.</p><div data-case-chart=\"country\"></div><h4>1. Fix a sign convention and calculate the equality multiplier</h4><p>Throughout these cases, λ for h=0 is unrestricted, while ν for g≤0 is nonnegative. Use ℒ=objective+λh+Σνg. Equality multipliers have no sign restriction.</p><div data-tex=\"\\mathcal L(a,b,\\lambda)=L(a,b)+\\lambda(a-A)\"></div><div data-tex=\"0=\\partial_a\\mathcal L=a-\\bar y+\\lambda,\\qquad0=\\partial_b\\mathcal L=10(b-\\widehat b),\\qquad a=A\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Unrestricted and equality-constrained fits from actual inputs</caption><thead><tr><th scope=\"col\">Quantity</th><th scope=\"col\">Unrestricted minimum</th><th scope=\"col\">Assumed anchored minimum</th></tr></thead><tbody><tr><th scope=\"row\">a (2015 USD/person)</th><td>33,290.089779</td><td>33,496.311382</td></tr><tr><th scope=\"row\">b (2015 USD/person/year)</th><td>754.475929</td><td>754.475929</td></tr><tr><th scope=\"row\">L ((2015 USD/person)²)</th><td>43,144.027508</td><td>64,407.702243</td></tr><tr><th scope=\"row\">λ (2015 USD/person)</th><td>No equality constraint</td><td>-206.221602817</td></tr></tbody></table></div><p>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.</p><details class=\"case-answer\"><summary>Think first, then reveal: Does a negative λ signal an error?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does stationarity of ℒ mean jointly minimizing over λ too?</summary><div><p>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.</p></div></details><div data-tex=\"L(A,b)-L(A,\\widehat b)=5(b-\\widehat b)^2\\ge0\"></div><details class=\"case-answer\"><summary>Think first, then reveal: What establishes a unique global constrained minimum?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Is −λ a real economic policy value when A changes slightly?</summary><div><p>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.</p></div></details><p class=\"source-note\">Source: <a href=\"https://data.worldbank.org/indicator/NY.GDP.PCAP.KD\" target=\"_blank\" rel=\"noopener\">World Bank · actual Korean GDP/person and hypothetical fitting equality</a> · <a href=\"math20-sources/korea-actual-inputs-and-assumed-anchored-fit.csv\" download>Actual inputs/transformations CSV</a></p></article><article class=\"case-study\" id=\"constraints-case-person-en\"><h3>Household case · Two constant summaries with a sum and nonnegativity</h3><p>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 <strong>hypothetical summary rules</strong> 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.</p><div data-tex=\"J(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\"></div><div data-tex=\"\\mathcal L=J+\\lambda(a+b-B)-\\nu_1a-\\nu_2b,\\quad\\lambda\\in\\mathbb R,\\quad\\nu_1,\\nu_2\\ge0\"></div><div data-tex=\"a-\\mu_1+\\lambda-\\nu_1=0,\\qquad b-\\mu_2+\\lambda-\\nu_2=0,\\qquad\\nu_1a=\\nu_2b=0\"></div><p>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.</p><div data-case-chart=\"person\"></div><h4>1. Interior nonnegative coordinates versus an active boundary</h4><div class=\"table-scroll\" tabindex=\"0\"><table><caption>KKT solutions for selected assumed B (all columns in Wh)</caption><thead><tr><th scope=\"col\">Assumed sum B</th><th scope=\"col\">Optimal a</th><th scope=\"col\">Optimal b</th><th scope=\"col\">Equality λ</th><th scope=\"col\">Kitchen ν₁</th><th scope=\"col\">Laundry ν₂</th></tr></thead><tbody><tr><th scope=\"row\">0.000000</th><td>0.000000000</td><td>0.000000000</td><td>2.907638889</td><td>1.495833333</td><td>0.000000000</td></tr><tr><th scope=\"row\">1.000000</th><td>0.000000000</td><td>1.000000000</td><td>1.907638889</td><td>0.495833333</td><td>0.000000000</td></tr><tr><th scope=\"row\">2.000000</th><td>0.252083333</td><td>1.747916667</td><td>1.159722222</td><td>0.000000000</td><td>0.000000000</td></tr><tr><th scope=\"row\">4.319444</th><td>1.411805556</td><td>2.907638889</td><td>0.000000000</td><td>0.000000000</td><td>0.000000000</td></tr></tbody></table></div><details class=\"case-answer\"><summary>Think first, then reveal: Why are nonnegativity multipliers zero at B=2 Wh?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: What fails if only the equality is solved at B=1 Wh?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Why is the KKT solution a global minimum?</summary><div><p>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.</p></div></details><div data-tex=\"a^*(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\"></div><h4>2. An active constraint can have zero multiplier</h4><p>At B=μ₂−μ₁=1.495833333 Wh, a=0 but ν₁=0. Complementarity implies “positive multiplier ⇒ active constraint”; its converse need not hold.</p><details class=\"case-answer\"><summary>Think first, then reveal: At B=0 are both the primal solution and multipliers unique?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Should multiplier equations be solved anyway when B is negative?</summary><div><p>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.</p></div></details><p class=\"source-note\">Source: <a href=\"https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption\" target=\"_blank\" rel=\"noopener\">Hebrail and Berard · UCI actual two-channel records (CC BY 4.0)</a> · <a href=\"math20-sources/household-actual-two-channel-observations.csv\" download>Actual inputs/transformations CSV</a></p></article><article class=\"case-study\" id=\"constraints-case-company-en\"><h3>Company case · Verify the Chapter 19 boundary minimum with all four KKT conditions</h3><p>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. <strong>The bounds 0.95≤α≤1.01 are teaching assumptions</strong>, not an actual Apple rule or sales target.</p><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Actual inputs and minimum reference on assumed bounds (million USD)</caption><thead><tr><th scope=\"col\">Category</th><th scope=\"col\">Actual FY2023 x</th><th scope=\"col\">Actual FY2024 z</th><th scope=\"col\">α=1.01 reference (not observed)</th></tr></thead><tbody><tr><th scope=\"row\">iPhone</th><td>200,583</td><td>201,183</td><td>202,588.83</td></tr><tr><th scope=\"row\">Mac</th><td>29,357</td><td>29,984</td><td>29,650.57</td></tr><tr><th scope=\"row\">iPad</th><td>28,300</td><td>26,694</td><td>28,583.00</td></tr><tr><th scope=\"row\">Wearables, Home and Accessories</th><td>39,845</td><td>37,005</td><td>40,243.45</td></tr><tr><th scope=\"row\">Services</th><td>85,200</td><td>96,169</td><td>86,052.00</td></tr></tbody></table></div><div data-tex=\"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)\"></div><p>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.</p><div data-tex=\"\\alpha^*=1.01,\\quad\\nu_U=-L&#x27;(1.01)=81455313.074,\\quad\\nu_L=0\"></div><div class=\"table-scroll\" tabindex=\"0\"><table><caption>Four checks at α=1.01</caption><thead><tr><th scope=\"col\">Condition</th><th scope=\"col\">Numerical substitution</th><th scope=\"col\">Result</th></tr></thead><tbody><tr><th scope=\"row\">Primal feasibility</th><td>gU=0, gL=−0.06</td><td>Both ≤0</td></tr><tr><th scope=\"row\">Multiplier feasibility</th><td>νU=81,455,313.074, νL=0</td><td>Both ≥0</td></tr><tr><th scope=\"row\">Complementary slackness</th><td>νU×0=0, νL×(−0.06)=0</td><td>Both products zero</td></tr><tr><th scope=\"row\">Stationarity</th><td>−81,455,313.074+81,455,313.074−0=0</td><td>Derivative sum zero</td></tr></tbody></table></div><p>Because α is dimensionless, multipliers have (million USD)² units. They measure this chosen fitting-loss problem with its hypothetical bounds, not profit or equity value.</p><h4>1. Varying an assumed cap changes its active status</h4><p>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.</p><div data-case-chart=\"company\"></div><div data-tex=\"\\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\"></div><details class=\"case-answer\"><summary>Think first, then reveal: Can the cap be active with zero νU at u=α₀?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does satisfying KKT prove a global minimum for every nonlinear problem?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: Does νU give the exact loss reduction for a finite cap increase?</summary><div><p>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.</p></div></details><details class=\"case-answer\"><summary>Think first, then reveal: How does ℒ with fixed multipliers certify the original minimum?</summary><div><p>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.</p></div></details><p>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.</p><p class=\"source-note\">Source: <a href=\"https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm\" target=\"_blank\" rel=\"noopener\">SEC EDGAR · Apple 2024 Form 10-K actual sales</a> · <a href=\"math20-sources/apple-actual-inputs-and-assumed-bounded-fit.csv\" download>Actual inputs/transformations CSV</a></p></article><p><a href=\"math20-sources/exact-KKT-solutions-under-assumed-constraints.csv\" download>KKT solutions and multipliers under assumed constraints CSV</a> · <a href=\"math20-sources/feasible-profiles-objective-and-fixed-multiplier-lagrangian.csv\" download>Feasible-point objectives and fixed-multiplier Lagrangians CSV</a> · <a href=\"math20-sources/provenance.json\" download>Inputs, assumptions, units, transformations and SHA-256</a></p></div>"
  },
  "chartData": {
    "country": [
      {
        "x": 2014,
        "y": 29470.6732991655,
        "modelY": 29517.710136073667,
        "previousY": 29723.93173889055,
        "label": {
          "ko": "2014",
          "en": "2014"
        }
      },
      {
        "x": 2015,
        "y": 30171.7906545222,
        "modelY": 30272.186064608417,
        "previousY": 30478.4076674253,
        "label": {
          "ko": "2015",
          "en": "2015"
        }
      },
      {
        "x": 2016,
        "y": 31005.4072876388,
        "modelY": 31026.661993143167,
        "previousY": 31232.88359596005,
        "label": {
          "ko": "2016",
          "en": "2016"
        }
      },
      {
        "x": 2017,
        "y": 31979.9027302467,
        "modelY": 31781.137921677917,
        "previousY": 31987.3595244948,
        "label": {
          "ko": "2017",
          "en": "2017"
        }
      },
      {
        "x": 2018,
        "y": 32852.8887488942,
        "modelY": 32535.613850212667,
        "previousY": 32741.83545302955,
        "label": {
          "ko": "2018",
          "en": "2018"
        }
      },
      {
        "x": 2019,
        "y": 33496.3113815643,
        "modelY": 33290.08977874742,
        "previousY": 33496.3113815643,
        "label": {
          "ko": "2019",
          "en": "2019"
        }
      },
      {
        "x": 2020,
        "y": 33215.9298928108,
        "modelY": 34044.56570728217,
        "previousY": 34250.78731009905,
        "label": {
          "ko": "2020",
          "en": "2020"
        }
      },
      {
        "x": 2021,
        "y": 34792.9397214598,
        "modelY": 34799.04163581692,
        "previousY": 35005.2632386338,
        "label": {
          "ko": "2021",
          "en": "2021"
        }
      },
      {
        "x": 2022,
        "y": 35809.0138105144,
        "modelY": 35553.51756435167,
        "previousY": 35759.73916716855,
        "label": {
          "ko": "2022",
          "en": "2022"
        }
      },
      {
        "x": 2023,
        "y": 36347.7036392553,
        "modelY": 36307.99349288642,
        "previousY": 36514.2150957033,
        "label": {
          "ko": "2023",
          "en": "2023"
        }
      },
      {
        "x": 2024,
        "y": 37048.4264001496,
        "modelY": 37062.46942142117,
        "previousY": 37268.69102423805,
        "label": {
          "ko": "2024",
          "en": "2024"
        }
      }
    ],
    "person": [
      {
        "x": 0.0,
        "y": 0.0,
        "modelY": 0.0,
        "lambda": 2.907638888888889,
        "nuKitchen": 1.4958333333333333,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "0.000",
          "en": "0.000"
        }
      },
      {
        "x": 0.25,
        "y": 0.0,
        "modelY": 0.25,
        "lambda": 2.657638888888889,
        "nuKitchen": 1.2458333333333333,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "0.250",
          "en": "0.250"
        }
      },
      {
        "x": 0.5,
        "y": 0.0,
        "modelY": 0.5,
        "lambda": 2.407638888888889,
        "nuKitchen": 0.9958333333333333,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "0.500",
          "en": "0.500"
        }
      },
      {
        "x": 0.75,
        "y": 0.0,
        "modelY": 0.75,
        "lambda": 2.157638888888889,
        "nuKitchen": 0.7458333333333333,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "0.750",
          "en": "0.750"
        }
      },
      {
        "x": 1.0,
        "y": 0.0,
        "modelY": 1.0,
        "lambda": 1.9076388888888889,
        "nuKitchen": 0.49583333333333335,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "1.000",
          "en": "1.000"
        }
      },
      {
        "x": 1.25,
        "y": 0.0,
        "modelY": 1.25,
        "lambda": 1.6576388888888889,
        "nuKitchen": 0.24583333333333332,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "1.250",
          "en": "1.250"
        }
      },
      {
        "x": 1.4958333333333333,
        "y": 0.0,
        "modelY": 1.4958333333333333,
        "lambda": 1.4118055555555555,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "1.496",
          "en": "1.496"
        }
      },
      {
        "x": 1.5,
        "y": 0.0020833333333333333,
        "modelY": 1.4979166666666666,
        "lambda": 1.4097222222222223,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "1.500",
          "en": "1.500"
        }
      },
      {
        "x": 1.75,
        "y": 0.12708333333333333,
        "modelY": 1.6229166666666666,
        "lambda": 1.2847222222222223,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "1.750",
          "en": "1.750"
        }
      },
      {
        "x": 2.0,
        "y": 0.2520833333333333,
        "modelY": 1.7479166666666666,
        "lambda": 1.1597222222222223,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "2.000",
          "en": "2.000"
        }
      },
      {
        "x": 2.25,
        "y": 0.3770833333333333,
        "modelY": 1.8729166666666666,
        "lambda": 1.0347222222222223,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "2.250",
          "en": "2.250"
        }
      },
      {
        "x": 2.5,
        "y": 0.5020833333333333,
        "modelY": 1.9979166666666666,
        "lambda": 0.9097222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "2.500",
          "en": "2.500"
        }
      },
      {
        "x": 2.75,
        "y": 0.6270833333333333,
        "modelY": 2.122916666666667,
        "lambda": 0.7847222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "2.750",
          "en": "2.750"
        }
      },
      {
        "x": 3.0,
        "y": 0.7520833333333333,
        "modelY": 2.247916666666667,
        "lambda": 0.6597222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "3.000",
          "en": "3.000"
        }
      },
      {
        "x": 3.25,
        "y": 0.8770833333333333,
        "modelY": 2.372916666666667,
        "lambda": 0.5347222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "3.250",
          "en": "3.250"
        }
      },
      {
        "x": 3.5,
        "y": 1.0020833333333334,
        "modelY": 2.497916666666667,
        "lambda": 0.4097222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "3.500",
          "en": "3.500"
        }
      },
      {
        "x": 3.75,
        "y": 1.1270833333333334,
        "modelY": 2.622916666666667,
        "lambda": 0.2847222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "3.750",
          "en": "3.750"
        }
      },
      {
        "x": 4.0,
        "y": 1.2520833333333334,
        "modelY": 2.747916666666667,
        "lambda": 0.1597222222222222,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "4.000",
          "en": "4.000"
        }
      },
      {
        "x": 4.25,
        "y": 1.3770833333333334,
        "modelY": 2.872916666666667,
        "lambda": 0.034722222222222224,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "4.250",
          "en": "4.250"
        }
      },
      {
        "x": 4.319444444444445,
        "y": 1.4118055555555555,
        "modelY": 2.907638888888889,
        "lambda": 0.0,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "4.319",
          "en": "4.319"
        }
      },
      {
        "x": 4.5,
        "y": 1.5020833333333334,
        "modelY": 2.997916666666667,
        "lambda": -0.09027777777777778,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "4.500",
          "en": "4.500"
        }
      },
      {
        "x": 4.75,
        "y": 1.6270833333333334,
        "modelY": 3.122916666666667,
        "lambda": -0.2152777777777778,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "4.750",
          "en": "4.750"
        }
      },
      {
        "x": 5.0,
        "y": 1.7520833333333334,
        "modelY": 3.247916666666667,
        "lambda": -0.3402777777777778,
        "nuKitchen": 0.0,
        "nuLaundry": 0.0,
        "isObserved": false,
        "label": {
          "ko": "5.000",
          "en": "5.000"
        }
      }
    ],
    "company": [
      {
        "x": 0.96,
        "y": 0.96,
        "modelY": 1.018026272557286,
        "previousY": 0.96,
        "nuUpper": 588884586.704,
        "nuLower": 0.0,
        "loss": 28608207.69008,
        "isObserved": false,
        "label": {
          "ko": "0.960000000",
          "en": "0.960000000"
        }
      },
      {
        "x": 0.97,
        "y": 0.97,
        "modelY": 1.018026272557286,
        "previousY": 0.97,
        "nuUpper": 487398731.978,
        "nuLower": 0.0,
        "loss": 23226791.09667,
        "isObserved": false,
        "label": {
          "ko": "0.970000000",
          "en": "0.970000000"
        }
      },
      {
        "x": 0.98,
        "y": 0.98,
        "modelY": 1.018026272557286,
        "previousY": 0.98,
        "nuUpper": 385912877.252,
        "nuLower": 0.0,
        "loss": 18860233.05052,
        "isObserved": false,
        "label": {
          "ko": "0.980000000",
          "en": "0.980000000"
        }
      },
      {
        "x": 0.99,
        "y": 0.99,
        "modelY": 1.018026272557286,
        "previousY": 0.99,
        "nuUpper": 284427022.526,
        "nuLower": 0.0,
        "loss": 15508533.55163,
        "isObserved": false,
        "label": {
          "ko": "0.990000000",
          "en": "0.990000000"
        }
      },
      {
        "x": 1.0,
        "y": 1.0,
        "modelY": 1.018026272557286,
        "previousY": 1.0,
        "nuUpper": 182941167.8,
        "nuLower": 0.0,
        "loss": 13171692.6,
        "isObserved": false,
        "label": {
          "ko": "1.000000000",
          "en": "1.000000000"
        }
      },
      {
        "x": 1.01,
        "y": 1.01,
        "modelY": 1.018026272557286,
        "previousY": 1.01,
        "nuUpper": 81455313.074,
        "nuLower": 0.0,
        "loss": 11849710.19563,
        "isObserved": false,
        "label": {
          "ko": "1.010000000",
          "en": "1.010000000"
        }
      },
      {
        "x": 1.018026272557286,
        "y": 1.018026272557286,
        "modelY": 1.018026272557286,
        "previousY": 1.018026272557286,
        "nuUpper": 0.0,
        "nuLower": 0.0,
        "loss": 11522818.923644511,
        "isObserved": false,
        "label": {
          "ko": "1.018026273",
          "en": "1.018026273"
        }
      },
      {
        "x": 1.02,
        "y": 1.018026272557286,
        "modelY": 1.018026272557286,
        "previousY": 1.02,
        "nuUpper": 0.0,
        "nuLower": 0.0,
        "loss": 11522818.923644511,
        "isObserved": false,
        "label": {
          "ko": "1.020000000",
          "en": "1.020000000"
        }
      },
      {
        "x": 1.03,
        "y": 1.018026272557286,
        "modelY": 1.018026272557286,
        "previousY": 1.03,
        "nuUpper": 0.0,
        "nuLower": 0.0,
        "loss": 11522818.923644511,
        "isObserved": false,
        "label": {
          "ko": "1.030000000",
          "en": "1.030000000"
        }
      },
      {
        "x": 1.04,
        "y": 1.018026272557286,
        "modelY": 1.018026272557286,
        "previousY": 1.04,
        "nuUpper": 0.0,
        "nuLower": 0.0,
        "loss": 11522818.923644511,
        "isObserved": false,
        "label": {
          "ko": "1.040000000",
          "en": "1.040000000"
        }
      },
      {
        "x": 1.05,
        "y": 1.018026272557286,
        "modelY": 1.018026272557286,
        "previousY": 1.05,
        "nuUpper": 0.0,
        "nuLower": 0.0,
        "loss": 11522818.923644511,
        "isObserved": false,
        "label": {
          "ko": "1.050000000",
          "en": "1.050000000"
        }
      }
    ]
  },
  "chartMeta": {
    "country": {
      "plotType": "observations-with-constrained-fit",
      "seriesKeys": [
        "y",
        "modelY",
        "previousY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "실제 연간 관측",
          "en": "Actual annual records"
        },
        "modelY": {
          "ko": "무제약 기술적 적합 (실측 아님)",
          "en": "Unrestricted descriptive fit (not observed)"
        },
        "previousY": {
          "ko": "가정한 2019 통과 제약 적합",
          "en": "Fit with assumed 2019 anchor"
        }
      },
      "xlabel": {
        "ko": "관측 연도",
        "en": "Observation year"
      },
      "ylabel": {
        "ko": "실질 GDP/명 (2015 USD)",
        "en": "Real GDP/person (2015 USD)"
      },
      "legend": {
        "ko": "실제 관측과 두 선택한 참조식",
        "en": "Actual observations and two chosen references"
      },
      "note": {
        "ko": "2019 통과는 학습용 적합 제약이며 실제 정책·경제 법칙이 아닙니다. 두 직선의 사이 값은 관측되지 않은 모형입니다.",
        "en": "Passing through 2019 is a teaching fitting constraint, not a policy rule or economic law. Both fitted lines are models between observations."
      }
    },
    "person": {
      "plotType": "assumed-sum-KKT-solution-path",
      "seriesKeys": [
        "y",
        "modelY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "최적 주방 상수 a* (실측 아님)",
          "en": "Optimal kitchen constant a* (not observed)"
        },
        "modelY": {
          "ko": "최적 세탁실 상수 b* (실측 아님)",
          "en": "Optimal laundry constant b* (not observed)"
        }
      },
      "xlabel": {
        "ko": "가정한 대체 상수 합 B (Wh)",
        "en": "Assumed combined replacement constant B (Wh)"
      },
      "ylabel": {
        "ko": "제약 적합 상수 (Wh)",
        "en": "Constrained fitting constants (Wh)"
      },
      "legend": {
        "ko": "모든 점은 실제 평균 입력에 가정 제약을 적용한 계산",
        "en": "Every point applies assumed constraints to actual mean inputs"
      },
      "note": {
        "ko": "실제 가구의 소비·예산 변화가 아닙니다. B<0은 허용점이 없으며, B=0 승수는 비유일하고, B≈1.495833에서 주방 비음수 제약의 활성이 바뀝니다.",
        "en": "Not actual consumption or budget changes. B<0 is infeasible; B=0 multipliers are nonunique; the kitchen boundary changes status at B≈1.495833."
      }
    },
    "company": {
      "plotType": "assumed-cap-KKT-solution-path",
      "seriesKeys": [
        "y",
        "modelY",
        "previousY"
      ],
      "seriesLabels": {
        "y": {
          "ko": "가정 범위의 최적 α*",
          "en": "Optimal α* on assumed bounds"
        },
        "modelY": {
          "ko": "무제약 α₀ (실제 관측 아님)",
          "en": "Unrestricted α₀ (not observed)"
        },
        "previousY": {
          "ko": "가정 상한 u",
          "en": "Assumed cap u"
        }
      },
      "xlabel": {
        "ko": "가정한 상한 u (무차원)",
        "en": "Assumed upper bound u (dimensionless)"
      },
      "ylabel": {
        "ko": "참조계수 α (무차원)",
        "en": "Reference coefficient α (dimensionless)"
      },
      "legend": {
        "ko": "실제 입력으로 계산한 가정 제약해 경로",
        "en": "Calculated solution path for hypothetical constraints"
      },
      "note": {
        "ko": "실제 경영 제약이나 매출 시계열이 아닙니다. α₀ 전후에서 상한이 활성/비활성으로 바뀌고, α₀에서는 활성 상한의 승수도 0입니다.",
        "en": "Not actual management constraints or a sales time series. Cap status changes around α₀; at equality an active cap can have zero multiplier."
      }
    }
  },
  "models": {
    "multiplierConvention": {
      "lagrangian": "objective+lambda*h+sum(nu_j*g_j)",
      "equality": "h=0;lambda unrestricted",
      "inequality": "g_j<=0;nu_j>=0"
    },
    "country": {
      "years": [
        2014,
        2015,
        2016,
        2017,
        2018,
        2019,
        2020,
        2021,
        2022,
        2023,
        2024
      ],
      "actualGDPpc": [
        29470.6732991655,
        30171.7906545222,
        31005.4072876388,
        31979.9027302467,
        32852.8887488942,
        33496.3113815643,
        33215.9298928108,
        34792.9397214598,
        35809.0138105144,
        36347.7036392553,
        37048.4264001496
      ],
      "centerYear": 2019,
      "unrestricted": [
        33290.08977874742,
        754.47592853475
      ],
      "constrained": [
        33496.3113815643,
        754.47592853475
      ],
      "assumedAnchor": 33496.3113815643,
      "equality": "a-A=0",
      "equalityIsActualPolicyConstraint": false,
      "lambda": -206.2216028168818,
      "lambdaExactFraction": "-22684376309857/110000000000",
      "chosenLossNormalizer": "1/(2*11)",
      "lossUnrestricted": 43144.027508348896,
      "lossConstrained": 64407.70224253078,
      "Hessian": [
        [
          1,
          0
        ],
        [
          0,
          10
        ]
      ],
      "equalityGradient": [
        1,
        0
      ],
      "parameterUnits": [
        "constant2015USD/person",
        "constant2015USD/person/year"
      ],
      "multiplierUnit": "constant2015USD/person"
    },
    "person": {
      "n": 1440,
      "actualMeansWh": [
        1.4118055555555555,
        2.907638888888889
      ],
      "actualMeansWhExactFractions": [
        "2033/1440",
        "4187/1440"
      ],
      "lossNormalizer": "1/(2*1440)",
      "lossAtUnrestrictedMeansWh2": 61.892887249228394,
      "Hessian": [
        [
          1,
          0
        ],
        [
          0,
          1
        ]
      ],
      "assumedEquality": "a+b-B=0",
      "assumedInequalities": [
        "-a<=0",
        "-b<=0"
      ],
      "equalityGradient": [
        1,
        1
      ],
      "inequalityGradients": [
        [
          -1,
          0
        ],
        [
          0,
          -1
        ]
      ],
      "activationThresholdBWh": 1.4958333333333333,
      "activationThresholdExactFraction": "359/240",
      "B0MultiplierFamily": "lambda>=mu2;nu1=lambda-mu1;nu2=lambda-mu2",
      "B0LICQ": false,
      "BnegativeFeasible": false,
      "BIsActualEnergyBudget": false,
      "parameterAndMultiplierUnit": "Wh"
    },
    "company": {
      "xFY2023": [
        200583,
        29357,
        28300,
        39845,
        85200
      ],
      "zFY2024": [
        201183,
        29984,
        26694,
        37005,
        96169
      ],
      "categoryOrder": [
        "iPhone",
        "Mac",
        "iPad",
        "Wearables, Home and Accessories",
        "Services"
      ],
      "categoryLabelsKO": [
        "iPhone",
        "Mac",
        "iPad",
        "웨어러블·홈·액세서리",
        "서비스"
      ],
      "assumedDomain": [
        0.95,
        1.01
      ],
      "domainIsActualFirmConstraint": false,
      "unrestrictedOptimum": 1.018026272557286,
      "unrestrictedOptimumExactFraction": "51657633202/50742927363",
      "optimalAlpha": 1.01,
      "nuUpper": 81455313.074,
      "nuLower": 0,
      "nuUpperExactFraction": "40727656537/500",
      "constraintGradients": [
        1,
        -1
      ],
      "multiplierUnit": "(million nominal USD)^2",
      "chosenLossNormalizer": "1/(2*5)",
      "xTxExact": "50742927363",
      "xTzExact": "51657633202",
      "fiscalWeeks": [
        53,
        52
      ]
    }
  },
  "enrichment": [
    {
      "kind": "video",
      "title": {
        "ko": "제약 최적화 입문 · 허용되는 점과 접선",
        "en": "Constrained optimization introduction"
      },
      "provider": "Khan Academy · Grant Sanderson",
      "url": "https://www.youtube.com/watch?v=vwUV2IDLP8Q",
      "videoId": "vwUV2IDLP8Q",
      "creatorPage": "https://www.khanacademy.org/math/multivariable-calculus/applications-of-multivariable-derivatives/lagrange-multipliers-and-constrained-optimization/v/constrained-optimization-introduction",
      "verifiedOn": "2026-10-22",
      "focus": {
        "ko": "공식 영어 영상을 본문에서 보며 목적함수와 허용곡선을 구별합니다. 영상은 등식의 기하 입문이며 부등식 KKT 전체를 다루는 자료로 대신 쓰지 않습니다.",
        "en": "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."
      },
      "question": {
        "ko": "영상의 접점이라는 그림만으로 어떤 제약 문제나 최적값을 확정하나요?",
        "en": "Does a tangency picture settle every constrained optimum?"
      },
      "answer": {
        "ko": "아닙니다. 실제 식의 허용성·정칙성·도함수 조건을 확인하고 후보를 분류해야 합니다. 이 장은 볼록 이차손실과 아핀 제약의 해를 수치 대입과 정확한 부등식으로 다시 검산합니다.",
        "en": "No. Check feasibility,regularity and derivatives and classify candidates. These convex quadratic/affine cases additionally verify numerical equations and exact inequalities."
      },
      "verificationNote": "Official verified Khan channel metadata(title,date2016-11-15,ID)and matching official lesson route checked. No timestamp inference,video download or playback claim."
    },
    {
      "kind": "thinker",
      "title": {
        "ko": "조제프루이 라그랑주 · 변분과 제약을 식으로 다루기",
        "en": "Joseph-Louis Lagrange: variation and constrained equations"
      },
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Lagrange/",
      "focus": {
        "ko": "대학 소개에서 라그랑주(1736–1813)의 해석학·변분법·역학 연구를 읽습니다. 인물 소개와 현대 KKT의 구체적 가정·부호관례는 구별합니다.",
        "en": "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."
      },
      "question": {
        "ko": "이름이 같은 승수라면 다른 교재의 λ 부호를 그대로 비교해도 되나요?",
        "en": "Can identically named multipliers be compared without checking conventions?"
      },
      "answer": {
        "ko": "제약식의 방향과 Lagrangian의 더하기·빼기 정의를 먼저 봅니다. 등식 h를 −h로 바꾸면 같은 해의 승수도 반대로 바뀝니다. 부등식은 이 장의 g≤0,ν≥0 관례에 맞추어 전체 식을 옮겨야 합니다.",
        "en": "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."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "정칙 등식과 라그랑주 승수의 필요조건",
        "en": "A regular equality and the Lagrange-multiplier necessary condition"
      },
      "provider": "OpenStax · Rice University · Calculus Volume 3 §4.8, Theorem 4.20",
      "url": "https://openstax.org/books/calculus-volume-3/pages/4-8-lagrange-multipliers",
      "focus": {
        "ko": "정리 4.20의 매끄러움과 비영 제약 gradient를 읽습니다. 책의 ∇f=λ∇g를 이 장의 ℒ=f+λh와 비교해 등식 승수 기호의 부호를 맞춥니다.",
        "en": "Read Theorem4.20 with smoothness and a nonzero constraint gradient. Translate its ∇f=λ∇g to this chapter’s ℒ=f+λh before comparing multiplier signs."
      },
      "question": {
        "ko": "가구 B=0에서 세 활성 제약의 gradient를 독립이라고 가정해도 되나요?",
        "en": "Can three active household constraint gradients be assumed independent at B=0?"
      },
      "answer": {
        "ko": "2차원에서 세 벡터는 선형독립일 수 없습니다. 해당 정칙성 가정을 충족했다고 말하지 않고, 이 사례의 유일한 허용점과 승수 가족을 직접 확인합니다.",
        "en": "Three vectors cannot be linearly independent in two dimensions. Do not assert that regularity assumption;directly verify the sole feasible point and multiplier family."
      }
    },
    {
      "kind": "reading",
      "title": {
        "ko": "KKT 네 조건과 볼록 문제의 충분성",
        "en": "Four KKT conditions and sufficiency for convex problems"
      },
      "provider": "Boyd and Vandenberghe · Convex Optimization §5.5.3, printed pp.243–244",
      "url": "https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf",
      "focus": {
        "ko": "저자 공식 PDF의 네 조건과 볼록 목적·아핀 등식에서의 충분성을 읽습니다. 책은 부등식 승수를 λ, 등식 승수를 ν로 써서 이 장과 글자가 반대입니다. 조건의 역할에 맞추어 옮깁니다.",
        "en": "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."
      },
      "question": {
        "ko": "볼록 문제에서 KKT 해의 충분성과, 모든 최적점에서 승수가 존재한다는 필요성은 같은 주장인가요?",
        "en": "Is convex KKT sufficiency the same claim as multiplier existence at every optimum?"
      },
      "answer": {
        "ko": "구별해야 합니다. 볼록 목적·볼록 부등식·아핀 등식의 미분 가능한 문제에서는 KKT를 만족하는 해가 전역 최적입니다. 필요성과 승수 존재를 일반적으로 보장하려면 적절한 제약 정칙성·강쌍대성 조건 등을 별도로 확인합니다.",
        "en": "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."
      }
    }
  ],
  "sources": [
    {
      "provider": "World Bank",
      "url": "https://data.worldbank.org/indicator/NY.GDP.PCAP.KD",
      "rawFile": "실제데이터/worldbank.csv",
      "sha256": "b2f0f3815ea20e087909038e352a72af9dd844d50448008d75e3440a642ddd02",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-20",
      "selectedPeriod": "2014–2024",
      "units": "constant2015USD/person",
      "transformation": "Select11KORannualrecords,retainexactoriginaldecimalfractions. Fit centered-year OLS;add explicitlyhypotheticalequality a=actual2019value. Compute multiplier using L+lambda(a-A),constrained/unconstrainedloss andexactrestrictedquadraticidentity. No causalpolicyclaim."
    },
    {
      "provider": "UCI · Hebrail and Berard",
      "url": "https://archive.ics.uci.edu/dataset/235/individual+household+electric+power+consumption",
      "doi": "10.24432/C58K54",
      "license": "CC BY4.0",
      "rawFile": "work/textbook-rewrite-2026/source-audit-math10/uci-household-power.zip",
      "sha256": "9f84b46ade8a2d8e1286ec4b2b6c2987a45a755c59f263be3b3b3d10dfbda3ff",
      "selectedFile": "math10-sources/power-2006-12-17.csv",
      "selectedSHA256": "f1c4d89c39625d8fc43b36a313fb32871e198848c4cb00658a6580f89612e5e1",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-22",
      "units": "recordedminuteenergyWh in2submeterchannels",
      "transformation": "Keep1440actualpairs,date/time/rowIDs. Choose constant-fittingJ=SSE/2880. HypotheticalsumofreplacementconstantsB andnonnegativityconstraints are not observedenergybudget. Solve23scenarioKKTsystems exactly;B0explicitmultiplierfamily andLICQfailure;B<0infeasible."
    },
    {
      "provider": "SEC EDGAR · Apple 2024 Form10-K",
      "url": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm",
      "rawFile": "work/textbook-rewrite-2026/source-audit-math08/apple-2024.html",
      "sha256": "e75e4f3b5806d3008974a1e4d8459cbd9f2bbaac657b49aa3a7f846ff10d7760",
      "rawDownloaded": true,
      "retrievedOn": "2026-10-22",
      "units": "millionnominalUSDnetsales",
      "selectedPeriod": "FY2023/FY2024",
      "transformation": "Directlyverify5categories/totalsinretainedHTML.53/52fiscalweeksremain. Definecommon-scaleSSE/10withhypotheticalbounds. Deriveupper/lowerconstraintgradients andnonnegativemultipliers,thenvaryassumedupperbound. No actualmanagementconstraint,profit,valuation or causalityclaim."
    },
    {
      "provider": "Khan Academy",
      "url": "https://www.youtube.com/watch?v=vwUV2IDLP8Q",
      "creatorPage": "https://www.khanacademy.org/math/multivariable-calculus/applications-of-multivariable-derivatives/lagrange-multipliers-and-constrained-optimization/v/constrained-optimization-introduction",
      "videoId": "vwUV2IDLP8Q",
      "webVerifiedOn": "2026-10-22",
      "originalHTMLArchived": false,
      "rawMediaDownloaded": false,
      "verificationScope": "Verifiedofficialchanneltitleand2016-11-15metadata plusofficiallessonroute. Equalitygeometryintroductiononly;finalembeddedplayback isparentbrowserQA."
    },
    {
      "provider": "University of St Andrews · MacTutor",
      "url": "https://mathshistory.st-andrews.ac.uk/Biographies/Lagrange/",
      "webVerifiedOn": "2026-10-22",
      "originalHTMLArchived": false,
      "readingScope": "Universitybiographysummary andparagraphsonanalysis,variation,mechanics. Briefparaphrase only;no originalhistoricalmanuscriptread claim."
    },
    {
      "provider": "OpenStax · Rice University",
      "url": "https://openstax.org/books/calculus-volume-3/pages/4-8-lagrange-multipliers",
      "webVerifiedOn": "2026-10-22",
      "originalHTMLArchived": false,
      "readingScope": "Theorem4.20,continuouspartials andnonzeroconstraintgradient. Compare equality sign conventions explicitly,notproof ofinequalityKKT. The theorem isnecessary forregularlocalextrema,not byitselfsufficientforglobaloptimality."
    },
    {
      "provider": "Boyd and Vandenberghe · authors official university PDF",
      "url": "https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf",
      "webVerifiedOn": "2026-10-22",
      "originalPDFArchived": false,
      "readingScope": "Section5.5.3,printedpp243–244(PDFindices256–257). Translate sourceinequalitylambda/equalitynu toourinequalitynu/equalitylambda. Distinguishconvexsufficiencyfromnecessity underduality/regularity. Do not redistribute textbookPDF."
    }
  ],
  "review": {
    "chapter": "MATH-20",
    "scope": "AI economics/management case authoring,not human expert certification or completebrowserplaybackQA.",
    "numericalChecks": [
      "Originalsourcehashesunchanged;actual11/1440/5rowsverified.",
      "ExactFractioncountryOLS,equalitymultiplier,lossincrease andallrestrictedquadraticchecks.",
      "ExacthouseholdKKTprimalfeasibility,stationarity,dualfeasibility,complementarityfor23Bscenarios,includingactivationthreshold.",
      "B0multipliersindependentlyconstructedat3differentlambda;negativeBproveninfeasible.",
      "Company11assumedcapsincludetheexactcriticalfraction;KKTchecks andall61feasiblefixed-multiplierLagrangianquadraticidentities pass.",
      "All114profilepointsverifychosenobjective>=constrainedminimum andfixed-multiplierLagrangian>=samevalue."
    ],
    "criticalDistinctions": [
      "Realinputobservationsversusallhypotheticalfittingconstraints andcomputedreferences.",
      "Unifiedh=0/lambdaunrestricted,g<=0/nu>=0,Lagrangianplusbothmultiplierterms.",
      "Equalitysignconvention canflipmultiplierwithoutchangingprimalfit.",
      "Multipliershaveobjective/constraintunits;notactualmarketprices orcausalbusiness/policyvalues.",
      "StationarityofLagrangianisnotjointminimizationoverfreemultipliers.",
      "Activeconstraintcanhavezeromultiplier;uniqueprimalpointneednotgiveuniquemultipliers.",
      "LICQfailureatB0doesnotnegatedirectprimal/KKTcheck;do notapplyunmetqualificationtheorems.",
      "Convexsufficiency andgeneralnecessity/regularityseparated.",
      "Optimalvaluesensitivityislocal andpiecewiseregime-dependent."
    ],
    "studentReviewerResponse": "Independent AI neutral-student review completed2026-10-22,no additional changes requested. Read completeKO/ENcases,original11/1440/5observations,all5CSV/sourcehashes,35KKTsolutions(country1,household23,company11)and114feasibleprofiles. Recomputed3643storednumbers usingFraction/Decimal100 withrelative1e-62comparison. Independentlyreducedhouseholdto1D andcomparedinteriorcriticalpoint/endpoints;checkedB0threevalidmultiplierchoices andactivezero-multipliertransition. Allprofilesverifyobjective>=fixed-multiplierLagrangian>=optimalvalue. Confirmedcountrylambda-206.22160281688/constrainedloss64407.702242531 andcompanynuUpper40727656537/500. DirectlycheckedOpenStaxTheorem4.20 andBoydprinted243–244,notationrolesandnecessity/sufficiency. ActualKhanplaybackremainsparentbrowserQA. ThisisAIstatic/numerical review,not human expert certification.",
    "remaining": [
      "Root integration,bilingual/mobilechartlabels,officialvideoplayback andbrowserQA."
    ]
  }
}