1 Introduction

The cash management problem (CMP) deals with balancing what the company holds in cash and what has been placed in short-term investments. Holding cash for precautionary motives implies an opportunity cost equivalent to the missed return on alternative investments. On the other hand, companies aim to minimize transaction costs associated with movements between cash and investment accounts. As a result, the CMP can be defined as an optimization problem whose goal is to find the best sequence of transactions (policy) over a given time horizon.

The cash management problem was first addressed by Baumol (1952) in its deterministic form as an inventory control problem. Miller and Orr (1966) introduced a stochastic approach by considering a symmetric Bernoulli process and control bounds. This approach was later followed by many cash management works described in the surveys by da Costa Moraes et al. (2015) and by Salas-Molina et al. (2023). More recent works about the CMP include a multiobjective approach by Salas-Molina et al. (2018b), selecting cash management models by Salas-Molina et al. (2018c), theoretical results on cash management systems by Salas-Molina et al. (2021), and the proposal of online algorithms to minimize the maximum regret by Schroeder and Kacem (2019) and Schroeder and Kacem (2020) based on the min-max regret criterion by Savage (1951).

Similarly to the portfolio selection problem initially formulated by Markowitz (1952), the CMP can be solved from a biobjective perspective by simultaneously optimizing both the expected returns and risk of alternative policies. A critical decision in the biobjective CMP is selecting the appropriate risk measure (Salas-Molina, 2019). In addition, when dealing with two or more criteria in an optimization problem, it is essential to know the analytical form of the efficient frontier with all non-dominated objective combinations. In the portfolio selection problem, Merton (1972) provided the first analytical derivation of the efficient frontier, showing that the mathematical function that maps the variance of returns to mean returns is a parabola. Later on, Qi et al. (2017), Qi and Steuer (2020), Qi (2022), Qi (2020) and Qi and Li (2020) extended the work by Merton (1972) to account for three or more criteria in the portfolio selection problem.

In this paper, we provide an analytical derivation of the efficient frontier in the biobjective CMP and analyze its implications for cash management policies. Following Qi et al. (2017), we consider an analytical derivation as obtained by formal mathematical calculus as opposed to being computed by an optimization algorithm. The specific characteristics of the biobjective CMP introduce an additional level of complexity. For example, while the covariance matrix of returns for alternative assets in the portfolio selection problem is assumed to be known in advance, the variance of periodic returns for alternative policies in the biobjective CMP as a risk measure is not known because it depends on the solution. In this sense, the selection of a risk measure is critical in terms of its analytical properties. More precisely, we show that the selection of the variance of returns as a risk measure prevents us from obtaining an analytical derivation that is computable in practice due to the presence of non-invertible matrices in its formulation. To circumvent this problem, we propose two alternative risk measures that allow us to propose an analytical derivation of the efficient frontier with all non-dominated return and risk combinations. Both measures are based on the sum of deviations for a given reference. In one of them, this reference is set to zero. The approach to measure risk in cash management as a sum of deviations from a reference has been recently proposed by Salas-Molina et al. (2018a) and Salas-Molina (2019, 2020).

The main advantage of using an analytical derivation of the efficient frontier is the possibility of developing formal analysis on efficient policies. As a result, the main contributions of this paper are as follows:

  1. 1.

    We propose three analytical derivations of the efficient frontier in a risk-returns space using different risk measures.

  2. 2.

    We show that the variance of returns as a risk measure imposes an essential limitation in practice.

  3. 3.

    We provide theoretical results derived from formal analysis of the mathematical expression of the efficient frontier.

In addition to this introduction, in Sect. 2 we describe the steps required to obtain three analytical derivations of the efficient frontier. In Sect. 3, we provide further insights and implications derived from the analytical derivations obtained. In Sect. 4, we illustrate our main results through numerical examples. Finally, we conclude this paper in Sect. 5 highlighting future lines of research.

2 An analytic derivation of the risk-returns efficient frontier

Consider the common two assets framework in cash management shown in Fig. 1 in which account 1 is a regular cash account and account 2 is an investment account. It can be reasonably assumed that the excess in returns between accounts 2 and 1 is the holding cost of keeping idle cash in account 1. Let h be the difference in returns obtained per money unit in account 2 with respect to the returns obtained per money unit in account 1. In other words, h is excess returns obtained per money unit between accounts 2 and 1. In addition, there is a transaction cost \(\gamma \) for transferring money which is proportional to the amount transferred \(x_t\) at each time step t. Then, the CMP can be defined as an optimization problem whose goal is to find the best sequence of transactions from account 1 to account 2 denoted by \(\varvec{x} \in \mathbb {R}^n_{\ge 0}\):

