Period 1 Flashcards

1
Q

What is the definition of a convex set?

A

A set is convex iff. u, v in X, for all lambda in [0, 1]

lambda x + (1-lambda) v in X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When is a set positive semidefinite?

A

If det(A_k) >= 0 for all k {1, …, n}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the definition of a cone?

A

A set is a cone iff.

lambda >= 0, u in X, lambda u in X

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the definition of a Hyperplane?

A

H = {x in R^n | p^t x = β}, with p in R^2, β in R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to get the direction d in which to search?

A

d = -∇f(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What holds when f(x) is convex?

A

f(x) ≥ f(y) + ∇f(y) (x - y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to do Dichotomous search?

A
  1. Get interval
  2. Get center
  3. Take small delta
  4. Get lk = ck - delta, rk=ck+delta
  5. 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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How many iterations needed for Dichotomous search?

A

approx 2 log_2((b_1 - a_1)/epsilon)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to do Bisection method (for minimum)?

A
  1. Get [a_1, b_1]
  2. Get center c_n = (a_n + b_n)/2
  3. If f’(c) < 0 –> min in [c_k, b_k]

f’(c) > 0 –> min in [a_k, c_k]

f’(c) = 0 –> is min

  1. repeat
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to do Newtons Method (1D)?

A
  1. Get initial guess x^(0)
  2. x^(i+1) = x^(i) - f’(x^(i))/f’‘(x^(i))
  3. Repeat, this does not always converge
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to do Cyclic Coordinate Method?

A
  1. Get inital guess x^(0)
  2. Find minimum on x_k for k = 1, …, n (i.e. by setting g(z) = f(x + e_i z))
  3. Repeat until close enough
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to do Steepest decent?

A
  1. Get initial estimate x^(0)
  2. Get the gradient ∇f(x)
  3. Go to the direction d = -∇f(x^(k))
  4. Do a line search on the function g(z) = f(x + z d), find there the minimum
  5. Continue until error is small enough.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How to do Newtons Method (1D+)?

A
  1. Get initial guess x^(0)
  2. x^(i+1) = x^(i) - (∇^2 f(x^(i)))^-1 ∇f(x^(i))
  3. Repeat until close enough.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to do the Conjugate Gradient Method?

A
  1. Get initial estimate x^(0)
  2. Get d^(i) = -∇f(x^(k)) + ||f(x^(k))||^2/||f(x^(i-1))\^2 (if i=0, then just regual d)
  3. Do line search on g(z) = f(x + z d)
  4. Repeat until close enough
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How fast does the Newton Method converge for a quadratic function?

A

n (where n is the number of dimentions)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How fast does the conjugate gradient method converge for a quadratic function?

A

n where n is the number of dimentions

17
Q

What is the formula of the barrier method?

A

f(x) + μ B(x),

with B(x) = sum φ(g_i(x))

With φ(z) is a smooth function, which is bigger then 0 if z <0, and its limit at 0 is inf.

e.g. φ(z) = -1/z

18
Q

How to use the Barrier method?

A
  1. Get an initial point x(0), this must be in the interior region Ω. Get initial μ(0).
  2. Minimize f(x) + μ B(x) using unconstrained optimization
  3. Reduce μ (e.g. half it)
  4. Repeat until close enough
19
Q

What is the formula of the Penalty Method?

A

f(x) + μ α(x), where

α(x) = sum hi(x) + sum max(0, gi(x))

20
Q

What is T(y)?

A

cl(D(y))

21
Q

When is a constraint active?

A

If gi(x) = 0

22
Q

How to see if y is optimal using the Geometric form?

A

-f(y) is in the cone of the constraints.

23
Q

How to test KKT conditions?

A

Test ∇f(y) = sum λi ∇gi(y) = 0

λi gi(y) = 0 for all 1, …, k

Note equality constraints can just be ignored. Test first if in feasible region.

24
Q

How to create and solve a dual problem?

A
  1. Write the Lagrange formula
  2. Create the objective function
  3. Find an infomum of x1, x2, x3, … seperately
  4. Fill in q(λ)
  5. Solve.
25
Q

How to show that a set is a cone?

A

Create a nonnegative scalar c, if all the elements are still in the first set then it is a cone

26
Q

Does a function have to de differentiable to be convex?

A

No. e.g. f(x) = |x|