Gradient Methods
-
Steepest Descent Method:
- Example: For , at point
- Gradient:
- With step size , next point:
-
Newton’s Method:
- Example: For
- Gradient:
- Hessian:
- At point : (exact solution in one step)
-
Condition Number:
- Example: For
- Eigenvalues:
- Condition number: (moderately conditioned)
- For , (ill-conditioned)
Constrained Optimization
-
Lagrangian Function:
- Example: Minimize subject to
- Lagrangian:
- Partial derivatives: ,
- Setting to zero:
- From constraint: , so
-
KKT Conditions:
- Example: Minimize subject to and
- At unconstrained minimum , all constraints satisfied, so that’s the solution
- At : (active), (inactive)
- Active constraint needs multiplier
- Inactive constraints have multipliers equal to zero
Primal Feasibility:
- , (either or = 0)
- (either or )
- (either or )
- (either or )
-
Active Constraints:
- Example: Minimize subject to and
- Unconstrained minimum at violates
- At solution, is active (holds with equality)
- Solution: with for the active constraint
-
Penalty Method:
- Example: Minimize subject to
- Penalty function:
- For : Minimum at (compromise between and constraint)
- For : Minimum at (closer to feasible solution)
- For : Minimum at (very close to feasible solution)
Least Squares and Curve Fitting
-
Linear Least Squares:
- Example: Fit to points and
- Residuals: ,
- Jacobian:
- Normal equations:
- Solution:
-
Gauss-Newton Method:
- Example: For model with data and
- Residuals: ,
- Initial guess:
- Jacobian at :
- ,
- Update: z
Mathematical Foundations
-
Local vs. Global Minima:
- Example:
- Local minima at and with value
- Local maximum at with value
- This function has two global minima
-
Positive Definite Test (2×2 matrix):
- Example 1:
- First principal minor:
- Second principal minor (determinant):
- Therefore is positive definite
- Example 2:
- First principal minor:
- Second principal minor:
- Therefore is not positive definite (it’s indefinite)
- Example 3:
- First principal minor:
- Second principal minor:
- Therefore is not positive definite (it’s indefinite)
- Example 1:
-
Convexity Test:
- Example 1:
- Hessian: is positive definite
- Therefore is strictly convex
- Example 2:
- Hessian: has both positive and negative eigenvalues
- Therefore is not convex (it’s a saddle)
- Example 1:
These examples provide concrete illustrations of the key concepts, using small 2×2 matrices and simple functions for clarity and ease of calculation.