$$\begin{aligned} \varvec{x} = \left[ x_1, x_2 \ldots , x_{n} \right] ^\textrm{T}, \end{aligned}$$

what is called a policy that optimizes some performance function \(f(\varvec{x})\) over a time horizon of n time steps, usually days. For simplicity, we do not impose any additional restrictions on transaction vector \(\varvec{x}\) provided that cash balances in accounts 1 and 2 are non-negative to avoid shortage costs. Cash managers may consider additional constraints such as minimum and maximum transaction values.

Fig. 1
figure 1

The common two-assets framework in which money flows from cash account 1 to investment account 2 through transaction \(x_{t}\)

Within the cash management problem for a single bank account, Constantinides and Richard (1978) pointed out the necessary condition for transferring money from account 1 to account 2. These results were later generalized to the context of multiple bank accounts by Salas-Molina et al. (2021). In words, the cost \(\gamma \) of transferring one money unit through any transaction must be smaller than the excess in returns h between the target account and the source account. These results imply that transaction \(x_t\) is recommended to go from 1 to 2 or from 2 to 1, but not in both directions except for transactions to avoid negative cash balances usually charged with high penalty costs. Note that the cash management system described in Fig. 1 is a directed graph in which all edges have a direction. Then, a non-negative transaction from account 2 to account 1 can be represented by a directed arc starting from account 2 and ending in account 1. In what follows, we use the cash management system depicted in Fig. 1 as a basic structure to derive an analytic expression of the biobjective efficient frontier.

Let us first assume that account 1 is regularly endowed with some amount of money as a cash inflow to this account, allowing cash managers to transfer money to account 2 to achieve a higher return. By constructing an n-dimensional vector \(\varvec{\mu }\in \mathbb {R}^n_{\ge 0}\) with net unitary returns derived from transferring money from account 1 to account 2:

$$\begin{aligned} \varvec{\mu } = \left[ h-\gamma , h-\gamma , \ldots , h-\gamma \right] ^T, \end{aligned}$$
(1)

we compute the global expected returns \(z_1(\varvec{x})\) of policy \(\varvec{x}\) as follows:

$$\begin{aligned} z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x} = \sum _{t=1}^{n} (h-\gamma ) x_t =\sum _{t=1}^{n} r x_t. \end{aligned}$$

Our first goal is the expected returns function \(z_1(\varvec{x})\). However, there is a need for an additional goal to consider the biobjective CMP as the simultaneous optimization of returns and risk.

2.1 Variance of returns as a risk measure

Salas-Molina et al. (2018b) proposed using the variance of daily costs to measure the risk of alternative policies. Daily costs are the opposite of daily returns, and the variance of daily costs is equal to that of daily returns. Then, our goal here is to maximize the difference between total returns as a profits measure and (one-half of) the variance of returns as a risk measure, including a risk aversion parameter \(\lambda > 0\). This parameter reflects how many units of return an investor requires to accept an increase of one unit of risk. The larger, the more conservative the investor. Given an n-dimensional vector \(\varvec{c}\) with returns \(c_t = r x_t\) for all \(t \in \{1,2, \ldots , n\}\), we can compute the variance \((\sigma ^2)\) of its elements as follows:

$$\begin{aligned} \sigma ^2 (\varvec{c}) = \mathbb {E}\left[ \varvec{c}^2\right] - \mathbb {E}^2\left[ \varvec{c}\right] . \end{aligned}$$

Then, we can compute the variance of returns as follows:

$$\begin{aligned} z_2(\varvec{x}) = \frac{1}{n} \varvec{x}^T V \varvec{x} - \frac{1}{n^2} (\varvec{\mu }^T \varvec{x})^2 \end{aligned}$$

where matrix V is a diagonal matrix with elements \(V_{ij}\) set to \(r^2\) when \(i=j\), zero otherwise. Now we consider the following objective function to maximize the difference between expected returns and one-half of the variance of returns:

$$\begin{aligned} \text {max} \varvec{\mu }^T \varvec{x} - \frac{\lambda }{2} \left( \frac{1}{n} \varvec{x}^T V \varvec{x} - \frac{1}{n^2} (\varvec{\mu }^T \varvec{x})^2 \right) . \end{aligned}$$

The derivative of a squared function of vector \(\varvec{x}\) is:

$$\begin{aligned} \frac{\partial }{\partial \varvec{x}}(\varvec{\mu }^T \varvec{x})^2 = 2 (\varvec{\mu }^T \varvec{x}) \frac{\partial }{\partial x} (\varvec{\mu }^T \varvec{x}) = 2 (\varvec{\mu }^T \varvec{x})\varvec{\mu }. \end{aligned}$$

Then, by setting the derivative of the objective function to zero, we obtain the following expression:

