Period 1 Flashcards
What is the definition of a convex set?
A set is convex iff. u, v in X, for all lambda in [0, 1]
lambda x + (1-lambda) v in X
When is a set positive semidefinite?
If det(A_k) >= 0 for all k {1, …, n}
What is the definition of a cone?
A set is a cone iff.
lambda >= 0, u in X, lambda u in X
What is the definition of a Hyperplane?
H = {x in R^n | p^t x = β}, with p in R^2, β in R
How to get the direction d in which to search?
d = -∇f(x)
What holds when f(x) is convex?
f(x) ≥ f(y) + ∇f(y) (x - y)
How to do Dichotomous search?
- Get interval
- Get center
- Take small delta
- Get lk = ck - delta, rk=ck+delta
- If (l_k) > f(r_k) –> min in [l_k, b_k]
If (l_k) min in [a_k, r_k]
If (l_k) = f(r_k) –> min in [l_k, r_k]
How many iterations needed for Dichotomous search?
approx 2 log_2((b_1 - a_1)/epsilon)
How to do Bisection method (for minimum)?
- Get [a_1, b_1]
- Get center c_n = (a_n + b_n)/2
- If f’(c) < 0 –> min in [c_k, b_k]
f’(c) > 0 –> min in [a_k, c_k]
f’(c) = 0 –> is min
- repeat
How to do Newtons Method (1D)?
- Get initial guess x^(0)
- x^(i+1) = x^(i) - f’(x^(i))/f’‘(x^(i))
- Repeat, this does not always converge
How to do Cyclic Coordinate Method?
- Get inital guess x^(0)
- Find minimum on x_k for k = 1, …, n (i.e. by setting g(z) = f(x + e_i z))
- Repeat until close enough
How to do Steepest decent?
- Get initial estimate x^(0)
- Get the gradient ∇f(x)
- Go to the direction d = -∇f(x^(k))
- Do a line search on the function g(z) = f(x + z d), find there the minimum
- Continue until error is small enough.
How to do Newtons Method (1D+)?
- Get initial guess x^(0)
- x^(i+1) = x^(i) - (∇^2 f(x^(i)))^-1 ∇f(x^(i))
- Repeat until close enough.
How to do the Conjugate Gradient Method?
- Get initial estimate x^(0)
- Get d^(i) = -∇f(x^(k)) + ||f(x^(k))||^2/||f(x^(i-1))\^2 (if i=0, then just regual d)
- Do line search on g(z) = f(x + z d)
- Repeat until close enough
How fast does the Newton Method converge for a quadratic function?
n (where n is the number of dimentions)