Skip to content

Commit ba853f9

Browse files
rolandlichtersjenkins
authored andcommitted
update user guide and doxygen
1 parent 4ad4cf4 commit ba853f9

4 files changed

Lines changed: 38 additions & 16 deletions

File tree

Docs/UserGuide/parameterisation/curveconfig.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ \subsection{Curves: {\tt curveconfig.xml}}\label{sec:curveconfig}
2525
for the construction of a market.
2626

2727
\input{curve_configurations/yieldcurves}
28-
\include{curve_configurations/default_curves_from_cds}
29-
\include{curve_configurations/default_curves_other}
28+
\input{curve_configurations/default_curves_from_cds}
29+
\input{curve_configurations/default_curves_other}
3030

3131
\subsubsection{Swaption Volatility Structures}
3232

@@ -96,7 +96,7 @@ \subsubsection{Swaption Volatility Structures}
9696
\verb+SWAPTION/RATE\_LNVOL/EUR/5Y/10Y/ATM+.
9797
\end{itemize}
9898

99-
\include{curve_configurations/capfloorvolatility}
99+
\input{curve_configurations/capfloorvolatility}
100100

101101
\subsubsection{FX Volatility Structures}
102102

@@ -315,6 +315,7 @@ \subsubsection{Equity Curve Structures}
315315
\item DayCounter [Optional]: The term structure's day counter used in date to time conversions. Defaults to {\tt A365F}.
316316
\item DividendInterpolation [Optional]: This node contains an \lstinline!InterpolationVariable! and \lstinline!InterpolationMethod! sub-node, which define the variable on which the interpolation is performed and the interpolation method for the dividend curve, respectively. The allowable values are found in Table \ref{tab:allow_interp_variables} and Table \ref{tab:allow_interp_methods}, respectively. This should not be provided if \lstinline!Type! is {\tt NoDividends}.
317317
\item Extrapolation [Optional]: Boolean flag indicating whether extrapolation is allowed. Defaults to {\tt True}.
318+
\end{itemize}
318319

319320
The equity curves here consists of a spot equity price, as well as a set of either forward prices or else dividend
320321
yields. If the index is a dividend futures index then curve type should be entered as ForwardDividendPrice. In this case the curve will be built from forward prices as normal, but excluded from the SIMM calculations as required by the SIMM methodology.
@@ -993,9 +994,9 @@ \subsubsection{Correlations}
993994
\label{lst:correlation_configuration}
994995
\end{longlisting}
995996

996-
\include{curve_configurations/commodity_curves}
997+
\input{curve_configurations/commodity_curves}
997998

998-
\include{curve_configurations/commodity_volatilities}
999+
\input{curve_configurations/commodity_volatilities}
9991000

10001001
\subsubsection{Bootstrap Configuration}
10011002
\label{sec:bootstrap_config}
@@ -1089,4 +1090,4 @@ \subsubsection{One Dimensional Solver Configuration}
10891090
\item \lstinline!UpperBound! [Optional]:
10901091
This node should hold a real number. It provides an upper bound for the search domain. If omitted, no upper bound is applied to the search domain. Obviously, if both \lstinline!LowerBound! and \lstinline!UpperBound! are provided, the value in \lstinline!LowerBound! should be less than the value in \lstinline!UpperBound!.
10911092

1092-
\end{itemize}
1093+
\end{itemize}

Docs/UserGuide/userguide.tex

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -730,12 +730,13 @@ \subsubsection*{Unix}
730730
{\tt export BOOST\_LIB=path/to/boost/lib}\\
731731
{\tt export BOOST\_INC=path/to/boost/include}
732732
\medskip
733-
\Item Change to the ORE project directory that contains the {\tt QuantLib}, {\tt QuantExt}, etc, folders; create subdirectory {\tt build} and change to subdirectory {\tt build}
733+
\item Change to the ORE project directory that contains the {\tt QuantLib}, {\tt QuantExt}, etc, folders; create subdirectory {\tt build} and change to subdirectory {\tt build}
734734
\item Configure CMake by invoking \\
735735
\medskip
736736
{\tt cmake -DBOOST\_ROOT=\${BOOST\_INC} -DBOOST\_LIBRARYDIR=\${BOOST\_LIB} -DQL\_ENABLE\_SESSIONS=ON ..} \\
737737
\medskip
738738
where the {\tt QL\_ENABLE\_SESSIONS} variable is set to ON in order to enable some multi-threading applications in ORE.
739+
739740
Alternatively, set environment variables {\tt BOOST\_ROOT} and {\tt BOOST\_LIBRARYDIR} directly and run \\
740741
\medskip
741742
{\tt cmake ..} \\
@@ -968,8 +969,8 @@ \subsubsection*{Build ORE}
968969
\hspace{1cm} -A x64 $\backslash$\\
969970
\hspace{1cm} -DMSVC\_LINK\_DYNAMIC\_RUNTIME=OFF $\backslash$ \\
970971
\hspace{1cm} -DBOOST\_ROOT=\$BOOST\_INC $\backslash$\\
971-
\hspace{1cm} -DBOOST\_LIBRARYDIR=\$BOOST\_LIB $\backslash$
972-
\hspace{2cm} -DQL\_ENABLE\_SESSIONS=ON}
972+
\hspace{1cm} -DBOOST\_LIBRARYDIR=\$BOOST\_LIB $\backslash$ \\
973+
\hspace{1cm} -DQL\_ENABLE\_SESSIONS=ON}
973974