$$\begin{aligned} \varvec{\mu } = \frac{ \lambda }{n} V \varvec{x} - \frac{ \lambda }{n^2} \varvec{\mu }^T \varvec{x} \varvec{\mu } \end{aligned}$$

where recall that V is a diagonal matrix.

From the definition of vectors \(\varvec{x}\) and \(\varvec{\mu }\), we rewrite the previous expression as follows:

$$\begin{aligned} \varvec{\mu } = \frac{ \lambda }{n} V \varvec{x} - \frac{ \lambda }{n^2} W \varvec{x} \end{aligned}$$
(2)

where W is an \(n \times n\) matrix with all elements set to \(r^2\). Then, optimal policy \(\varvec{x}\) has the following form in which we maintain notation \(\varvec{x}\) instead of the more appropriate \(\varvec{x}^*\) for ease of notation:

$$\begin{aligned} \varvec{x} = \frac{n^2}{\lambda } \left( n V - W \right) ^{-1}\varvec{\mu } = \frac{n^2}{\lambda } A^{-1}\varvec{\mu }. \end{aligned}$$
(3)

Premultiplying Eq. (3) by \(\varvec{\mu }^T\), we obtain \( z_1(\varvec{x})\) as a function of \(\lambda \):

$$\begin{aligned} z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x} = \frac{n^2}{\lambda } \varvec{\mu }^T A^{-1}\varvec{\mu } = a_1 \lambda ^{-1} \end{aligned}$$

where \(a_1=n^2\varvec{\mu }^T A^{-1}\varvec{\mu }\) allows us to simplify notation in the rest of the paper.

Premultiplying Eq. (2) by \(\varvec{x}^T\), we obtain the relation between \( z_1(\varvec{x})\) and \(z_2(\varvec{x})\) when policy \(\varvec{x}\) is optimal:

$$\begin{aligned}&\varvec{x}^T \varvec{\mu } = \frac{\lambda }{n} \varvec{x}^T V \varvec{x} - \frac{\lambda }{n^2} \varvec{x}^T W \varvec{x} = \frac{\lambda }{n} \varvec{x}^T V \varvec{x} - \frac{\lambda }{n^2} \varvec{x}^T \varvec{\mu }^T \varvec{x} \varvec{\mu }\nonumber \\&z_1(\varvec{x}) = \frac{\lambda }{n} \varvec{x}^T V \varvec{x} - \frac{\lambda }{n^2} (\varvec{\mu }^T \varvec{x})^2 = \lambda z_2(\varvec{x})\nonumber \\&z_2(\varvec{x}) = \lambda ^{-1} z_1(\varvec{x}) = \frac{z_1^2(\varvec{x})}{a_1}. \end{aligned}$$
(4)

A necessary condition for deriving the analytical expression of risk in terms of returns in practice is that matrix A is invertible. By observing the construction of matrix A, it is easy to prove that \(A \cdot \varvec{1} = \varvec{0}\) because the sum of \(n-1\) and \(n-1\) times \(-1\) is always zero.

$$\begin{aligned} A = n V - W = r^2 \left[ \begin{array}{rrrr} (n-1) &{} -1 &{} \ldots &{} -1 \\ -1 &{} (n-1) &{} \ldots &{} -1 \\ \vdots &{} \vdots &{} \ldots &{} \vdots \\ -1 &{} -1 &{} \ldots &{} (n-1)\\ \end{array} \right] . \end{aligned}$$
(5)

As a result, matrix A is non-invertible and the analytic efficient frontier using the variance of returns as a risk measure is not computable in practice. Even though an optimization algorithm can compute it, there is a need to find alternative risk measures that do not impose this limitation, as we next propose.

2.2 Sum of squared returns as a risk measure

In this case, we measure risk as the sum of squared returns using the following expression:

$$\begin{aligned} z_2(\varvec{x}) = \frac{1}{2} \varvec{x}^T V \varvec{x} = \frac{r^2}{2} \sum _{t=1}^{n} x_t^2. \end{aligned}$$

Our goal now is to maximize \( z_1(\varvec{x}) - \lambda z_2(\varvec{x})\), where \(\lambda >0\) is again a risk aversion parameter:

$$\begin{aligned} \text {max} \varvec{\mu }^T \varvec{x} - \frac{\lambda }{2} \varvec{x}^T V \varvec{x}. \end{aligned}$$
(6)

Deriving this expression with respect to \(\varvec{x}\), we obtain the first-order condition for an optimal policy:

$$\begin{aligned} \varvec{\mu } = \lambda V \varvec{x} \end{aligned}$$
(7)

and the optimal policy has the following form:

