Skip to content

Commit

Permalink
started MPO section in manual
Browse files Browse the repository at this point in the history
  • Loading branch information
enzbus committed Jan 4, 2024
1 parent 5072459 commit 2ad7bf0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ to know. The code blocks in this document assume the following imports
import numpy as np
import pandas as pd
.. note::

This document is a work in progress. It will eventually have more
structure. We are prioritizing topics which are more important to
understand when using Cvxportfolio.

.. _passing-data:

Passing Data
Expand Down Expand Up @@ -217,3 +223,25 @@ the cash account as their last element. In most cases used-provided data is not
concerned with the cash account (such as all examples above) and so it can be
ignored. Exceptions are noted in the documentation of each object.


.. _multi-period:

Multi-Period Optimization
-------------------------
Multi-period optimization is an advanced feature but an important one. You
should probably first read section 5 (:paper:`in particular 5 <section.5.2>`)
of the paper to understand the model we work with, which is based on
model-predictive control, the industrial engineering standard for multi-period
optimization.

The model itself is given by the following optimization problem, which is
solved at each time :math:`t` in a back-test (or, the current time if
running a policy on-line)

.. math::
\begin{array}{ll}
\text{maximize} & \sum_{\tau = t} w_\tau^T \mathbf{E}[r] - \frac{1}{2} w^T \mathbf{Var}[r] w \\
\text{subject to} & w \geq 0, w^T \mathbf{1} <= 1
\end{array}

0 comments on commit 2ad7bf0

Please sign in to comment.