974975
\medskip
975976
This will create \%ORE\%{\bs}build{\bs}ORE.sln
@@ -1034,12 +1035,30 @@ \subsection{How to build ORE Python Wheels on Linux and macOS}
10341035
\subsubsection*{Prerequisites}
10351036

10361037
\begin{itemize}
1037-
\item python: Ensure that python3, pip, build, and virtualenv are installed and up to date, e.g. on ubuntu:\\
1038+
\item python: Ensure that python3, pip, build, and virtualenv are installed and up to date. \\
1039+
1040+
\medskip
1041+
For example, on ubuntu:\\
10381042
{\tt sudo apt install python3-pip} \\
10391043
{\tt sudo apt install python3.10-venv} \\
1040-
{\tt pip3 install -{}-upgrade build}
1041-
\item python3-dev: You need to install the python header files and libs. On some platforms these come already installed with python. On ubuntu they do not and the command to install them is: \\
1042-
{\tt sudo apt install python3-dev }
1044+
{\tt pip3 install -{}-upgrade build} \\
1045+
1046+
\medskip
1047+
On macOS it is recommended to install jupyterlab (which contains python and pip) with \\
1048+
{\tt brew install jupyterlab} \\
1049+
followed by\\
1050+
{\tt pip install -{}-upgrade build} \\
1051+
{\tt pip install virtualenv}
1052+
1053+
\item python3-dev: You need to install the python header files and libs. On some platforms these come already installed with python.
1054+
1055+
\medskip
1056+
On ubuntu they do not and the command to install them is: \\
1057+
{\tt sudo apt install python3-dev }\\
1058+
1059+
\medskip
1060+
On macOS they come with the recommended installation of jupyterlab
1061+
10431062
\item boost and swig: You need to either install the binaries, or install the source code and build yourself.
10441063
\item ore and oreswig: You need to install the source code. Instructions for building with cmake are provided below.
10451064
\end{itemize}
@@ -1049,8 +1068,8 @@ \subsubsection*{Environment variables}
10491068
Set the following environment variables to the paths where the ore and ore swig repos, as well as boost live on your machine, e.g:
10501069

10511070
\medskip
1052-
{\tt export ORE=$HOME/dev/ore} \\
1053-
{\tt export ORESWIG=$HOME/dev/oreswig}\\
1071+
{\tt export ORE=\$HOME/dev/ore} \\
1072+
{\tt export ORESWIG=\$HOME/dev/oreswig}\\
10541073
{\tt export BOOST\_INC=/opt/homebrew/include} \\
10551074
{\tt export BOOST\_LIB=/opt/homebrew/lib}
10561075

OREAnalytics/orea/engine/historicalpnlgenerator.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class HistoricalPnlGenerator : public ore::data::ProgressReporter {
5858
\param hisScenGen historical scenario generator
5959
\param cube an NPV cube that will be populated by each call to generateCube
6060
\param modelBuilders model builders to update during a val engine run
61+
\param dryRun for testing - limit the number of scenarios to one and fill the cube with random data
6162
*/
6263
HistoricalPnlGenerator(const std::string& baseCurrency, const boost::shared_ptr<ore::data::Portfolio>& portfolio,
6364
const boost::shared_ptr<ScenarioSimMarket>& simMarket,

OREAnalytics/orea/scenario/scenarioshiftcalculator.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
FITNESS FOR A PARTICULAR PURPOSE. See the license for more details.
1717
*/
1818

19-
/*! \file orepmr/orea/scenario/scenarioshiftcalculator.hpp
19+
/*! \file orea/scenario/scenarioshiftcalculator.hpp
2020
\brief Class for calculating the shift multiple between two scenarios for a given key
2121
*/
2222

@@ -45,6 +45,7 @@ class ScenarioShiftCalculator {
4545
returned by the shift method
4646
\param simMarketConfig simulation market configuration for the scenarios that will
4747
be fed to the shift method
48+
\param simMarket simulation market that will be used if provided
4849
*/
4950
ScenarioShiftCalculator(const boost::shared_ptr<ore::analytics::SensitivityScenarioData>& sensitivityConfig,
5051
const boost::shared_ptr<ore::analytics::ScenarioSimMarketParameters>& simMarketConfig,

0 commit comments

Comments
 (0)