$$\begin{aligned} \varvec{x} = (\lambda V)^{-1} \varvec{\mu }. \end{aligned}$$
(8)

Premultiplying Eq. (8) by \(\varvec{\mu }^T \), we obtain the expression of \(z_1(\varvec{x})\) and the inverse of \(\lambda \):

$$\begin{aligned} z_1(\varvec{x})&= \varvec{\mu }^T \varvec{x} = \lambda ^{-1} (\varvec{\mu }^T V^{-1} \varvec{\mu })\nonumber \\ \lambda ^{-1}&= z_1(\varvec{x}) (\varvec{\mu }^T V^{-1} \varvec{\mu })^{-1} = a_2 z_1(\varvec{x}) \end{aligned}$$
(9)

where \(a_2=(\varvec{\mu }^T V^{-1} \varvec{\mu })^{-1}\) allows us to simplify notation.

Premultiplying Eq. (7) by \(\varvec{x}^T/2\), we derive the efficient frontier that maps optimal return \(z_1(\varvec{x})\) to optimal risk \(z_2(\varvec{x})\):

$$\begin{aligned}&\frac{1}{2} \varvec{x}^T \varvec{\mu } = \frac{\lambda }{2} \varvec{x}^T V \varvec{x}\nonumber \\&z_1(\varvec{x}) = 2\lambda z_2(\varvec{x}). \end{aligned}$$
(10)

Finally, introducing Eq. (9) in Eq. (10), we derive the efficient frontier that maps optimal expected returns \(z_1(\varvec{x})\) to optimal risk \(z_2(\varvec{x})\):

$$\begin{aligned} z_2(\varvec{x}) = \frac{\lambda ^{-1}}{2} z_1(\varvec{x}) = \frac{a_2}{2} z_1^2(\varvec{x}). \end{aligned}$$
(11)

In this case, we only have to guarantee the invertibility of V. By definition, V is a diagonal matrix with positive values in its main diagonal and zero otherwise. Matrix V is positive definite, and then invertible, because for any vector \(\varvec{v} \ne \varvec{0}\), we have that \(\varvec{v}^T V \varvec{v}>0\). Indeed, the inverse of diagonal matrix V equals a diagonal matrix with the elements of the main diagonal set to \(1/r^2\).

Equation (11) shows that the form of the efficient frontier using the sum of squared returns is a parabola. However, it is usual in the literature of portfolio selection to represent this frontier in a risk-returns space in which risk is measured by the horizontal axis and the vertical axis represents expected returns. To this end, we need to express \(z_1(\varvec{x})\) as a function of \(z_2(\varvec{x})\):

$$\begin{aligned} z_1(\varvec{x}) = \sqrt{\frac{2 z_2(\varvec{x})}{a_2}}. \end{aligned}$$
(12)

For illustrative purposes, in Fig. 2, we represent the case \(z_1(\varvec{x})=\sqrt{z_2(\varvec{x})}\) and observe that a diminishing rate of returns can be obtained by increasing risk as it is also usual in portfolio selection.

Fig. 2
figure 2

The efficient frontier in the risk-returns space using the sum of squared deviations of returns as a risk measure

2.3 Sum of squared deviations of returns for a given reference as a risk measure

Cash managers may be interested in setting a return reference to minimize the sum of squared deviations. Let us denote \(\varvec{p}\) as an n-dimensional vector with all elements set to p as a percentage of the returns r established as a reference for optimization purposes. Then, we define the following risk measure:

$$\begin{aligned} z_2(\varvec{x}) = \frac{1}{2}\sum _{t=1}^{n} (r x_t- r p)^2 = \frac{1}{2}\sum _{t=1}^{n} r^2(x_t- p)^2 =\frac{1}{2}(\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p}) \end{aligned}$$

where recall that V is a diagonal matrix with diagonal entries set to \(r^2\), zero otherwise. By minimizing the sum of deviations around a given reference, the goal is to smooth returns. Then, we aim to maximize the following objective function:

$$\begin{aligned} \text {max} \varvec{\mu }^T \varvec{x} -\frac{\lambda }{2} (\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p}) \end{aligned}$$

where \(\lambda \) is a non-negative risk aversion parameter. Deriving with respect to \(\varvec{x}\), we obtain the first-order condition for an optimal policy:

$$\begin{aligned} \varvec{\mu } = \lambda V (\varvec{x} -\varvec{p}) = \lambda V \varvec{x} -\lambda V \varvec{p}. \end{aligned}$$
(13)

The form of the optimal policy is as follows:

$$\begin{aligned} \varvec{x} = (\lambda V)^{-1} (\varvec{\mu }+\lambda V \varvec{p}). \end{aligned}$$
(14)

