Docsity

Bellman's Curse of Dimensionality: Convex Optimization and Minimization Algorithms, Slides of Robotics

Partial preview of the text

Download Bellman's Curse of Dimensionality: Convex Optimization and Minimization Algorithms and more Slides Robotics in PDF only on Docsity!

Bellman’s curse of dimensionality

n n-dimensional state space n Number of states grows exponentially in n (assuming some fixed number of discretization levels per coordinate) n In practice n Discretization is considered only computationally feasible up to 5 or 6 dimensional state spaces even when using n Variable resolution discretization n Highly optimized implementations

n Goal: find a sequence of control inputs (and corresponding sequence of states) that solves: n Generally hard to do. In this set of slides we will consider convex problems, which means g is convex, the sets Ut and Xt are convex, and f is linear. Next set of slides will relax these assumptions. n Note: iteratively applying LQR is one way to solve this problem if there were no constraints on the control inputs and state. n In principle (though not in our examples), u could be parameters of a control policy rather than the raw control inputs.

Optimization for Optimal Control

n Convex optimization problems n Unconstrained minimization n Gradient Descent n Newton’s Method n Equality constrained minimization n Inequality and equality constrained minimization

Outline

n A function is f: < n à < is convex if and only if

Convex Functions

∀x 1 , x 2 ∈ Domain(f ), ∀t ∈ [0, 1] :

f (tx 1 + (1 − t)x 2 ) ≤ tf (x 1 ) + (1 − t)f (x 2 )

Image source: wikipedia

n Convex optimization problems are a special class of optimization problems, of the following form: with f i (x) convex for i = 0, 1, …, n n A function is f is convex if and only if

Convex Optimization Problems

min

x∈Rn

f 0 (x)

s.t. fi(x) ≤ 0 i = 1,... , n

Ax = b

∀x 1 , x 2 ∈ Domain(f ), ∀λ ∈ [0, 1] f (λx 1 + (1 − λ)x 2 ) ≤ λf (x 1 ) + (1 − λ)f (x 2 )

n Convex optimization problems n Unconstrained minimization n Gradient Descent n Newton’s Method n Equality constrained minimization n Inequality and equality constrained minimization

Outline

n Idea: n Start somewhere n Repeat: Take a step in the steepest descent direction

Steepest Descent

Figure source: Mathworks

  1. Initialize x
  2. Repeat
    1. Determine the steepest descent direction ¢x
    2. Line search. Choose a step size t > 0.
    3. Update. x := x + t ¢x.
  3. Until stopping criterion is satisfied

Steepest Descent Algorithm

n Used when the cost of solving the minimization problem with one variable is low compared to the cost of computing the search direction itself. Stepsize Selection: Exact Line Search

n Inexact: step length is chose to approximately minimize f along the ray {x + t ¢x | t ¸ 0} Stepsize Selection: Backtracking Line Search

Steepest Descent (= Gradient Descent) Figure source: Boyd and Vandenberghe

Gradient Descent: Example 1

Figure source: Boyd and Vandenberghe

Gradient Descent: Example 3

Figure source: Boyd and Vandenberghe

n For quadratic function, convergence speed depends on ratio of highest second derivative over lowest second derivative (“condition number”) n In high dimensions, almost guaranteed to have a high (=bad) condition number n Rescaling coordinates (as could happen by simply expressing quantities in different measurement units) results in a different condition number

Gradient Descent Convergence

Condition number = 10 Condition number = 1