%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%% THIS IS THE %%%%%%%%%%%%%% %%%%%%%%%%%% ACTUS TECHNICAL SPECIFICATION DOCUMENT %%%%%%%%%%%%%% %%%%%%%%%%%% %%%%%%%%%%%%%% %%%%%%%%%%%% ---------------- %%%%%%%%%%%%%% %%%%%%%%%%%% Copyright (C) 2016 - present by %%%%%%%%%%%%%% %%%%%%%%%%%% ACTUS Financial Research Foundation %%%%%%%%%%%%%% %%%%%%%%%%%% ----------------- %%%%%%%%%%%%%% %%%%%%%%%%%% Please see distribution for license %%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%% settings %%%%%%%%%%%%%%%%%%%%%% % ---------------------- general ---------------------- \documentclass[9pt,oneside]{amsart} \usepackage{multicol} \usepackage[a4paper, width=170mm, top=18mm, bottom=22mm, includeheadfoot]{geometry} \usepackage[bookmarks=true, unicode=true, pdftitle={ACTUS Technical Specification}, pdfauthor={ACTUS Financial Research Foundation}, pdfkeywords={ACTUS, Financial Contracts, Algorithmic Contracts, Technical Specification}, pdfborder={0 0 0.5 [1 3]}]{hyperref} % ---------------------- language ---------------------- \usepackage[english]{babel} % ---------------------- floats ---------------------- \usepackage{graphicx} \usepackage{float} \usepackage{longtable} % ---------------------- math ---------------------- \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsthm} \newtheorem{example}{Example} % ---------------------- custom tables ---------------------- \newenvironment{states}[1]{ \hfill % force subsection before longtable \begin{longtable}{| p{0.05\textwidth} | p{0.48\textwidth} | p{0.43\textwidth} |} \multicolumn{3}{c}{\textbf{#1: State Variables Initialization}}\\ \hline \textbf{State} & \textbf{Initialization per $t_0$} & \textbf{Comments} \\ \hline \endfirsthead \multicolumn{3}{c}{\textit{Continued from previous page}} \\ \hline \textbf{State} & \textbf{Initialization per $t_0$} & \textbf{Comments} \\ \hline \endhead \hline \multicolumn{3}{r}{\textit{Continued on next page}} \\ \endfoot \endlastfoot }{% \hline \end{longtable} } \newenvironment{schedule}[1]{ \hfill % force subsection before longtable \begin{longtable}{| p{0.05\textwidth} | p{0.5\textwidth} | p{0.4\textwidth} |} \multicolumn{3}{c}{\textbf{#1: Contract Schedule}}\\ \hline \textbf{Event} & \textbf{Schedule} & \textbf{Comments} \\ \hline \endfirsthead \multicolumn{2}{c}{\textit{Continued from previous page}} \\ \hline \textbf{Event} & \textbf{Schedule} & \textbf{Comments} \\ \hline \endhead \hline \multicolumn{2}{r}{\textit{Continued on next page}} \\ \endfoot \endlastfoot }{% \hline \end{longtable} } \newenvironment{functions}[1]{ \hfill % force subsection before longtable \begin{longtable}{| p{0.05\textwidth} | p{0.42\textwidth} | p{0.48\textwidth} |} \multicolumn{3}{c}{\textbf{#1: State Transition Functions and Payoff Functions}}\\ \hline \textbf{Event} & \textbf{Payoff Function} & \textbf{State Transition Function}\\ \hline \endfirsthead \multicolumn{2}{c}{\textit{Continued from previous page}} \\ \hline \textbf{Event} & \textbf{Payoff Function} & \textbf{State Transition Function}\\ \hline \endhead \hline \multicolumn{2}{r}{\textit{Continued on next page}} \\ \endfoot \endlastfoot }{% \hline \end{longtable} } % ---------------------- custom notation ---------------------- \newcommand{\Real}{\mathbb{R}} \newcommand{\Nat}{\mathbb{N}} \newcommand{\svar}[2]{\textbf{#1}_{#2}} \newcommand{\attr}[1]{\texttt{#1}} \newcommand{\stf}[2]{STF\_#1\_#2()} \newcommand{\pof}[2]{POF\_#1\_#2()} \newcommand{\dfl}[1]{D(\textbf{Prf}_{#1})} \newcommand{\sgn}{R(\attr{CNTRL})} \newcommand{\sdl}[3]{S(#1,#2,#3)} \newcommand{\sdll}[4]{S(#1,#2,#3,#4)} \newcommand{\vsdl}[3]{\vec{S}(#1,#2,#3)} \newcommand{\yfr}[2]{Y(#1,#2)} \newcommand{\yfrfunc}{Y} \newcommand{\ann}[5]{A(#1,#2,#3,#4,#5)} \newcommand{\annfunc}{A} \newcommand{\obs}[3]{O^{#1}(#2,#3)} \newcommand{\obsfull}[5]{O^{#1}(#2,#3,#4,#5)} \newcommand{\obsfunc}[1]{O^{#1}} \newcommand{\cldev}[3]{U^{ev}(#1,#2 \mid\{#3\})} \newcommand{\cldsv}[4]{U^{sv}(#1,#2,\svar{#3}{} \mid\{#4\})} \newcommand{\cldsvs}[3]{U^{sv}(#1,#2,\svar{#3}{})} \newcommand{\cldca}[2]{U^{ca}(#1,#2)} \newcommand{\cldfunc}[1]{U^{#1}} \newcommand{\undef}{\varnothing} \newcommand{\tmax}{t^{max}} \newcommand{\tev}[1]{\tau(#1)} \newcommand{\fev}[1]{f(#1)} \newcommand{\payoff}[2]{F(#1,#2)} % ---------------------- misc ---------------------- \usepackage{verbatim} \usepackage{natbib} \setlength\parindent{0pt} % ---------------------- versioning ---------------------- \newcommand{\VersionNumber}{v1.1} \newcommand{\RevisionNumber}{unknown revision} \IfFileExists{build_options.tex}{\input{build_options.tex}} %%%%%%%%%%%%%%%%%%%%%%% titlepage %%%%%%%%%%%%%%%%%%%%%% \def\doctitle{ACTUS: The algorithmic representation of financial contracts} \title{\doctitle \\ {\smaller \textbf{Version \VersionNumber-\RevisionNumber}}} \author{ Nils Bundi\\ ACTUS Financial Research Foundation\\ info@actusfrf.org } %%%%%%%%%%%%%%%%%%%%%%% headers and footers %%%%%%%%%%%%%%%%%%%%%% \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead{} % clear header \fancyfoot{} % clear footer \renewcommand{\headrulewidth}{0pt} % no header rule \addtolength\footskip{3mm} % add space between main text and footer text \lhead{\doctitle} \rhead{\thepage} \lfoot{Copyright \copyright\space 2018--present by ACTUS Financial Research Foundation} \rfoot{\VersionNumber} %%%%%%%%%%%%%%%%%%%%%%% front matter %%%%%%%%%%%%%%%%%%%%%% \begin{document} %\begin{abstract} % %\end{abstract} \maketitle % ---------------------- about ---------------------- \section*{About this document}\label{sec:about} This document provides the technical specifications of the Algorithmic Contract Types Unified Standards (ACTUS). It is developed, maintained, and released by the ACTUS Financial Research Foundation and provided by the same to the ACTUS Users Association under the terms of the open source license with which the document is published from time to time. % ---------------------- versions ---------------------- \section*{Versions}\label{sec:version} This document is versioned according to the following pattern: [major].[minor]-[revision]-[date] where [major] and [minor] are integers marking major and minor release, [revision] indicates the current revision in form of the respective git commit hash (short form), and [date] gives the respective date of the revision. Releases are recorded in the following table. \begin{table}[H] \centering \begin{tabular}{| p{0.1\textwidth} | p{0.1\textwidth} | p{0.75\textwidth} |} \hline Date & Version & Description \\ \hline 2018-11-01 & 1.0-RC & First draft version of the technical specifications covering the "initial" 18 contracts.\\ \hline 2019-10-23 & 1.0 & Stable release streamlined with dictionary. Specifically, this release includes following improvements to the draft version: \begin{itemize} \item Fixed various naming conventions \item Aligned state variable names with dictionary \item Added \attr{ContractStructure} and "Composition"-section \item Added \attr{settlementCurrency} attribute and updated \attr{POF} accordingly \item Added \attr{exerciseDate} and \attr{exerciseAmount} terms and states for contracts with contingent payments \item Removed default convention and updated \attr{POF} accordingly \item Moved Taxonomy, Event, State, Contract Role definitions to dictionary \item Fixed various bugs and inconsistencies \end{itemize} \\ \hline 2020-06-08 & 1.1 & Minor udpates and fixes for alignment with dictionary-v1.2 \\ \hline \end{tabular} \end{table} % ---------------------- acknowledgments ---------------------- \section*{Acknowledgements}\label{sec:ack} We would like to acknowledge all members of the \textit{ACTUS Users Association} who contribute a lot of their time and expertise to the development, review, and testing of the ACTUS standards, in general, and this document, in particular. Without their valuable contributions the ACTUS standards would not exist in the form as they currently do. %%%%%%%%%%%%%%%%%%%%%%% table of contents %%%%%%%%%%%%%%%%%%%%%% % ---------------------- new page ---------------------- \newpage \tableofcontents %%%%%%%%%%%%%%%%%%%% main body %%%%%%%%%%%%%%%%%%%% % ---------------------- new page ---------------------- \newpage % ---------------------- 2-columns ---------------------- \setlength{\columnsep}{20pt} \begin{multicols}{2} %%%%%%%%%%%%%%%%%%%% section: introduction %%%%%%%%%%%%%%%%%%%% \section{Introduction}\label{sec:intro} Financial contracts are legal agreements between two (or more) counterparties on the exchange of future cash flows. Such legal agreements are defined unambiguously by means of a set of contractual terms and logic. As a result, financial contracts can be described mathematically and represented digitally as machine readable algorithms. The benefits of representing financial contracts digitally are manifold; Traditionally, transaction processing has been a field in which tremendous efficiency gains could be realized by the introduction of \textit{machines} and machine readable contracts. Or, financial analytics by nature of the domain builds on the availability of computable representations of these agreements where for reasons of tractability often times analytical approximations are used. Recently, the rise of distributed ledger and blockchain technologies and the various use cases for \textit{smart contracts} has opened up new possibilities for \textit{natively digital} financial contracts. In general, the exchange of cash flows between counterparties follows certain patterns. A typical cash flow exchange pattern is a \textit{bullet loan} contract where principal is exchanged initially followed by cyclical interest payments and the principal is paid back (in a lump sum) at maturity of the contract. While the principal payments are fixed a variety of flavours exist for how the cyclical interest payments are determined and/or paid. As an example, interest payments may be due monthly, annually or according to arbitrary periods, they may be determined based on fixed or variable rates, different year fraction calculation methods may be used or there might be no interest due at all. Another popular pattern is that of \textit{amortizing loans} for which, as opposed to bullet loans, principal may be paid out and paid back in portions of fixed or variable amounts and according to cyclical or custom schedules. Other types of financial contracts include but are not limited to \textit{shares}, \textit{forwards}, \textit{options}, \textit{swaps}, \textit{credit enhancements}, \textit{repurchase agreements}, \textit{securitization}, etc. By focusing on the main distinguishing features, ACTUS describes the vast majority of all financial contracts with a set of about 32 generalized cash flow exchange patterns or Contract Types (CTs), respectively. The ACTUS taxonomy (\url{https://github.com/actusfrf/actus-dictionary/blob/master/actus-dictionary-taxonomy.json}) provides a classification system organizing financial contracts according to their distinguishing cash flow patterns. Apart from this classification system the taxonomy also includes a description of and real-world instruments covered for each contract. On the other hand, the legal agreements in financial contracts represent purely deterministic logic or the \textit{mechanics of finance}, in other words. That is, a financial contract defines a fixed set of rules and conditions under which, given any external variables, the cash flow obligations can be determined unambiguously. For instance, in a \textit{fixed rate loan} the cash flow obligations are defined explicitly. At the same time, a \textit{variable rate loan} defines explicitly the rules under which the variable rate is fixed going forward such that the cash flow obligations can be derived unambiguously going forward. The same holds true for \textit{derivative contracts} where the cash flow obligations arise given some underlying \textit{reference instrument}. Similarly, for analytical purposes, given some assumption of the evolution of this reference instrument the cash flow obligations \textit{conditioned on} this assumption can be derived unabiguously. The properties of financial contracts described above build the foundation for a standardized, deterministic algorithmic description of the cash flow obligations arising from such agreements. Thereby, this description is technology agnostic and supports all use cases necessary for this very standard to be used throughout all finance functions from front office to back office and covering pricing, deal origination, transaction processing, as well as analytics, in general, and liquidity projections, valuation, P\&L calculations and projections, and risk measurement and aggregation, in particular. Furthermore, this standard builds a formidable basis for distributed ledger-powered, natively digital \textit{financial state machines} or \textit{smart contracts}, in other words. In this document, we provide the technical specification of the ACTUS standards or the mathematical description of financial contracts, in other words. We start by providing some basic notations used throughout the document followed by an introduction of the generic functions upon which financial contracts build. We continue in the following sections with an introduction of some additional foundational concepts \textit{Composition}, and \textit{Risk Factor Observer} and \textit{Child Contract Observer}. Finally, we define the various ACTUS contracts in the last section. %%%%%%%%%%%%%%%%%%%% section: notations %%%%%%%%%%%%%%%%%%%% \section{Notations}\label{sec:notations} \subsection{Contract Attributes}\label{sec:attributes} Contract Attributes (attributes) represent the legal contractual terms that define the exchange of cash-flows of a financial contract. These attributes are defined and described in the ACTUS dictionary (\url{https://github.com/actusfrf/actus-dictionary/blob/master/actus-dictionary-terms.json}). Throughout this document attributes are referenced by their short name according to the dictionary. Further, vector-type attributes may be indexed with a subscript indicating that a specific vector-element is referenced. \begin{example}[Contract Attribute] The ACTUS attribute \textit{Initial Exchange Date} is referenced in short form \attr{IED}. \end{example} \begin{example}[Element of Vector-Type Attribute] The ACTUS attribute \textit{Array Cycle Anchor Date of Principal Redemption} is a vector-type attribute and referenced as \attr{ARPRANX}. The $i$-th element of the vector is represented by $\attr{ARPRANX}_i$. \end{example} \subsection{$\undef$-Operator}\label{sec:undef} The $\undef$-operator is used to indicate that a certain property is undefined or, in other words, that no value has been assigned to the respective property. In particular, for optional contract attributes it means that the attribute is not defined and for schedule times (see section \ref{sec:schedule}) it means that the respective schedule is empty, i.e. no schedule time defined. \begin{example}[Undefined Attribute] $\attr{IPANX}=\undef$ indicates that attribute \attr{IPANX} is undefined. \end{example} \begin{example}[Empty Schedule] $\vec{t}^{IP}=\undef$ means the same as $\vec{t}^{IP}=\{\}$, with $\{\}$ the empty set, and states that the IP schedule $\vec{t}^{IP}$ does not contain a schedule time. \end{example} \subsection{$t_0$-Time}\label{sec:t0time} $t_0$ represents \attr{SD} of a contract and marks the time as per which the terms and implied state of a contract is represented. In general, from the contractual logic we are able to derive any contractual events and resulting states for any time $t>t_0$ but not for times $ss$ for which e.g. an (per annum) interest rate applies according to some day count convention \attr{DCC} \[ \yfrfunc: s,t,\attr{DCC} \mapsto \Real \] Note, the year fraction function interface only defines the structure of year fraction functions but not an actual implementation thereof, or the respective \attr{DCC}, respectively. Therefore, any \attr{DCC} can be implemented according to the interface above supporting user-defined year fraction functions.\\ For brevity we will omit the \attr{DCC} function argument wherever this does not lead to confusion. \subsection{Contract Role Sign Convention}\label{sec:cntrl} The two parties to a contract are defined through attributes \attr{CRID} and \attr{CPID}. The first is the party initially \textit{creating} the contract and the second is the counterparty, respectively. Thereby, both \attr{CRID}/\attr{CPID} can take any \textit{role} in the contract or, more specifically, they can be the lender or borrower in a loan (PAM), fixed receiver or payer in an interest rate swap (SWAPS), etc.\\ The \textit{role} of the \attr{CRID} is defined through attribute \attr{CNTRL}. The \textit{role} of \attr{CPID} is derived as the \textit{opposite} side to the contract. Apart from \attr{CNTRL} the attributes are \textit{neutral} to the \textit{role} of \attr{CRID} (or \attr{CPID}).\\ On the other hand, contractual cash flows generated by the POFs and certain states are \textit{role-sensitive}. That is, from the perspective of the \attr{CRID} these quantities represent either claims or obligations. Contract Role Sign function $R$ maps the \attr{CNTRL} attribute into $+1$ indicating a claim or $-1$ indicating an obligation \[ R : \attr{CNTRL} \rightarrow \{-1, +1 \} \] When multiplying with a cash flow $x$ the Contract Role Sign function thereby defines the direction of that flow: \begin{itemize} \item[$x>0$:] $x$ flows from \attr{CPID} to \attr{CRID} \item[$x<0$:] $x$ flows from \attr{CRID} to \attr{CPID} \end{itemize} Table \ref{tbl:cntrl} defines the domain of the Contract Role Sign function, i.e. the range of attribute \attr{CNTRL}, with meaning and Contract Role Sign to which the function maps. % ---------------------- table: contract roles ---------------------- \begin{table}[H] \centering \begin{tabular}{| p{0.5in}p{1.5in}p{0.2in} |} \hline \textbf{Value} & \textbf{Meaning} & $\textbf{R}$ \\ \hline RPA & Real position asset & +1 \\ \hline RPL & Real position liability & -1 \\ \hline LG & Long position & +1 \\ \hline ST & Short position & -1 \\ \hline BUY & Protection buyer & +1 \\ \hline SEL & Protection seller & -1 \\ \hline RFL & Receive first (or fixed) leg & +1 \\ \hline PFL & Pay first (or fixed) leg & -1 \\ \hline COL & Collateral instrument & +1 \\ \hline CNO & Close-out netting instrument & +1 \\ \hline GUA & The guarantor in a Guarantee & -1 \\ \hline OBL & The obligee in a Guarantee & +1 \\ \hline UDL & The underlying to a composed contract & +1 \\ \hline UDLP & The underlying to a composed contract with positive sign & +1 \\ \hline UDLM & The underlying to a composed contract with negative sign & -1 \\ \hline \end{tabular} \caption{Contract Role definitions.} \label{tbl:cntrl} \end{table} \subsection{Annuity Amount Function}\label{sec:annamount} In an \textit{Annuity} contract (ANN) the annuity amount is paid regularly from the \textit{borrower} to the \textit{lender}. Thereby, the annuity amount is comprised of a principal repayment portion and an interest portion and and dimensioned such that the total nominal amount $n$ at time $t$ is fully repaid at maturity $T$ of the annuity. The Annuity Amount function $\annfunc$ computes the annuity amount as follows \[ \ann{s}{T}{n}{a}{r}=(n+a)\frac{\prod_{i=1}^{m-1}1+r\yfr{t_i,t_{i+1}}}{1+\sum_{i=1}^{m-1}\prod_{j=i}^{m-1}1+r\yfr{t_j}{t_{j+1}}} \] with $a$ the accrued interest as per time $s$, $r$ the actual interest rate, $t_i, i=1,2,...,m$ the schedule times $\inf t, t\in\vec{t}^{PR}\land t>s$, $m$ the number of times $t_i$, and $\vec{t}^{PR}$ the PR-event schedule times of the Annuity contract as described in section \ref{sec:ann}. \subsection{Canonical Contract Payoff Function} The canonical payoff of a contract $x$ is defined as the sum of all future event payoffs evaluated under current risk factor conditions, or \[ \payoff{x}{t} = \sum_{c\in C} c \] with $C=\fev{\cldev{x}{t}{\obs{rf}{\attr{i}}{s}=\obs{rf}{\attr{i}}{t}\forall i \wedge s>t}}$. \subsection{Settlement Currency FX Rate}\label{sec:settlement-cur} Sometimes financial contracts are settled in a different currency (i.e. the \textit{settlement currency}) \attr{CURS} than the denomination currency \attr{CUR}. Hence, payoffs are multiplied by the respective fx-rate which is derived by the following \[ X_{\attr{CUR}}^{\attr{CURS}}(t) = \begin{cases} 1 &\text{if}\quad \attr{CURS} == \undef \vee \attr{CURS} == \attr{CUR} \\ f(t) &\text{else} \end{cases} \] with $f(t)=\obs{rf}{\attr{concat(CUR,'/',CURS)}}{t}$. %%%%%%%%%%%%%%%%%%%% section: contract composition %%%%%%%%%%%%%%%%%%%% \section{Contract Composition}\label{sec:composition} The payoff of \textit{Combined Contracts}, see the taxonomy, is derived from certain quantities of child contracts (also called \textit{underlying instruments} or simply \textit{underlyers}). In general, such child contracts can be any ACTUS contract - Basic or Combined - as well as any number of contracts - a single contract or a set of contracts. Indeed, in reality this is what Option, Swap, Swaption, but also any kind of Asset/Mortgage/etc. backed securities represent; \textit{a hierarchical composition of different contracts linked by means of functional reationships}. This compositional approach provides maximum flexibility and, hence, allows capturing any real world use case. We here refer to a \textit{referenced} (i.e. of lower hierarchical level) contract as a \textit{child contract} and to a referencing (i.e. of higher hierarchical level) contract as a \textit{parent contract}.\\ The ACTUS dictionary defines attribute $\attr{CTST}$ which captures the child contract(s) as part of the parent contract's set of attributes. Thereby, attribute $\attr{CTST}$ is of type \verb'ContractReference[]' with \verb'ContractReference' a reference to a child contract (in JSON notation) \begin{verbatim} { "object": , "type": , "role": } \end{verbatim} Consult the dictionary for more information (cf. \url{https://github.com/actusfrf/actus-dictionary/blob/6e84435c70e1325e114c931badaa7e80b01a9a0d/actus-dictionary.json#L776}. We will use the following notation to query reference objects from the $\attr{CTST}$ attribute \[ \attr{CTST}_{role}^{type}(i) \] where $role$ and $type$ filter the reference objects in $\attr{CTST}$ according to the respective values of fields \verb'type' and \verb'role'. For brevity, we will omit the index parameter $i$ which indicates that we address the first (and usually only) reference object queried. \begin{example}[Underlying MarketObject-reference] The MarketObject reference of a simple Underlying e.g. to an Option contract is referenced as $\attr{CTST}_{Underlying}^{MarketObjectIdentifier}(1)$ or, in short form, as $\attr{CTST}_{Underlying}^{MarketObjectIdentifier}$. \end{example} \begin{example}[FirstLeg Contract-reference] The Contract object representing the first leg e.g. to a Swaps contract is referenced as $\attr{CTST}_{FirstLeg}^{Contract}(1)$ or, in short form, as $\attr{CTST}_{FirstLeg}^{Contract}$. \end{example} %%%%%%%%%%%%%%%%%%%% section: risk factor observer %%%%%%%%%%%%%%%%%%%% \section{Risk Factor Observer}\label{sec:rfobserver} The payoff of financial contracts always depends on the context in which it is evaluated and which is comprised of the following dimensions; counterparties, markets, and behavioral factors. We refer to these as the \textit{risk factors} to which financial contracts are exposed to. This indicates that these factors are source of uncertainty because financial contracts only reference the factors but their dynamics is outside the control of any contractual agreement. Thus, such factors have to be \textit{observed} and their changing states accounted for when evaluating the payoff of financial contracts. Therefore, we consider a standardized interface $\obsfull{o}{i}{t}{S}{M}$ that allows for \textit{observing}; (1) the state of a certain risk factor $i$ at any time $t$ if $o=$'rf' \[ \obsfunc{rf}: i,t,S,M \mapsto \Real \] and (2) contractual but non-scheduled events if $o=$'ev' \[ \obsfunc{ev}: i,k,t,S,M \mapsto \{e_t^{k},e_s^{k},...\} \] The parameters to the Risk Factor Observer interface are as follows: \begin{itemize} \item[$i$]: the identifier of the risk factor observed \item[$k$]: the type of events observed \item[$t$]: the time (post) which to observe the risk factor \item [$S$]: the inner states of the contract at time $t$ \item [$M$]: the contract terms of the contract as per time $t$ \end{itemize} Note that the observer interface only defines the structure of an actual observer function but not the actual implementation. Thus, the interface allows for user-defined implementations of observer functions allowing e.g. for representing arbitrary assumptions on the evolution of future risk factor states which is key for any type of forward-looking analysis. \begin{example}['rf'-Observer] The market-driven 3-month USD-Libor reference rate used as the variable rate in a variable rate loan contract is observed at any time $t$ through $\obs{rf}{\attr{MarketObjectCodeRateReset}}{t}$. \end{example} \begin{example}['rf'-Observer] Unscheduled (pre-) repayments of outstanding notional in a mortgage contract is observed at any time $t$ through $\obs{ev}{\attr{CID},\attr{PR}}{t}$. \end{example} For brevity we will omit the $S$ and $M$ function arguments wherever this does not lead to confusion. %%%%%%%%%%%%%%%%%%%% section: child observer %%%%%%%%%%%%%%%%%%%% \section{Child Contract Observer}\label{sec:cldobserver} In order to evaluate the derived payoff of combined contracts, we consider a standardized interface $\cldfunc{o}$ that allows for \textit{observing} on the parent level; (1) all future events, w.r.t. time $t$, if $o=$'ev' \[ \cldfunc{ev}: i,t,a \mapsto \{e_v^{k},e_w^{l},...\} \] with $v,w>t$ and event types $k,l$ according to the schedule of the child contract, (2) a certain state variable $x$ if $o=$'sv' \[ \cldfunc{sv}: i,t,x,a \mapsto \Real, \] or (3) a particular contract attribute $x$ of the child contract if $o=$'ca' \[ \cldfunc{ca}: i,x \mapsto y \] with $y$ a variable of value type of the respective attribute as per DD.\\ The parameters to the Child Contract Observer interface are as follows: \begin{itemize} \item[$i$]: the identifier of the child contract \textit{observed} \item[$t$]: for $o\in\{\textit{ev,sv}\}$ the time for which the respective quantity should be evaluated \item [$x$]: for $o\in\{\textit{sv,ca}\}$ the quantity to be evaluated \item [$a$]: for $o\in\{\textit{ev,sv}\}$ a set of contract attributes to which the evaluated quantity should be conditioned \end{itemize} Note that the observer interface only defines the structure of an actual observer function but not the actual implementation. Thus, the interface allows for user-defined implementations of observer functions allowing e.g. for using arbitrary data structures. \begin{example}['ev'-Observer] The future events, w.r.t. time $t$, of the \textit{first leg} (i.e. child contract with \verb'Role'=$\texttt{FirstLeg}$) of a SWAPS contract with $\attr{CNTRL}=PFL$ (i.e. \textit{pay first leg}) can be evaluated as $\cldev{\attr{CTST}_{FirstLeg}^{Contract}}{t}{\attr{CNTRL}=RPL}$. \end{example} \begin{example}['sv'-Observer] The current state, w.r.t. time $t$, of state variable $\svar{Nt}{}$ of the \textit{first leg} (i.e. child contract with \verb'Role'=$\texttt{FirstLeg}$) of a SWAPS contract with \attr{CNTRL}=RFL (i.e. \textit{receive first leg}) can be evaluated as $\cldsv{\attr{CTST}_{FirstLeg}^{Contract}}{t}{Nt}{\attr{CNTRL}=RPA}$. \end{example} \begin{example}['ca'-Observer] The contract attribute \attr{MOC} of the child contract \textit{Child} (i.e. child contract with \verb'Role'=$\texttt{Underlying}$) of an OPTNS contract can be evaluated as $\cldca{\attr{CTST}_{Underlying}^{Contract}}{\attr{MOC}}$. \end{example} For brevity we will omit the $x$ and $a$ function arguments wherever this does not lead to confusion. %%%%%%%%%%%%%%%%%%%% section: contract types %%%%%%%%%%%%%%%%%%%% % ---------------------- 1-column ---------------------- \end{multicols} % ---------------------- newpage ---------------------- \newpage \section{Contract Types}\label{sec:contracts} %%%%%%%%%%%%%%%%%%%% subsection: pam %%%%%%%%%%%%%%%%%%%% \subsection{PAM: Principal At Maturity}\label{sec:pam} % ---------------------- table: pam schedule ---------------------- \begin{schedule}{PAM} AD & $\vec{t}^{AD} = \left(t_0,t_1,...,t_n\right)$ & With $t_i,i=1,2,...$ a custom input \\ \hline IED & $t^{IED} = \attr{IED}$ & \\ \hline MD & $t^{MD} = \svar{Md}{t_0}$ & \\ \hline PP & $\vec{t}^{PP} = \begin{cases} \undef & \text{if} \quad \attr{PPEF}=\text{'N'} \\ (\vec{u},\vec{v}) & \text{else} \end{cases}$ \par where \par {$\begin{aligned} \vec{u} &= \sdl{s}{\attr{OPCL}}{T^{MD}} \\ \vec{v} &= \obs{ev}{\attr{CID},\attr{PP}}{t} \end{aligned}$} & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{OPANX}=\undef \land \attr{OPCL}=\undef\\ \attr{IED}+\attr{OPCL} & \text{else if} \quad \attr{OPANX} = \undef \\ \attr{OPANX} & \text{else} \end{cases}$ \\ \hline PY & $\vec{t}^{PY} = \begin{cases} \undef & \text{if} \quad \attr{PYTP}=\text{'O'} \\ \vec{t}^{PP} & \text{else} \end{cases}$ & \\ \hline FP & $\vec{t}^{FP} = \begin{cases} \undef & \text{if} \quad \attr{FER}=\undef \lor \attr{FER}=0 \\ \sdl{s}{\attr{FECL}}{T^{MD}} & \text{else} \end{cases}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{FEANX}=\undef \land \attr{FECL}=\undef\\ \attr{IED}+\attr{FECL} & \text{else if} \quad \attr{FEANX} = \undef \\ \attr{FEANX} & \text{else} \end{cases}$ \\ \hline PRD & $t^{PRD}= \attr{PRD}$ & \\ \hline TD & $t^{TD}= \attr{TD}$ & \\ \hline IP & $\vec{t}^{IP} = \begin{cases} \undef & \text{if} \quad \attr{IPNR}=\undef \\ \sdl{s}{\attr{IPCL}}{T^{MD}} & \text{else} \end{cases}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{IPANX}=\undef \land \attr{IPCL}=\undef\\ \attr{IPCED} & \text{else if}\quad \attr{IPCED}\neq\undef \\ \attr{IED}+\attr{IPCL} & \text{else if} \quad \attr{IPANX} = \undef \\ \attr{IPANX} & \text{else} \end{cases}$ \\ \hline IPCI & $\vec{t}^{IPCI} = \begin{cases} \undef & \text{if} \quad \attr{IPCED}=\undef \\ \sdl{s}{\attr{IPCL}}{\attr{IPCED}} & \text{else} \end{cases}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{IPANX}=\undef \land \attr{IPCL}=\undef\\ \attr{IED}+\attr{IPCL} & \text{else if} \quad \attr{IPANX} = \undef \\ \attr{IPANX} & \text{else} \end{cases}$ \\ \hline RR & $\vec{t}^{RR} = \begin{cases} \undef & \text{if} \quad \attr{RRANX}=\undef \land \attr{RRCL}=\undef \\ \vec{t} \setminus t^{RRY} & \text{else if} \attr{RRNXT} \neq \undef \\ \vec{t} & \text{else} \end{cases}$ \par where $\vec{t}=\sdl{s}{\attr{RRCL}}{T^{MD}}$ & with\par {$\begin{aligned} s &= \begin{cases} \attr{IED}+\attr{RRCL} & \text{if} \quad \attr{RRANX} = \undef \\ \attr{RRANX} & \text{else} \end{cases} \\ t^{RRY} &= \inf t \in \vec{t}\mid t>\attr{SD} \end{aligned}$} \\ \hline RRF & $t^{RRF} = \begin{cases} \undef & \text{if} \quad \attr{RRANX}=\undef \land \attr{RRCL}=\undef \\ \inf t \in \vec{t}\mid t>\attr{SD} & \text{else} \end{cases}$ \par where $\vec{t}=\sdl{s}{\attr{RRCL}}{T^{MD}}$ & with\par $s = \begin{cases} \attr{IED}+\attr{RRCL} & \text{if} \quad \attr{RRANX} = \undef \\ \attr{RRANX} & \text{else} \end{cases}$ \\ \hline SC & $\vec{t}^{SC} = \begin{cases} \undef & \text{if} \quad \attr{SCEF}=\text{'000'} \\ \sdl{s}{\attr{SCCL}}{T^{MD}} & \text{else} \end{cases}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{SCANX}=\undef \land \attr{SCCL}=\undef\\ \attr{IED}+\attr{SCCL} & \text{else if} \quad \attr{SCANX} = \undef \\ \attr{SCANX} & \text{else} \end{cases}$ \\ \hline CE & $\vec{t}^{CE} = t(e^{k}) | \svar{Prf}{t^-} \neq \svar{Prf}{t^+}, \forall k$ & \\ \end{schedule} % ---------------------- table: pam states ---------------------- \begin{states}{PAM} $\svar{Md}{}$ & $\svar{Md}{t_0} = \attr{MD}$ & \\ \hline $\svar{Nt}{}$ & $\svar{Nt}{t_0} = \begin{cases} 0.0 & \text{if} \quad \attr{IED} > t_0 \\ \sgn\times\attr{NT} & \text{else} \end{cases}$ & \\ \hline $\svar{Ipnr}{}$ & $\svar{Ipnr}{t_0} = \begin{cases} 0.0 & \text{if} \quad \attr{IED} > t_0 \\ \attr{IPNR} & \text{else} \end{cases}$ & \\ \hline $\svar{Ipac}{}$ & $\svar{Ipac}{t_0} = \begin{cases} 0.0 & \text{if} \quad \attr{IPNR}=\undef \\ \attr{IPAC} & \text{else if} \quad \attr{IPAC} \neq \undef \\ \yfr{t^-}{t_0}\times\svar{Nt}{t_0}\times\svar{Ipnr}{t_0} & \text{else} \end{cases}$ & with $t^- = \sup t \in \vec{t}^{IP}\mid tt_0 \end{aligned}$} \\ \hline $\svar{Nsc}{}$ & $\svar{Nsc}{t_0} = \begin{cases} \attr{SCIXSD} & \text{if} \quad \attr{SCEF}=\text{'[x]N[x]'} \\ 1.0 & \text{else} \end{cases}$ & \\ \hline $\svar{Isc}{}$ & $\svar{Isc}{t_0} = \begin{cases} \attr{SCIXSD} & \text{if} \quad \attr{SCEF}=\text{'I[x][x]'} \\ 1.0 & \text{else} \end{cases}$ & \\ \hline $\svar{Prf}{}$ & $\svar{Prf}{t_0} = \attr{PRF}$ & \\ \hline $\svar{Sd}{}$ & $\svar{Sd}{t_0} = t_0$ & \\ \end{states} % ---------------------- table: pam functions ---------------------- \begin{functions}{PAM} AD & 0.0 & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-1}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-}\\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline IED & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn(-1)(\attr{NT}+\attr{PDIED})$ & {$\begin{aligned} \svar{Nt}{t^+} &=\sgn\attr{NT} \\ \svar{Ipnr}{t^+} &= \begin{cases} 0.0 & \text{if} \quad \attr{IPNR}=\undef \\ \attr{IPNR} & \text{else} \end{cases} \\ \svar{Ipac}{t^+} &= \begin{cases} \attr{IPAC} & \text{if} \quad \attr{IPAC} \neq \undef \\ y\svar{Nt}{t^+}\svar{Ipnr}{t^+} & \text{if} \quad \attr{IPANX} \neq \undef \land \attr{IPANX}t_0 \end{aligned}$} \\ \hline PY & {$\begin{aligned} &X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn\attr{PYRT} &\text{if} \quad \attr{PYTP}=\text{'A'}\\ &c\attr{PYRT} &\text{if} \quad \attr{PYTP}=\text{'N'}\\ &c\max(0,\svar{Ipnr}{t^-}-\obs{rf}{\attr{RRMO}}{t}) &\text{if} \quad \attr{PYTP}=\text{'I'} \end{aligned}$}\par with\par $c=X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn\yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}$ & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline FP & {$\begin{aligned} &\sgn c &\text{if} \quad \attr{FEB}=\text{'A'}\\ &c\yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}+\svar{Feac}{t^-} &\text{if} \quad \attr{FEB}=\text{'N'} \end{aligned}$}\par with\par $c=X_{\attr{CUR}}^{\attr{CURS}}(t)\attr{FER}$ & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline PRD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (-1)(\attr{PPRD} + \svar{Ipac}{t^-} +$ \par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-})$ & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline TD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (\attr{PTD} + \svar{Ipac}{t^-} +$ \par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-})$ & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Ipac}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Ipnr}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline IP & $X_{\attr{CUR}}^{\attr{CURS}}(t)\svar{Isc}{t^-}(\svar{Ipac}{t^-} +$\par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-})$ & {$\begin{aligned} \svar{Ipac}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline IPCI & 0.0 & {$\begin{aligned} \svar{Nt}{t^+} &= \svar{Nt}{t^-} + \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\svar{Ipnr}{t^-}\\ \svar{Ipac}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RR & 0.0 & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \min(\max(\svar{Ipnr}{t^-}+\Delta r,\attr{RRLF}),\attr{RRLC}) \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} \Delta r &= \min(\max(\obs{rf}{\attr{RRMO}}{t}\attr{RRMLT}+\attr{RRSP} - \svar{Ipnr}{t^-},\attr{RRPF}),\attr{RRPC}) \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RRF & 0.0 & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \attr{RRNXT} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline SC & 0.0 & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Nsc}{t^+} &= \begin{cases} \svar{Nsc}{t^-} & \text{if} \quad \attr{SCEF} = [x]0[x] \\ \frac{\obs{rf}{\attr{SCMO}}{t} - \attr{SCIED}}{\attr{SCIED}} & \text{else} \end{cases} \\ \svar{Isc}{t^+} &= \begin{cases} \svar{Isc}{t^-} & \text{if} \quad \attr{SCEF} = 0[x][x] \\ \frac{\obs{rf}{\attr{SCMO}}{t} - \attr{SCIED}}{\attr{SCIED}} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline CE & 0.0 & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: lam %%%%%%%%%%%%%%%%%%%% \subsection{LAM: Linear Amortizer}\label{sec:lam} % ---------------------- table: lam schedule ---------------------- \begin{schedule}{LAM} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & $t^{PR} = \sdll{s}{\attr{PRCL}}{T^{MD}}{F}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{PRANX}=\undef \land \attr{PRCL}=\undef\\ \attr{IED}+\attr{PRCL} & \text{else if} \quad \attr{PRANX} = \undef \\ \attr{PRANX} & \text{else} \end{cases}$ \\ \hline MD & $t^{MD} = \svar{Md}{t_0}$ & \\ \hline PP & & Same as PAM \\ \hline PY & & Same as PAM \\ \hline FP & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline IP & & Same as PAM \\ \hline IPCI & & Same as PAM \\ \hline IPCB & $\vec{t}^{IPCB} = \begin{cases} \undef & \text{if} \quad \attr{IPCB}\neq\text{'NTL'} \\ \sdl{s}{\attr{IPCBCL}}{T^{MD}} & \text{else} \end{cases}$ & with\par $s = \begin{cases} \undef & \text{if} \quad \attr{IPCBANX}=\undef \land \attr{IPCBCL}=\undef\\ \attr{IED}+\attr{IPCBCL} & \text{else if} \quad \attr{IPCBANX} = \undef \\ \attr{IPCBANX} & \text{else} \end{cases}$ \\ \hline RR & & Same as PAM \\ \hline RRF & & Same as PAM \\ \hline SC & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: lam states ---------------------- \begin{states}{LAM} $\svar{Md}{}$ & $\svar{Md}{t_0}=\begin{cases} \attr{MD} & \text{if}\quad \attr{MD}\neq\undef\\ t^-+ceil(\frac{\attr{NT}}{\attr{PRNXT}})\attr{PRCL} \end{cases}$ & where\par $t^- = \begin{cases} \attr{PRANX} & \text{if}\quad \attr{PRANX}\neq\undef \land \attr{PRANX}\geq t_0 \\ \attr{IED}+\attr{PRCL} & \text{else if}\quad \attr{IED}+\attr{PRCL}\geq t_0 \\ \sup t \in \vec{t}^{PR}\mid tt_0\\ \attr{IED}+\attr{PRCL} & \text{else if}\quad \attr{PRANX} = \undef \land \attr{IED}+\attr{PRCL}>t_0 \\ t^- & \text{else} \end{cases}$\par and where $t^- = \sup t \in \vec{t}^{PR}\mid tt_0 \end{aligned}$} \\ \hline MD & \pof{MD}{PAM} & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Ipac}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Ipcb}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline PP & \pof{PP}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Nt}{t^+} &= \svar{Nt}{t^-} - \fev{\obs{ev}{\attr{CID},\attr{PP}}{t}} \\ \svar{Ipcb}{t^+} &= \begin{cases} \svar{Ipcb}{t^-} & \text{if}\quad \attr{IPCB}\neq\text{'NT'} \\ \svar{Nt}{t^+} & \text{else} \end{cases}\\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline PY & \pof{PY}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline FP & \pof{FP}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline PRD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (-1)(\attr{PPRD} + \svar{Ipac}{t^-} +$ \par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-})$ & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline TD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (\attr{PTD} + \svar{Ipac}{t^-} +$ \par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-})$ & \stf{TD}{PAM} \\ \hline IP & $X_{\attr{CUR}}^{\attr{CURS}}(t)\svar{Isc}{t^-}(\svar{Ipac}{t^-} +$ \par $\qquad\qquad \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-})$ & \stf{IP}{PAM} \\ \hline IPCI & \pof{IPCI}{PAM} & {$\begin{aligned} \svar{Nt}{t^+} &= \svar{Nt}{t^-} + \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-}\\ \svar{Ipac}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipcb}{t^+} &= \begin{cases} \svar{Ipcb}{t^-} & \text{if}\quad \attr{IPCB}\neq\text{'NT'} \\ \svar{Nt}{t^+} & \text{else} \end{cases}\\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline IPCB & 0.0 & {$\begin{aligned} \svar{Ipcb}{t^+} &= \svar{Nt}{t^-} \\ \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RR & \pof{RR}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \min(\max(\svar{Ipnr}{t^-}+\Delta r,\attr{RRLF}),\attr{RRLC}) \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} \Delta r &= \min(\max(\obs{rf}{\attr{RRMO}}{t}\attr{RRMLT}+\attr{RRSP} - \svar{Ipnr}{t^-},\attr{RRPF}),\attr{RRPC}) \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RRF & \pof{RRF}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \attr{RRNXT} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline SC & \pof{SC}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Nsc}{t^+} &= \begin{cases} \svar{Nsc}{t^-} & \text{if} \quad \attr{SCEF} = [x]0[x] \\ \frac{\obs{rf}{\attr{SCMO}}{t} - \attr{SCIED}}{\attr{SCIED}} & \text{else} \end{cases} \\ \svar{Isc}{t^+} &= \begin{cases} \svar{Isc}{t^-} & \text{if} \quad \attr{SCEF} = 0[x][x] \\ \frac{\obs{rf}{\attr{SCMO}}{t} - \attr{SCIED}}{\attr{SCIED}} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: lax %%%%%%%%%%%%%%%%%%%% \subsection{LAX: Exotic Linear Amortizer}\label{sec:lax} % ---------------------- table: lax schedule ---------------------- \begin{schedule}{LAX} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & $\vec{t}^{PR} = \begin{cases} \{ t_1, t_2, ..., t_i, ... \} & \text{if}\quad \attr{ARPRCL}=\undef \\ s_1 \cup s_2 \cup ... \cup s_i \cup ... & \text{else} \end{cases}$ \par with\par $s_i=\sdl{\attr{ARPRANX}_i}{\vec{C}_i}{\attr{ARPRANX}_{i+1}}$, $i\in\{1,2,...,\mid\attr{ARINCDEC}\mid\} \mid \attr{ARINCDEC}_i = \text{'DEC'}$ & with\par $\vec{C} = \begin{cases} \attr{ARPRCL} & \text{if} \quad \mid\attr{ARPRCL}\mid = \mid \attr{ARPRANX}\mid \\ \{ c_1, c_2, ..., c_n \} & \text{else} \end{cases}$ \par where\par $n=\mid\attr{ARPRANX}\mid, c_k=\attr{ARPRCL}_1\forall k$ \\ \hline MD & & Same as PAM \\ \hline PI & $\vec{t}^{PI} = \begin{cases} \{ t_1, t_2, ..., t_i, ... \} & \text{if}\quad \attr{ARPRCL}=\undef \\ s_1 \cup s_2 \cup ... \cup s_i \cup ... & \text{else} \end{cases}$ \par with\par $s_i=\sdl{\attr{ARPRANX}_i}{\vec{C}_i}{\attr{ARPRANX}_{i+1}}$, $i\in\{1,2,...,\mid\attr{ARINCDEC}\mid\} \mid \attr{ARINCDEC}_i = \text{'INC'}$ & with\par $\vec{C} = \begin{cases} \attr{ARPRCL} & \text{if} \quad \mid\attr{ARPRCL}\mid = \mid \attr{ARPRANX}\mid \\ \{ c_1, c_2, ..., c_n \} & \text{else} \end{cases}$ \par where\par $n=\mid\attr{ARPRANX}\mid, c_k=\attr{ARPRCL}_1\forall k$ \\ \hline PRF & $\vec{t}^{PRF} = \attr{ARPRANX}$ & \\ \hline PP & & Same as PAM \\ \hline PY & & Same as PAM \\ \hline FP & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline IP & $\vec{t}^{IP} = \vsdl{\attr{ARIPANX}}{\attr{ARIPCL}}{\svar{Md}{t_0}}$ & \\ \hline IPCI & & Same as PAM \\ \hline IPCB & & Same as LAM \\ \hline RR & $\vec{t}^{RR} = \begin{cases} \{ t_1, t_2, ..., t_i, ... \} & \text{if}\quad \attr{ARRRCL}=\undef \\ s_1 \cup s_2 \cup ... \cup s_i \cup ... & \text{else} \end{cases}$ \par with\par $s_i=\sdl{\attr{ARRRANX}_i}{\vec{C}_i}{\attr{ARRRANX}_{i+1}}$, $i\in\{1,2,...,\mid\attr{ARFIXVAR}\mid\} \mid \attr{ARFIXVAR}_i = \text{'V'}$ & with\par $\vec{C} = \begin{cases} \attr{ARRRCL} & \text{if} \quad \mid\attr{ARRRCL}\mid = \mid \attr{ARRRANX}\mid \\ \{ c_1, c_2, ..., c_n \} & \text{else} \end{cases}$ \par where\par $n=\mid\attr{ARRRANX}\mid, c_k=\attr{ARRRCL}_1\forall k$ \\ \hline RRF & $\vec{t}^{RRF} = \begin{cases} \{ t_1, t_2, ..., t_i, ... \} & \text{if}\quad \attr{ARRRCL}=\undef \\ s_1 \cup s_2 \cup ... \cup s_i \cup ... & \text{else} \end{cases}$ \par with\par $s_i=\sdl{\attr{ARRRANX}_i}{\vec{C}_i}{\attr{ARRRANX}_{i+1}}$, $i\in\{1,2,...,\mid\attr{ARFIXVAR}\mid\} \mid \attr{ARFIXVAR}_i = \text{'F'}$ & with\par $\vec{C} = \begin{cases} \attr{ARRRCL} & \text{if} \quad \mid\attr{ARRRCL}\mid = \mid \attr{ARRRANX}\mid \\ \{ c_1, c_2, ..., c_n \} & \text{else} \end{cases}$ \par where\par $n=\mid\attr{ARRRANX}\mid, c_k=\attr{ARRRCL}_1\forall k$ \\ \hline SC & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: lax states ---------------------- \begin{states}{LAX} $\svar{Md}{}$ & $\svar{Md}{t_0}=\begin{cases} \attr{MD} & \text{if}\quad \attr{MD}\neq\undef\\ \inf t>t_0 \mid N(t)=0 & \text{else} \end{cases}$ \par with\par $N(t) = \attr{NT} + \sum_{i=1}^{n(t)} (-1)^k \attr{ARPRNXT}_i \mid s_i \mid$ & where\par {$\begin{aligned} n(t) &= \begin{cases} \sup k\in\Nat \mid \attr{ARPRANX}_kt_0 \end{aligned}$} \\ \hline PRF & 0.0 & {$\begin{aligned} \svar{Prnxt}{t^+} &= \attr{ARPRNXT}_i \\ \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipcb}{t^+} &= \begin{cases} \svar{Ipcb}{t^-} & \text{if}\quad \attr{IPCB}\neq\text{'NT'} \\ \svar{Nt}{t^+} & \text{else} \end{cases}\\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} i &= \sup k\in\Nat \mid \attr{ARPRANX}_k=t \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline PP & \pof{PP}{PAM} & \stf{PP}{LAM} \\ \hline PY & \pof{PY}{PAM} & \stf{PY}{LAM} \\ \hline FP & \pof{FP}{PAM} & \stf{FP}{LAM} \\ \hline PRD & \pof{PRD}{LAM} & \stf{PRD}{LAM} \\ \hline TD & \pof{TD}{LAM} & \stf{TD}{PAM} \\ \hline IP & \pof{IP}{LAM} & \stf{IP}{PAM} \\ \hline IPCI & \pof{IPCI}{PAM} & \stf{IPCI}{LAM} \\ \hline IPCB & \pof{IPCB}{LAM} & \stf{IPCB}{LAM} \\ \hline RR & \pof{RR}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \min(\max(\svar{Ipnr}{t^-}+\Delta r,\attr{RRLF}),\attr{RRLC}) \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} \Delta r &= \min(\max(\obs{rf}{\attr{RRMO}}{t}\attr{RRMLT}+\attr{ARRATE}_i - \svar{Ipnr}{t^-},\attr{RRPF}),\attr{RRPC}) \\ i &= \sup k\in\Nat \mid \attr{ARPRANX}_k=t \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RRF & \pof{RRF}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \attr{ARRATE}_i \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} i &= \sup k\in\Nat \mid \attr{ARRRANX}_k=t \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline SC & \pof{SC}{PAM} & \stf{SC}{LAM} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: nam %%%%%%%%%%%%%%%%%%%% \subsection{NAM: Negative Amortizer}\label{sec:nam} % ---------------------- table: nam schedule ---------------------- \begin{schedule}{NAM} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & & Same as LAM \\ \hline MD & & Same as PAM \\ \hline PP & & Same as PAM \\ \hline PY & & Same as PAM \\ \hline FP & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline IP & $\vec{t}^{IP} = (\vec{u},\vec{v})$ \par where \par {$\begin{aligned} \vec{u} &= \begin{cases} \undef & \text{if}\quad \attr{IPANX}=\undef\land\attr{IPCL}=\undef \\ \undef & \text{if}\quad \attr{IPCED}\neq\undef\land\attr{IPCED}\geq\attr{T}\\ \sdl{r}{\attr{IPCL}}{T} & \text{else} \end{cases} \\ \vec{v} &= \sdl{s}{\attr{PRCL}}{T^{MD}} \end{aligned}$} & with\par {$\begin{aligned} r &= \begin{cases} \attr{IPCED} & \text{if}\quad \attr{IPCED}\neq\undef \\ \attr{IPANX} & \text{else if}\quad \attr{IPANX}\neq\undef \\ \attr{IED}+\attr{IPCL} & \text{else if}\quad \attr{IPCL}\neq\undef \\ \undef & \text{else} \end{cases} \\ T &= s-\attr{PRCL} \\ s &= \begin{cases} \attr{IED}+\attr{PRCL} & \text{if} \quad \attr{PRANX} = \undef \\ \attr{PRANX} & \text{else} \end{cases} \end{aligned}$} \\ \hline IPCI & & Same as PAM \\ \hline IPCB & & Same as LAM \\ \hline RR & & Same as PAM \\ \hline RRF & & Same as PAM \\ \hline SC & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: nam states ---------------------- \begin{states}{NAM} $\svar{Md}{}$ & $\svar{Md}{t_0}=\begin{cases} \attr{MD} & \text{if}\quad \attr{MD}\neq\undef\\ t^-+n\attr{PRCL} & \text{else} \end{cases}$ \par with $n=ceil(\frac{\attr{NT}}{\attr{PRNXT}-\attr{NT}\yfr{t^-}{t^-+\attr{PRCL}}\attr{IPNR}})$ & where\par $t^- = \begin{cases} \attr{PRANX} & \text{if}\quad \attr{PRANX}\neq\undef \land \attr{PRANX}\geq t_0 \\ \attr{IED}+\attr{PRCL} & \text{else if}\quad \attr{IED}+\attr{PRCL}\geq t_0 \\ \sup t \in t^{PR}\mid tt_0 \end{aligned}$} \\ \hline MD & \pof{MD}{PAM} & \stf{MD}{LAM} \\ \hline PP & \pof{PP}{PAM} & \stf{PP}{LAM} \\ \hline PY & \pof{PY}{PAM} & \stf{PY}{LAM} \\ \hline FP & \pof{FP}{PAM} & \stf{FP}{LAM} \\ \hline PRD & \pof{PRD}{LAM} & \stf{PRD}{LAM} \\ \hline TD & \pof{TD}{LAM} & \stf{TD}{PAM} \\ \hline IP & \pof{IP}{LAM} & \stf{IP}{PAM} \\ \hline IPCI & \pof{IPCI}{PAM} & \stf{IPCI}{LAM} \\ \hline IPCB & \pof{IPCB}{LAM} & \stf{IPCB}{LAM} \\ \hline RR & \pof{RR}{PAM} & \stf{RR}{LAM} \\ \hline RRF & \pof{RRF}{PAM} & \stf{RRF}{LAM} \\ \hline SC & \pof{SC}{PAM} & \stf{SC}{LAM} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: ann %%%%%%%%%%%%%%%%%%%% \subsection{ANN: Annuity}\label{sec:ann} % ---------------------- table: ann schedule ---------------------- \begin{schedule}{ANN} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & & Same as LAM \\ \hline MD & & Same as PAM \\ \hline PP & & Same as PAM \\ \hline PY & & Same as PAM \\ \hline FP & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline IP & & Same as NAM \\ \hline IPCI & & Same as PAM \\ \hline IPCB & & Same as LAM \\ \hline RR & & Same as PAM \\ \hline RRF & & Same as PAM \\ \hline SC & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: ann states ---------------------- \begin{states}{ANN} $\svar{Md}{}$ & & Same as NAM \\ \hline $\svar{Nt}{}$ & & Same as PAM \\ \hline $\svar{Ipnr}{}$ & & Same as PAM \\ \hline $\svar{Ipac}{}$ & & Same as PAM \\ \hline $\svar{Feac}{}$ & & Same as PAM \\ \hline $\svar{Nsc}{}$ & & Same as PAM \\ \hline $\svar{Isc}{}$ & & Same as PAM \\ \hline $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \hline $\svar{Prnxt}{}$ & $\svar{Prnxt}{t_0} = \begin{cases} \sgn\attr{PRNXT} & \text{if}\quad \attr{PRNXT}\neq\undef \\ (\attr{NT}+\svar{Ipac}{t_0})\frac{todo}{todo} & \text{else} \end{cases}$ & where $n=|\vec{t}|$ with $|a|$ indicating the cardinality of set $a$ \\ \hline $\svar{Ipcb}{}$ & & Same as LAM \\ \end{states} % ---------------------- table: ann functions ---------------------- \begin{functions}{ANN} AD & \pof{AD}{PAM} & \stf{AD}{PAM} \\ \hline IED & \pof{IED}{PAM} & \stf{IED}{LAM} \\ \hline PR & \pof{PR}{NAM} & \stf{PR}{NAM} \\ \hline MD & \pof{MD}{PAM} & \stf{MD}{LAM} \\ \hline PP & \pof{PP}{PAM} & \stf{PP}{LAM} \\ \hline PY & \pof{PY}{PAM} & \stf{PY}{LAM} \\ \hline FP & \pof{FP}{PAM} & \stf{FP}{LAM} \\ \hline PRD & \pof{PRD}{LAM} & \stf{PRD}{LAM} \\ \hline TD & \pof{TD}{LAM} & \stf{TD}{PAM} \\ \hline IP & \pof{IP}{LAM} & \stf{IP}{PAM} \\ \hline IPCI & \pof{IPCI}{PAM} & \stf{IPCI}{LAM} \\ \hline IPCB & \pof{IPCB}{LAM} & \stf{IPCB}{LAM} \\ \hline RR & \pof{RR}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \min(\max(\svar{Ipnr}{t^-}+\Delta r,\attr{RRLF}),\attr{RRLC}) \\ \svar{Prnxt}{t^+} &= \ann{t}{\svar{Md}{t^+}}{\svar{Nt}{t^+}}{\svar{Ipac}{t^+}}{\svar{Ipnr}{t^+}} \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} \Delta r &= \min(\max(\obs{rf}{\attr{RRMO}}{t}\attr{RRMLT}+\attr{RRSP} - \svar{Ipnr}{t^-},\attr{RRPF}),\attr{RRPC}) \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline RRF & \pof{RRF}{PAM} & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Ipcb}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Ipnr}{t^+} &= \attr{RRNXT} \\ \svar{Prnxt}{t^+} &= \ann{t}{\svar{Md}{t^+}}{\svar{Nt}{t^+}}{\svar{Ipac}{t^+}}{\svar{Ipnr}{t^+}} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline SC & \pof{SC}{PAM} & \stf{SC}{LAM} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: clm %%%%%%%%%%%%%%%%%%%% \subsection{CLM: Call Money}\label{sec:clm} % ---------------------- table: clm schedule ---------------------- \begin{schedule}{CLM} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & & Same as PAM \\ \hline FP & & Same as PAM \\ \hline IP & $t^{IP}=\svar{Md}{t_0}$ & \\ \hline IPCI & $\vec{t}^{IPCI} = \begin{cases} \undef & \text{if}\quad \attr{IPNR}=\undef \\ \sdl{s}{\attr{IPCL}}{\svar{Md}{t_0}} & \text{else} \end{cases}$ & where\par $s=\begin{cases} \attr{IPANX} & \text{if}\quad \attr{IPANX}\neq\undef\\ \attr{IED}+\attr{IPCL} & \text{else} \end{cases}$ \\ \hline RR & & Same as PAM \\ \hline RRF & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: clm states ---------------------- \begin{states}{CLM} $\svar{Md}{}$ & $\svar{Md}{t_0} = \begin{cases} \attr{MD} & \text{if}\quad \attr{MD}\neq\undef \\ s & \text{else if}\quad \obs{ev}{\attr{CID}}{t_0}\neq\{\} \\ \tmax & \text{else} \end{cases}$ & where\par $s=\sup t\in\tev{\obs{ev}{\attr{CID}}{t_0}}$ \\ \hline $\svar{Nt}{}$ & & Same as PAM \\ \hline $\svar{Ipnr}{}$ & & Same as PAM \\ \hline $\svar{Ipac}{}$ & & Same as PAM \\ \hline $\svar{Feac}{}$ & & Same as PAM \\ \hline $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: clm functions ---------------------- \begin{functions}{CLM} AD & \pof{AD}{PAM} & \stf{AD}{PAM} \\ \hline IED & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (-1)\attr{NT}$ & \stf{IED}{PAM} \\ \hline PR & \pof{PR}{PAM} & \stf{PR}{PAM} \\ \hline FP & \pof{FP}{PAM} & \stf{FP}{PAM} \\ \hline IP & $X_{\attr{CUR}}^{\attr{CURS}}(t)(\svar{Ipac}{t^-}+\yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-})$ & {$\begin{aligned} \svar{Ipac}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline IPCI & \pof{IPCI}{PAM} & \stf{IPCI}{PAM} \\ \hline RR & \pof{RR}{PAM} & \stf{RR}{PAM} \\ \hline RRF & \pof{RRF}{PAM} & \stf{RRF}{PAM} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: ump %%%%%%%%%%%%%%%%%%%% \subsection{UMP: Undefined Maturity Profile}\label{sec:ump} % ---------------------- table: ump schedule ---------------------- \begin{schedule}{UMP} AD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & $\vec{t}^{PR}=\obs{ev}{\attr{CID},i}{t_0}$ & with $i\in\{\attr{PR},\attr{PI}\}$\\ \hline FP & & Same as PAM \\ \hline IPCI & $\vec{t}^{IPCI} = \begin{cases} \undef & \text{if}\quad \attr{IPNR}=\undef \\ \sdl{s}{\attr{IPCL}}{\svar{Md}{t_0}} & \text{else} \end{cases}$ & where\par $s=\begin{cases} \attr{IPANX} & \text{if}\quad \attr{IPANX}\neq\undef\\ \attr{IED}+\attr{IPCL} & \text{else} \end{cases}$ \\ \hline RR & & Same as PAM \\ \hline RRF & & Same as PAM \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: ump states ---------------------- \begin{states}{UMP} $\svar{Md}{}$ & $\svar{Md}{t_0} = \begin{cases} s & \text{if}\quad \obs{ev}{\attr{CID}}{t_0}\neq\{\} \\ \tmax & \text{else} \end{cases}$ & where\par $s=\sup t, t\in\tev{\obs{ev}{\attr{CID},i}{t_0}}$\par $i\in\{\attr{PR},\attr{PI}\}$ \\ \hline $\svar{Nt}{}$ & & Same as PAM \\ \hline $\svar{Ipnr}{}$ & & Same as PAM \\ \hline $\svar{Ipac}{}$ & & Same as PAM \\ \hline $\svar{Feac}{}$ & & Same as PAM \\ \hline $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: ump functions ---------------------- \begin{functions}{UMP} AD & \pof{AD}{PAM} & \stf{AD}{PAM} \\ \hline IED & \pof{IED}{CLM} & \stf{IED}{PAM} \\ \hline PR & $\fev{e_t^{PR}}$ & {$\begin{aligned} \svar{Ipac}{t^+} &= \svar{Ipac}{t^-}+\yfr{\svar{Sd}{t^-}}{t}\svar{Ipnr}{t^-}\svar{Nt}{t^-} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^-}{t}}{\yfr{t^-}{t^+}}\attr{FER} & \text{else} \end{cases} \\ \svar{Nt}{t^+} &= \svar{Nt}{t^-}-\fev{e_t^{PR}} \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline FP & \pof{FP}{PAM} & \stf{FP}{PAM} \\ \hline IPCI & \pof{IPCI}{PAM} & \stf{IPCI}{PAM} \\ \hline RR & \pof{RR}{PAM} & \stf{RR}{PAM} \\ \hline RRF & \pof{RRF}{PAM} & \stf{RRF}{PAM} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{PAM} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: csh %%%%%%%%%%%%%%%%%%%% \subsection{CSH: Cash}\label{sec:csh} % ---------------------- table: csh schedule ---------------------- \begin{schedule}{CSH} AD & & Same as PAM \\ \end{schedule} % ---------------------- table: csh states ---------------------- \begin{states}{CSH} $\svar{Nt}{}$ & $\svar{Nt}{t_0}=\sgn\attr{NT}$ & \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: csh functions ---------------------- \begin{functions}{CSH} AD & \pof{AD}{PAM} & $\svar{Sd}{t^+}=t$ \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: stk %%%%%%%%%%%%%%%%%%%% \subsection{STK: Stock}\label{sec:stk} % ---------------------- table: stk schedule ---------------------- \begin{schedule}{STK} AD & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline DV$^{(fix)}$ & $t^{DV^{(fix)}} = \begin{cases} \undef & \text{if}\quad \attr{DVNP}=\undef \\ \attr{DVANX} & \text{else} \end{cases}$ & \\ \hline DV & $\vec{t}^{DV} = \begin{cases} \undef & \text{if}\quad \attr{DVANX}=\undef \land \attr{DVCL}=\undef \\ \sdl{s}{\attr{DVCL}}{\tmax} & \text{else} \end{cases}$ & where\par $s=\begin{cases} \attr{DVANX} & \text{if}\quad \attr{DVNP}=\undef \\ \attr{DVANX}+\attr{DVCL} & \text{else} \end{cases}$ \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: stk states ---------------------- \begin{states}{STK} $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: stk functions ---------------------- \begin{functions}{STK} AD & \pof{AD}{PAM} & $\svar{Sd}{t^+}=t$ \\ \hline PRD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (-1) \attr{PPRD}$ & $\svar{Sd}{t^+}=t$ \\ \hline TD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn \attr{PTD}$ & $\svar{Sd}{t^+}=t$ \\ \hline DV$^{(fix)}$ & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn\attr{DVNP}$ & $\svar{Sd}{t^+}=t$ \\ \hline DV & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn \obs{rf}{concat(\text{\attr{CID},"-DV"})}{t}$ \par with $concat(x,y,z)$ indicates the string concatenation function & $\svar{Sd}{t^+}=t$ \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{STK} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: com %%%%%%%%%%%%%%%%%%%% \subsection{COM: Commodity}\label{sec:com} % ---------------------- table: com schedule ---------------------- \begin{schedule}{COM} AD & & Same as PAM \\ \hline PRD & & Same as STK \\ \hline TD & & Same as STK \\ \end{schedule} % ---------------------- table: com states ---------------------- \begin{states}{COM} $\svar{Sd}{}$ & & Same as STK \\ \end{states} % ---------------------- table: com functions ---------------------- \begin{functions}{COM} AD & \pof{AD}{PAM} & \stf{AD}{STK} \\ \hline PRD & \pof{PRD}{STK} & \stf{PRD}{STK} \\ \hline TD & \pof{PRD}{STK} & \stf{PRD}{STK} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: fxout %%%%%%%%%%%%%%%%%%%% \subsection{FXOUT: Foreign Exchange Outright}\label{sec:fxout} % ---------------------- table: fxout schedule ---------------------- \begin{schedule}{FXOUT} AD & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline STD & $t^{STD} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'D'} \\ \svar{Md}{t_0} & \text{else} \end{cases}$ & \\ \hline STD$^{(1)}$ & $t^{STD} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'S'} \\ \svar{Md}{t_0} & \text{else} \end{cases}$ & \\ \hline STD$^{(2)}$ & $t^{STD} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'S'} \\ \svar{Md}{t_0} & \text{else} \end{cases}$ & \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: fxout states ---------------------- \begin{states}{FXOUT} $\svar{Md}{}$ & $\svar{Md}{t_0} = \begin{cases} \attr{MD} & \text{if}\quad \attr{STD}=\undef\\ \attr{STD} & \text{else} \end{cases}$ & \\ \hline $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: fxout functions ---------------------- \begin{functions}{FXOUT} AD & \pof{AD}{PAM} & \stf{AD}{STK} \\ \hline PRD & \pof{PRD}{STK} & \stf{PRD}{STK} \\ \hline TD & \pof{TD}{STK} & \stf{TD}{STK} \\ \hline STD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (\attr{NT}-\obs{rf}{i}{\svar{Md}{t}}\attr{NT2})$\par where\par $i=concat(\text{\attr{CUR2},"/",\attr{CUR}})$\par and $concat(x,y,z)$ indicates the string concatenation function & $\svar{Sd}{t^+}=t$ \\ \hline STD$^{(1)}$ & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn\attr{NT}$ & $\svar{Sd}{t^+}=t$ \\ \hline STD$^{(2)}$ & $X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn (-1)\attr{NT2}$ & $\svar{Sd}{t^+}=t$ \\ \hline CE & \pof{CE}{PAM} & \stf{CD}{STK} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: swppv %%%%%%%%%%%%%%%%%%%% \subsection{SWPPV: Plain Vanilla Interest Rate Swap}\label{sec:swppv} % ---------------------- table: swppv schedule ---------------------- \begin{schedule}{SWPPV} AD & & Same as PAM \\ \hline PRD & & Same as PAM \\ \hline TD & & Same as PAM \\ \hline IED & & Same as PAM \\ \hline PR & & Same as PAM \\ \hline IP & $\vec{t}^{IP} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'D'} \\ \svar{Md}{t_0} & \text{else if} \attr{IPCL}=\undef \\ \sdl{s}{\attr{IPCL}}{\svar{Md}{t_0}} & \text{else} \end{cases}$ & where\par $s=\begin{cases} \attr{IPANX} & \text{if}\quad \attr{IPANX}\neq\undef \\ \attr{IED}+\attr{IPCL} & \text{else} \end{cases}$\\ \hline IP$^{(fix)}$ & $\vec{t}^{IP^{(fix)}} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'S'} \\ \svar{Md}{t_0} & \text{else if} \attr{IPCL}=\undef \\ \sdl{s}{\attr{IPCL}}{\svar{Md}{t_0}} & \text{else} \end{cases}$ & \\ \hline IP$^{(var)}$ & $\vec{t}^{IP^{(var)}} = \begin{cases} \undef & \text{if}\quad \attr{DS}=\text{'S'} \\ \svar{Md}{t_0} & \text{else if} \attr{IPCL}=\undef \\ \sdl{s}{\attr{IPCL}}{\svar{Md}{t_0}} & \text{else} \end{cases}$ & \\ \hline RR & $\vec{t}^{RR}=\sdl{s}{\attr{RRCL}}{\svar{Md}{t_0}}$ & where\par $s=\begin{cases} \attr{RRANX} & \text{if}\quad \attr{RRANX}\neq\undef \\ \attr{IED}+\attr{RRCL} & \text{else} \end{cases}$ \\ \hline CE & & Same as PAM \\ \end{schedule} % ---------------------- table: swppv states ---------------------- \begin{states}{SWPPV} $\svar{Md}{}$ & & Same as PAM \\ \hline $\svar{Nt}{}$ & & Same as PAM \\ \hline $\svar{Ipnr}{}$ & $\svar{Ipnr}{t_0} = \begin{cases} 0.0 & \text{if} \quad \attr{IED} > t_0 \\ \attr{IPNR2} & \text{else} \end{cases}$ & \\ \hline $\svar{Ipac}{}$ & $\svar{Ipac}{t_0} = \begin{cases} \attr{IPAC} & \text{if} \quad \attr{IPAC} \neq \undef \\ \yfr{t^-}{t_0}\svar{Nt}{t_0}(\attr{IPNR}-\svar{Ipnr}{t_0}) & \text{else} \end{cases}$ & with $t^- = \sup{t}, t \in t^{IP}, tt_0 \end{aligned}$} \\ \hline $\svar{Xd}{}$ & & Same as OPTNS \\ \hline $\svar{Xa}{}$ & & Same as OPTNS \\ \hline $\svar{Prf}{}$ & & Same as PAM \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: ceg functions ---------------------- \begin{functions}{CEG} AD & \pof{AD}{PAM} & {$\begin{aligned} \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$} \\ \hline PRD & \pof{PRD}{STK} & {$\begin{aligned} \svar{Nt}{t^+} &= \begin{cases} \svar{Nt}{t^-} & \text{if}\quad \attr{NT}\neq\undef \\ \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i & \text{else} \end{cases} \\ \svar{Feac}{t^+} &= \svar{Feac}{t_0} \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t} & \text{else} \end{cases} \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$}\par where\par $I=\attr{CTST}_{CoveredContract}^{Contract}$ \\ \hline FP & {$\begin{aligned} &X_{\attr{CUR}}^{\attr{CURS}}(t)\sgn\attr{FER} & \text{if} \quad \attr{FEB}=A \\ &X_{\attr{CUR}}^{\attr{CURS}}(t)\left(\svar{Feac}{t^-} + \svar{Nt}{t^-}\yfr{t^-}{t}\attr{FER}\right) & \text{else} \end{aligned}$} & {$\begin{aligned} \svar{Nt}{t^+} &= \begin{cases} \svar{Nt}{t^-} & \text{if}\quad \attr{NT}\neq\undef \\ \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i & \text{else} \end{cases} \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t} & \text{else} \end{cases} \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$}\par where\par $I=\attr{CTST}_{CoveredContract}^{Contract}$ \\ \hline MD & 0.0 & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$}\\ \hline XD & \pof{XD}{OPTNS} & {$\begin{aligned} \svar{Nt}{t^+} &= \begin{cases} \svar{Nt}{t^-} & \text{else if}\quad \attr{NT}\neq\undef \\ \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i & \text{else} \end{cases} \\ \svar{Feac}{t^+} &= \begin{cases} \svar{Feac}{t^-} + \yfr{\svar{Sd}{t^-}}{t}\svar{Nt}{t^-}\attr{FER} & \text{if} \quad \attr{FEB}=\text{'N'} \\ \frac{\yfr{t^{FP-}}{t}}{\yfr{t^{FP-}}{t^{FP+}}}\sgn\attr{FER} & \text{else} \end{cases} \\ \svar{Xa}{t^+} &= \attr{CECV}\svar{Nt}{t^-} \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t} & \text{else} \end{cases} \\ t^{FP-} &= \sup t \in \vec{t}^{FP}\mid tt_0 \end{aligned}$}\par where\par $I=\attr{CTST}_{CoveredContract}^{Contract}$ \\ \hline STD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\left(\svar{Xa}{t^-}+\svar{Feac}{t^-}\right)$ & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Feac}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline CE & \pof{CE}{PAM} & \stf{AD}{CEG} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% subsection: cec %%%%%%%%%%%%%%%%%%%% \subsection{CEC: Credit Enhancement Collateral}\label{sec:cec} % ---------------------- table: cec schedule ---------------------- \begin{schedule}{CEC} AD & & Same as PAM \\ \hline XD & & Same as CEG \\ \hline STD & & Same as CEG \\ \hline MD & & Same as CEG \\ \end{schedule} % ---------------------- table: cec states ---------------------- \begin{states}{CEC} $\svar{Md}{}$ & $\svar{Md}{t_0}=\begin{cases} \attr{MD} & \text{if}\quad \attr{MD}\neq\undef \\ \max(\tev{\{e_t^k\}}) & \text{else} \end{cases}$ & with\par {$\begin{aligned} \{e_t^k\} &= \{e_t^{k,1}\}\cup\{e_t^{k,2}\}\cup ...\cup\{e_t^{k,n}\} \\ \{e_t^{k,i}\} &= \cldev{\attr{CTST}_{CoveredContract}^{Contract}(i)}{t_0} \\ n &= \mid \attr{CTST}_{CoveredContract}^{Contract} \mid \end{aligned}$} \\ \hline $\svar{Nt}{}$ & $\svar{Nt}{t_0} = \begin{cases} 0.0 & \text{if}\quad t_0\geq\svar{Md}{t_0} \\ \min\left(\sum_{j=1}^{\mid J\mid} v_j, \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i\right) & \text{else} \end{cases}$ & with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t_0}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t_0}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t_0}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t_0} & \text{else} \end{cases} \\ v_j &= \obs{rf}{\cldca{J(j)}{MOC}}{t_0} \\ I &= \attr{CTST}_{CoveredContract}^{Contract} \\ J &= \attr{CTST}_{CoveringContract}^{Contract}\end{aligned}$} \\ \hline $\svar{Sd}{}$ & & Same as PAM \\ \end{states} % ---------------------- table: cec functions ---------------------- \begin{functions}{CEC} AD & \pof{AD}{PAM} & {$\begin{aligned} \svar{Nt}{t^+} &= \begin{cases} 0.0 & \text{if}\quad t\geq\svar{Md}{t_0} \\ \min\left(\sum_{j=1}^{\mid J\mid} v_j, \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i\right) & \text{else} \end{cases} \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t_0}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t_0}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t_0}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t_0} & \text{else} \end{cases} \\ v_j &= \obs{rf}{\cldca{J(j)}{MOC}}{t_0} \\ I &= \attr{CTST}_{CoveredContract}^{Contract} \\ J &= \attr{CTST}_{CoveringContract}^{Contract}\end{aligned}$} \\ \hline XD & \pof{XD}{OPTNS} & {$\begin{aligned} \svar{Nt}{t^+} &= \min\left(\sum_{j=1}^{\mid J\mid} v_j, \attr{CECV}\sum_{i=1}^{\mid I\mid} n_i\right) \\ \svar{Sd}{t^+} &= t \end{aligned}$}\par with\par {$\begin{aligned} n_i &= \begin{cases} \cldsv{I(i)}{t_0}{Nt}{} & \text{if}\quad \attr{CEGE}=NO \\ \cldsv{I(i)}{t_0}{Nt}{} & \text{else if}\quad \attr{CEGE}=NI \\ \quad + \cldsv{I(i)}{t_0}{Ipac}{} & \\ \obs{rf}{\cldca{I(i)}{MOC}}{t_0} & \text{else} \end{cases} \\ v_j &= \obs{rf}{\cldca{J(j)}{MOC}}{t_0} \\ I &= \attr{CTST}_{CoveredContract}^{Contract} \\ J &= \attr{CTST}_{CoveringContract}^{Contract}\end{aligned}$} \\ \hline STD & $X_{\attr{CUR}}^{\attr{CURS}}(t)\svar{Nt}{t^-}$ & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \hline MD & 0.0 & {$\begin{aligned} \svar{Nt}{t^+} &= 0.0 \\ \svar{Sd}{t^+} &= t \end{aligned}$} \\ \end{functions} %%%%%%%%%%%%%%%%%%%% section: bibliography %%%%%%%%%%%%%%%%%%%% \bibliography{bibliography} %%%%%%%%%%%%%%%%%%%% end doc %%%%%%%%%%%%%%%%%%%% \end{document}