Premultiplying Eq. (14) by \(\varvec{\mu }^T\), we obtain the expression of \(z_1(\varvec{x})\) and the inverse of \(\lambda \):

$$\begin{aligned} z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x} = \lambda ^{-1} \varvec{\mu }^T V^{-1} \varvec{\mu } + \varvec{\mu }^T \varvec{p} = \lambda ^{-1}a_3+b \end{aligned}$$
(15)

where \(a_3=\varvec{\mu }^T V^{-1} \varvec{\mu }\) and \(b=\varvec{\mu }^T \varvec{p}\) allow us to simplify notation. Then, it follows that:

$$\begin{aligned} \lambda ^{-1} = \frac{z_1(\varvec{x}) -b}{a_3}. \end{aligned}$$
(16)

Premultiplying Eq. (13) by \((\varvec{x}-\varvec{p})^T/2\), we obtain the expression of \(z_2(\varvec{x})\):

$$\begin{aligned}&\frac{1}{2}(\varvec{x} -\varvec{p})^T \varvec{\mu } = \frac{\lambda }{2}(\varvec{x} -\varvec{p})^T V (\varvec{x} -\varvec{p}) = \lambda z_2(\varvec{x})\\&\frac{1}{2}\varvec{x}^T \varvec{\mu } - \frac{1}{2}\varvec{p}^T \varvec{\mu }= \frac{\lambda }{2}(\varvec{x} -\varvec{p})^T V (\varvec{x} -\varvec{p}) = \lambda z_2(\varvec{x}). \end{aligned}$$

Rearranging the terms and using the expression of \(\lambda ^{-1}\) in Eq. (16), we finally derive the efficient frontier that maps optimal expected returns \(z_1(\varvec{x})\) to optimal risk \(z_2(\varvec{x})\):

$$\begin{aligned} z_2(\varvec{x}) = \frac{1}{2}\lambda ^{-1}(z_1(\varvec{x}) - b)= \frac{(z_1(\varvec{x}) - b)^2}{2a_3}. \end{aligned}$$
(17)

Again, the inverse of diagonal matrix V is equal to a diagonal matrix with the elements of the main diagonal set to \(1/r^2\). As a result, the analytical derivation of the efficient frontier using the sum of squared deviations of returns as a risk measure described in Eq. (17) has the form of a parabola. However, to represent this frontier in the risk-returns space, we need to reorganize its terms as follows:

$$\begin{aligned} z_1(\varvec{x}) = \sqrt{2 z_2(\varvec{x}) a_3} + b. \end{aligned}$$
(18)

For illustrative purposes, Fig. 3 shows the efficient frontier for the case \(z_1(\varvec{x})=\sqrt{z_2(\varvec{x})}+0.5\) derived from the use of the sum of squared deviations of returns as a risk measure. By comparing frontiers in Figs. 2 and 3, one may have the impression that setting a reference implies an increase in efficiency. However, we must warn against this impression. At least in theory, every cash manager can set a reference of returns to follow as a target. The higher the reference, the larger the returns, even when the rate of returns remains unaltered. This reasoning fails in practice when the endowment due to cash inflows is limited. However, the analytical derivation using the sum of squared deviations of returns as a risk measure is accurate from a theoretical perspective.

Fig. 3
figure 3

The efficient frontier in the risk-returns space

3 Insights and implications

In this section, we elaborate on the insights and implications derived from the particular form of the biobjective efficient frontier with all non-dominated return and risk combinations.

3.1 The selection of the risk measure is critical

As expected, the selection of the risk measure results in a different form of the efficient frontier. However, similar results are obtained when these measures have points in common as in the case of the three different risk measures considered in this paper. From this analysis, we elaborate on the necessary condition that any risk measure must satisfy to obtain an analytic derivation of the efficient frontier.

  1. 1.

    Let us assume that we aim to maximize the following objective function

    $$\begin{aligned} \text {max} z_1(\varvec{x})-\lambda z_2(\varvec{x}) \end{aligned}$$

    where \(z_1(\varvec{x})\) is a general return measure and \(z_2(\varvec{x})\) is a general risk measure.

  2. 2.

    Provided that \(z_1(\varvec{x})\) and \(z_2(\varvec{x})\) are differentiable and non-null, the first-order condition for an optimal policy is:

    $$\begin{aligned} \lambda = \frac{d z_1(\varvec{x})/d \varvec{x} }{d z_2(\varvec{x})/d \varvec{x}}. \end{aligned}$$
  3. 3.

    Then, a necessary condition to obtain an analytical derivation is that the inverse of \(d z_2(\varvec{x})/d \varvec{x}\) exists. In other words, that optimal policy \(\varvec{x}\) can be expressed in terms of a non-singular matrix.

