Gradient Methods

  1. Steepest Descent Method:

    • Example: For , at point
    • Gradient:
    • With step size , next point:
  2. Newton’s Method:

    • Example: For
    • Gradient:
    • Hessian:
    • At point : (exact solution in one step)
  3. Condition Number:

    • Example: For
    • Eigenvalues:
    • Condition number: (moderately conditioned)
    • For , (ill-conditioned)

Constrained Optimization

  1. Lagrangian Function:

    • Example: Minimize subject to
    • Lagrangian:
    • Partial derivatives: ,
    • Setting to zero:
    • From constraint: , so
  2. 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:
      Dual feasibility:
      Complementary Slackness
      • , (either or = 0)
      • (either or )
      • (either or )
      • (either or )
  3. Active Constraints:

    • Example: Minimize subject to and
    • Unconstrained minimum at violates
    • At solution, is active (holds with equality)
    • Solution: with for the active constraint
  4. 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

  1. Linear Least Squares:

    • Example: Fit to points and
    • Residuals: ,
    • Jacobian:
    • Normal equations:
    • Solution:
  2. Gauss-Newton Method:

    • Example: For model with data and
    • Residuals: ,
    • Initial guess:
    • Jacobian at :
    • ,
    • Update: z

Mathematical Foundations

  1. Local vs. Global Minima:

    • Example:
    • Local minima at and with value
    • Local maximum at with value
    • This function has two global minima
  2. 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)
  3. 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)

These examples provide concrete illustrations of the key concepts, using small 2×2 matrices and simple functions for clarity and ease of calculation.