-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathoptimization-vignette.Rnw
56 lines (39 loc) · 1.19 KB
/
optimization-vignette.Rnw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%
\documentclass[12pt,letterpaper,english]{article}
\usepackage[OT1]{fontenc}
\usepackage{Sweave}
\begin{document}
\title{Portfolio Optimization with \pkg{optimizer}}
\author{Peter Carl \& Brian G. Peterson}
\makeatletter
\makeatother
\maketitle
\begin{abstract}
This vignette describes the steps used to optimize a portfolio of financial assets.
\end{abstract}
\tableofcontents
\section{Introduction}
<<LoadLibrary,echo=F,results=hide>>=
library('optimizer') # also loads PerformanceAnalytics, etc.
@
\section{Getting Started}
\subsection{Load and review data}
Describe the data. Zero fill the data where necessary. discuss the tradeoffs with zero filling and speed.
%
\begin{figure}
\caption{First Lines of the managers Object }
\label{fig:First-Lines-of}
<<LoadData,echo=T>>=
data(edhec)
#managers=read.csv("/home/peter/dev/R/managers.csv",row.names=1)
head(managers)
@
\end{figure}
\subsection{Select an optimizer}
\section{Unconstrained mean-variance optimization}
\section{Adding constraints}
\subsection{Adding portfolio constraints}
\subsection{Adding per-asset weight constraints}
\section{Value-at-Risk and Expected Shortfall}
\section{Optimization with higher moments}
\end{document}