The main implication derived from the previous reasoning is that not all risk measures are suitable to compute an analytical derivation of the efficient frontier in practice. Indeed, the variance of returns as a risk measure presents the inconvenience of not being computable in practice due to the presence of a singular matrix in the expression of optimal policy \(\varvec{x}\). This fact implies that we must find alternative risk measures that lead to an analytical derivation that is computable in practice such as the sum of squared returns and the sum of squared deviations for a given return reference.

3.2 Efficient policies

By focusing on the form of the analytical derivations described in Sect. 2.2 for the case of the sum of squared returns as a risk measure (Case 2), and in Sect. 2.3 for the case of the sum of squared deviations around a reference as a risk measure (Case 3), we develop the following theoretical results.

Theorem 1

Given \(z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x}\) as a return measure and \(z_2(\varvec{x}) = \frac{1}{2} \varvec{x}^T V \varvec{x}\) as a risk measure, the efficient policy of minimum risk is no transaction.

Proof

It follows directly from objective function (6) by setting \(\varvec{x}\) to zero (no transaction) that results in minimum risk as graphically shown in Fig. 2. \(\square \)

Theorem 2

Let \(z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x}\) be a return measure. Given \(z_2(\varvec{x}) = \frac{1}{2} \varvec{x}^T V \varvec{x}\) and \(z_2^\prime (\varvec{x}) = \frac{1}{2}(\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p})\) as two alternative risk measures, the returns in the efficient frontier are proportional to the square root of risk, being the constant of proportionality equal to \(\sqrt{2n}\), where n is the planning horizon.

Proof

Note first that \(a_3 = 1/a_2\) and consider the elements of vector \(\varvec{\mu }\) from definition in Eq. (1), and matrix V from expression (5), we compute the value of \(a_3\) and \(1/a_2\):

$$\begin{aligned} a_3 = \frac{1}{a_2} = \varvec{\mu }^T V^{-1} \varvec{\mu } = n \end{aligned}$$
(19)

because the inverse of diagonal matrix V is equal to a diagonal matrix with the elements of the main diagonal set to \(1/r^2\):

$$\begin{aligned} a_3 = \left[ r r \ldots r \right] \left[ \begin{array}{rrrr} \frac{1}{r^2} &{} 0 &{} \ldots &{} 0 \\ 0 &{} \frac{1}{r^2} &{} \ldots &{} 0 \\ \vdots &{} \vdots &{} \ldots &{} \vdots \\ 0 &{} 0 &{} \ldots &{} \frac{1}{r^2}\\ \end{array} \right] \left[ \begin{array}{r} r \\ r \\ \vdots \\ r \end{array} \right] = n. \end{aligned}$$

Replacing \(a_2\) and \(a_3\) with their respective values, Eqs. (12) and (18) become:

$$\begin{aligned} z_1(\varvec{x})&= \sqrt{\frac{2 z_2(\varvec{x})}{a_2}} = \sqrt{2n z_2(\varvec{x})} \end{aligned}$$
(20)
$$\begin{aligned} z_1(\varvec{x})&= \sqrt{2 z_2^\prime (\varvec{x}) a_3} + b = \sqrt{2n z_2^\prime (\varvec{x})} + b. \end{aligned}$$
(21)

\(\square \)

The previous theorem leads to the next corollary:

Corollary 1

Let \(z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x}\) be a return measure. Given \(z_2(\varvec{x}) = \frac{1}{2} \varvec{x}^T V \varvec{x}\) and \(z_2^\prime (\varvec{x}) = \frac{1}{2}(\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p})\) as two alternative risk measures, the efficient frontier in Eq. (20) for the first risk measure is equal to the efficient frontier in Eq. (21) for the second risk measure when \(b=0\), that is when the reference vector \(\varvec{p}\) is set to zero.

Theorem 3

Let \(z_1(\varvec{x}) = \varvec{\mu }^T \varvec{x}\) and \(z_2(\varvec{x}) = \frac{1}{2}(\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p})\) be return and risk measures, respectively. Then, the policy of minimum risk and returns is point \((0, p \cdot r \cdot n)\).

Proof

It follows directly from the definition of b in Eq. (15):

$$\begin{aligned} b = \varvec{\mu }^T \varvec{p} = \sum _{i=1}^n p \cdot r = p \cdot r \cdot n. \end{aligned}$$
(22)

\(\square \)

3.3 The returns vs the cost perspective

Instead of a returns reference, cash managers may be interested in setting a cost reference to minimize the sum of squared deviations. A straightforward representation of costs is the negative of expected returns. This representation leads us to the following theoretical result.

Theorem 4

