25.11.2015 Views

The MOSEK Python optimizer API manual Version 7.0 (Revision 141)

Optimizer API for Python - Documentation - Mosek

Optimizer API for Python - Documentation - Mosek

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

98 CHAPTER 8. A CASE STUDY<br />

Furthermore, if f ∈ R m×n then<br />

⎡<br />

f(:) =<br />

⎢<br />

⎣<br />

f 1,1<br />

f 2,1<br />

f m−1,n<br />

⎤<br />

⎥<br />

⎦<br />

f m,n<br />

i.e. f(:) stacks the columns of the matrix f.<br />

8.1.2 A basic portfolio optimization model<br />

<strong>The</strong> classical Markowitz portfolio optimization problem considers investing in n stocks or assets held<br />

over a period of time. Let x j denote the amount invested in asset j, and assume a stochastic model<br />

where the return of the assets is a random variable r with known mean<br />

and covariance<br />

µ = Er<br />

Σ = E(r − µ)(r − µ) T .<br />

<strong>The</strong> return of the investment is also a random variable y = r T x with mean (or expected return)<br />

and variance (or risk)<br />

Ey = µ T x<br />

(y − Ey) 2 = x T Σx.<br />

<strong>The</strong> problem facing the investor is to rebalance the portfolio to achieve a good compromise between<br />

risk and expected return, e.g., maximize the expected return subject to a budget constraint and an<br />

upper bound (denoted γ) on the tolerable risk. This leads to the optimization problem<br />

maximize µ T x<br />

subject to e T x = w + e T x 0 ,<br />

x T Σx ≤ γ 2 ,<br />

x ≥ 0.<br />

(8.1)<br />

<strong>The</strong> variables x denote the investment i.e. x j is the amount invested in asset j and x 0 j is the initial<br />

holding of asset j. Finally, w is the initial amount of cash available.<br />

A popular choice is x 0 = 0 and w = 1 because then x j may be interpretated as the relative amount of<br />

the total portfolio that is invested in asset j.<br />

Since e is the vector of all ones then

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!