The efficient frontier from the cost perspective is a shifted version of the efficient frontier from the returns perspective. The shift equals 2b in the expected returns (cost) axis.

Proof

Setting \(z_1(\varvec{x})=-\varvec{\mu }^T \varvec{x}\), we aim to maximize the following objective function:

$$\begin{aligned} \text {max} -\varvec{\mu }^T \varvec{x} -\frac{\lambda }{2} (\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p}). \end{aligned}$$

The risk measure remains unaltered because the sum of squared deviations for a given cost (negative of returns) reference equals the sum of squared deviations for a return reference. Deriving with respect to \(\varvec{x}\), we obtain the first-order condition for an optimal policy:

$$\begin{aligned} \varvec{\mu } = - \lambda V (\varvec{x} -\varvec{p}) = \lambda V \varvec{p} -\lambda V \varvec{x}. \end{aligned}$$
(23)

The form of the optimal policy is as follows:

$$\begin{aligned} \varvec{x} = (\lambda V)^{-1} (\lambda V \varvec{p}-\varvec{\mu }). \end{aligned}$$
(24)

Premultiplying Eq. (24) by \(-\varvec{\mu }^T\), we obtain the expression of \(z_1(\varvec{x})\) and the inverse of \(\lambda \):

$$\begin{aligned}&z_1(\varvec{x}) = -\varvec{\mu }^T \varvec{x} = \lambda ^{-1} \varvec{\mu }^T V^{-1} \varvec{\mu } - \varvec{\mu }^T \varvec{p} = \lambda ^{-1}a_3 -b\nonumber \\&\lambda ^{-1} = \frac{z_1(\varvec{x})+b}{a_3}. \end{aligned}$$
(25)

Premultiplying Eq. (23) by \((\varvec{x}-\varvec{p})^T/2\), we obtain the expression of \(z_2(\varvec{x})\):

$$\begin{aligned}&\frac{1}{2}(\varvec{x} -\varvec{p})^T \varvec{\mu } = -\frac{\lambda }{2}(\varvec{x} -\varvec{p})^T V (\varvec{x} -\varvec{p}) = -\lambda z_2(\varvec{x})\\&-\frac{1}{2}\varvec{x}^T \varvec{\mu } + \frac{1}{2}\varvec{p}^T \varvec{\mu }= \frac{\lambda }{2}(\varvec{x} -\varvec{p})^T V (\varvec{x} -\varvec{p}) = \lambda z_2(\varvec{x}). \end{aligned}$$

Rearranging the terms and using the expression of \(\lambda ^{-1}\) in Eq. (25), we finally derive the efficient frontier that maps \(z_1(\varvec{x})\) to optimal risk \(z_2(\varvec{x})\):

$$\begin{aligned} z_2(\varvec{x}) = \frac{1}{2}\lambda ^{-1}(z_1(\varvec{x}) + b)= \frac{(z_1(\varvec{x}) + b)^2}{2a_3}. \end{aligned}$$

Because of Eq. (19), this expression reduces to:

$$\begin{aligned} z_1(\varvec{x}) = \sqrt{2a_3z_2(\varvec{x})}-b = \sqrt{2 n z_2(\varvec{x})}-b. \end{aligned}$$
(26)

Graphically, Eq. (26) is a shifted version of Eq. (12). The magnitude of displacement |D| along the \(z_1(\varvec{x})\) axis is computed by subtracting both equations

$$\begin{aligned} |D| = \sqrt{2a_3z_2(\varvec{x})}-b - (\sqrt{2a_3z_2(\varvec{x})}-b) = 2b. \end{aligned}$$

\(\square \)

From the cost perspective, the goal is minimizing cost and risk.

Corollary 2

Let \(z_1(\varvec{x}) = -\varvec{\mu }^T \varvec{x}\) and \(z_2(\varvec{x}) = \frac{1}{2}(\varvec{x}-\varvec{p})^T V (\varvec{x}-\varvec{p})\) be cost and risk measures, respectively. Then, there is a policy whose cost is zero when the risk is \(z_2(\varvec{x}) = b^2/2n\).

Proof

It follows directly from setting \(z_1(\varvec{x})=0\) in Eq. (26). \(\square \)

4 Numerical examples

In this section, we illustrate with numerical examples the main contributions of this paper. From a particular case of return r and planning horizon n, we obtain the three analytical derivations of the efficient frontier as a function of expected returns \(z_1(\varvec{x})\) expressed in terms of three different risk measures. First, we show that using the variance of returns as a risk measure prevents us from computing the analytical derivation in practice due to invertibility. Second, we obtain the analytical derivation of the efficient frontier when using the sum of squared returns and the sum of squared deviations of returns from a reference as two alternative risk measures.

Let us assume that \(r=0.001\) is the daily net expected return from transferring money from cash account 1 to investment account 2. By considering a planning horizon of \(n=5\) days, we obtain vector \(\varvec{\mu }\) and matrix A required to derive the efficient frontier when using the variance of returns as a risk measure:

$$\begin{aligned} \varvec{\mu }&= \left[ 0.001, 0.001, 0.001, 0.001, 0.001 \right] ^T\\ A&= 10^{-6} \left[ \begin{array}{rrrrr} 4 &{} -1 &{} -1 &{} -1 &{} -1 \\ -1 &{} 4 &{} -1 &{} -1 &{} -1 \\ -1 &{} -1 &{} 4 &{} -1 &{} -1 \\ -1 &{} -1 &{} -1 &{} 4 &{} -1 \\ -1 &{} -1 &{} -1 &{} -1 &{} 4 \\ \end{array} \right] . \end{aligned}$$

To obtain the analytical derivation in Eq. (4), we need to obtain the inverse of matrix A to find parameter \(a_1\). However, matrix A is singular because the sum of 4 and 4 times \(-1\) is always zero, hence \(A \cdot \varvec{1} = \varvec{0}\). Then, matrix A is not computable and we cannot obtain the analytical derivation using the variance of returns as a risk measure.

To obtain the analytical derivation in Eq. (12) using the sum squared of returns as a risk measure, we need to obtain matrix V and \(a_2\) as follows:

$$\begin{aligned} V&= \left[ \begin{array}{ccccc} 10^{-6} &{} 0 &{} 0 &{} 0 &{} 0 \\ 0 &{} 10^{-6} &{} 0 &{} 0 &{} 0 \\ 0 &{} 0 &{} 10^{-6} &{} 0 &{} 0 \\ 0 &{} 0 &{} 0 &{} 10^{-6} &{} 0 \\ 0 &{} 0 &{} 0 &{} 0 &{} 10^{-6} \\ \end{array} \right] \\ a_2&= (\varvec{\mu }^T V^{-1} \varvec{\mu })^{-1} = 0.2. \end{aligned}$$

As a result, the analytical derivation of the efficient frontier using the sum squared of returns as a risk measure is the following:

$$\begin{aligned} z_1(\varvec{x}) = \sqrt{10 z_2(\varvec{x})}. \end{aligned}$$

Finally, to obtain the analytical derivation in Eq. (18) using the sum squared deviations for a given reference of returns p set, for instance, to 10 times the return r as a risk measure, we need to obtain parameters \(a_3\) and b as follows:

$$\begin{aligned} \varvec{p}&= \left[ 0.01, 0.01, 0.01, 0.01, 0.01 \right] ^T\\ a_3&= 1/a_2 = 5\\ b&= \varvec{\mu }^T \varvec{p} = 0.00005. \end{aligned}$$

As a result, the analytical derivation of the efficient frontier using the sum of squared deviations for a given reference is the following:

$$\begin{aligned} z_1(\varvec{x}) = \sqrt{10 z_2(\varvec{x})}+0.00005. \end{aligned}$$

After determining the analytical derivations for the sum of squared returns and the sum of squared deviations in our numerical example, we find that the difference between them is slight according to Eq. (22) (\(b=p \cdot r\cdot n\)) and the particular values used in this example. Larger values for reference p, return r, and planning horizon n would lead to more prominent differences between the two analytical derivations.

5 Concluding remarks

An analytical derivation of the efficient frontier in cash management from a biobjective perspective implies the possibility of obtaining several theoretical insights. We focus on a biobjective space and leave the consideration of more than two objectives for further research. In this paper, we show that any analytical derivation depends on the definition of the return and risk measures. We also show that some standard risk measures, such as the variance of returns, impose an important limitation in practice. Although an analytical expression can be derived, it cannot be computed in practice due to the impossibility of inverting the matrix required in this analytical derivation. As a result, our first conclusion is that the selection of both the return and risk measures are critical aspects in deriving an analytical expression.

Along the lines of the previous remark, finding alternative measures of desired objectives that may lead to other efficient frontier forms is an interesting future line of research. In addition, this paper paves the way to deriving further theoretical results by focusing on the conditions for alternative objective measures that allow an analytical expression of the efficient frontier.

An additional advantage of using an analytical derivation of the efficient frontier is the possibility of developing formal analysis on efficient policies. In this paper, we use the analytical derivation to present novel theoretical results on (a) minimum risk policies (Theorem 1); (b) the relationship established between returns in the efficient frontier and the planning horizon (Theorems 2 and 3); and (c) the comparison between the returns perspective and the cost perspective. Finally, obtaining further insights from using the analytical derivation for other risk measures represents an interesting future line of research.