1 Introduction

Portfolio selection aims at choosing the proportions of various securities to make the portfolio better than any other ones according to some criteria. These criteria will combine the considerations of expected value and risk of the portfolio. Markowitz (1952) proposed the well-known mean–variance model by maximizing the expected return for a given risk or minimizing the risk for a given expected return. After Markowitz, variance is widely accepted as a risk measure, and most of the research is devoted to the extensions of mean–variance model. A typical extension is Konno and Yamazaki (1991), which employed absolute deviation to measure the risk of the portfolio return and formulated a mean–absolute deviation model. This model can cope with large-scale portfolio selection because it can remove most of the difficulties associated with the classical Markowitz’s model while maintaining its advantages. When all the returns are normally distributed random variables, the authors showed that the mean–absolute deviation model gave essentially the same results as the mean–variance model. One of the commonly used downside risk measures is semi-variance originally introduced in Markowitz (1959). Another one is semiabsolute deviation proposed by Speranza (1993), which can be easily evaluated since it could be determined using linear programming models.

In Markowitz’s theoretical framework, an implicit assumption is that future returns of securities can be correctly reflected by past performance. In other words, security returns should be represented by random variables whose characteristics such as expected value and risk may accurately be calculated based on the sample of available historical data. It keeps valid when large amounts of data are available such as in the developed financial market. However, investors often encounter the situation that there is a lack of data about security returns just like in an emerging market. In many cases, security returns are beset with ambiguity and vagueness. In particularly, when little information is available, fuzzy approaches are, in general, more appropriate. Thus, it is worthwhile to use fuzzy set theory to investigate the uncertainty of financial markets. Following the widely used fuzzy set theory in Zadeh (1965), researchers used the fuzzy set theory to investigate portfolio selection problems under uncertain environment. Numerous models have been proposed by using different approaches. Qin (2017) proposed a random fuzzy mean absolute deviation portfolio selection model. Some researchers extend the single-period fuzzy portfolio selection into multiperiod setting. By using experts’ judgments, Sadjadi et al. (2011) formulated a fuzzy multiperiod portfolio selection model with different rates for borrowing and lending by using fuzzy set theory. Zhang et al. (2012, 2014), and Liu et al. (2012, 2013) proposed several kinds of multiperiod fuzzy portfolio selection models, respectively. Zhang and Zhang (2014) proposed a multiperiod mean absolute deviation fuzzy portfolio selection model with cardinality constraints.

Though possibility measure has been widely used in portfolio selection, it has limitation. One great limitation is that possibility measure is not self-dual. Using possibility measure which has no self-duality property, we can find that two fuzzy events with different occurring chances may have the same possibility value. In addition, whenever the possibility value of a portfolio returns greater than a target value is lower than 1, the possibility value of the opposite event (i.e., the portfolio return less than or equal to the target value) is the maximum value of 1; or whenever the possibility value of a portfolio return less than or equal to a target value is lower than 1, the possibility value of the opposite event (i.e., the portfolio returns greater than the target value) is the maximum value of 1. These results are quite awkward and will confuse the decision maker. Thus, Huang (2008) presented credibilitic mean–semi-variance model, Li et al. (2010) proposed credibilitic cross-entropy minimization model, Zhang and Liu (2014) proposed a credibilitic multiperiod mean–variance portfolio selection model. Mehlawat (2016) proposed a multiperiod mean entropy credibilitic portfolio selection model.

Another alternative way to describe the subjective imprecise quantity is uncertainty theory proposed by Liu (2007) by estimating indeterministic quantities subject to experts’ estimations. Based on this framework, much work is undertaken to develop the theory and related practical applications. Uncertainty theory is also applied to model the portfolio selection. Huang (2012) established a risk index model for uncertain portfolio selection and further employed the criterion to consider a portfolio adjusting problem. Different from a risk index model, Liu et al. (2012) presented a semiabsolute deviation of an uncertain variable to measure risk and formulated a mean–semiabsolute deviation criterion. Qin and Kar (2013) formulated the uncertain counterpart of mean–variance model. As extensions, Huang and Qiao (2012) presented a risk index model for multiperiod case. Different from these, Zhu (2010) applied uncertain optimal control to model continuous-time problem, but Yao and Ji (2014) considered the problem by using uncertain decision making.

Although the case of a long-term investment horizon is of greater importance in practice, much less has been done in that area. The first formulation of the multiperiod portfolio selection problem has already been given in the book of Markowitz (1959). Although it is heavily discussed in recent literature, to the best of our knowledge, a closed-form solution is not available in the general case up to now. Closed-form solutions are presented only under the assumption of frictionless market, i.e., Li and Ng (2000) used dynamic programming method to deal with the multiperiod mean variance portfolio selection problem by using the idea of embedding the problem in a tractable auxiliary problem. Then, they obtained breakthrough result, that is, the optimal mean–variance portfolio policy and the efficient frontier; Zhu et al. (2004) incorporated a control of the probability of bankruptcy in the generalized mean variance formulation for multiperiod portfolio optimization; Yu et al. (2010), Yu and Wang (2012) discussed a dynamic portfolio optimization problem with risk control for the absolute deviation model; Wu and Li (2012) investigate a non-self-financing portfolio optimization problem under the framework of multiperiod mean–variance with Markov regime switching and a stochastic cash flow; Li and Li (2012) represented a multiperiod portfolio optimization problem for asset–liability management of an investor who intends to control the probability of bankruptcy before reaching the end of an investment horizon. Cui et al. (2012, 2014, 2017) studied the time-consistent optimal strategies of the multiperiod mean–variance model. Gao et al. (2015) considers the time cardinality constrained mean–variance dynamic portfolio selection problem in markets with correlated returns and in which the number of time periods to invest in risky assets is limited. Zhou et al. (2016) propose a multiperiod portfolio optimization model with stochastic cash flows. Chen et al. (2014, 2016) discussed the time-consistent strategies for different portfolio optimization models. Wu and Zeng (2015) studied a generalized multiperiod mean variance portfolio selection problem within the game theoretic framework for a defined-contribution pension scheme member. For more general models, the solution is frequently determined by a numerical procedure, i.e., van Binsbergen and Brandt (2007) compared the numerical performance of value function iterations with portfolio weight iterations in the context of the simulation-based dynamic programming approach; Mansini et al. (2007) presented multiperiod mean CVaR portfolio selection model; Gülpınar and Rustem (2007) extend the multiperiod mean–variance optimization framework to worst-case design with multiple rival return and risk scenarios; Yan et al. (2007), Yan and Li (2009) proposed a hybrid genetic algorithm with particle swarm optimizer to solve a class of multiperiod semi-variance portfolio selection with a four-factor futures price model and a multiperiod semi-variance portfolio selection; Köksalan and Şakar (2016) consider expected return, conditional value at risk, and liquidity criteria in a multiperiod portfolio optimization setting modeled by stochastic programming.

In many existing models are proposed on the framework of Markowitz’s mean variance with cardinality constraints, threshold constraints and so on. These real constraints come from real-world practice where the administration of a portfolio made up of many assets is clearly not desirable because of transaction costs, complexity of management, or policy of the asset management companies. Because of its practical relevance, this cardinality constrained model, and some variations have been intensively studied in the last decade. Especially from the computational viewpoint, some researchers proposed exact solution methods, i.e., Bertsimas and Shioda (2009); Li et al. (2006); Shaw et al. (2008); Murray and Shek (2012); Cesarone et al. (2013); Cui et al. (2013); Sun et al. (2013); Le Thi et al. (2009), Le Thi and Moeini (2014). Since exact solution methods are able to solve only a fraction of practically useful cardinality constrained models, many heuristic algorithms have also been proposed, i.e., Fernández and Gómez (2007); Ruiz-Torrubiano and Suarez (2010); Anagnostopoulos and Mamanis (2011); Woodside-Oriakhi et al. (2011); Deng et al. (2012). In these studies, it appears that the computational complexity for the solution of the cardinality constrained model is much greater than the one required by the classical Markowitz model or by several other of its refinements. Indeed, the standard Markowitz model is a convex quadratic programming problem, while the cardinality constrained model is a mixed integer quadratic programming problem which is a “NP hard” problem.

The contribution of this work is as follows. We originally represent uncertain absolute deviation to measure portfolio risk, and propose a new multiperiod mean absolute deviation uncertain portfolio selection model with borrowing constraints, transaction costs, threshold constraints and cardinality constraints. Based on uncertain theories, the model is converted to a crisp dynamic optimization problem. Because of the transaction costs and cardinality constraints, the multiperiod portfolio selection is a mix integer dynamic optimization problem with path dependence, which is “NP hard” problem that is very difficult to solve. The proposed model is approximated to a mix integer dynamic programming model. A novel discrete iteration method is designed to obtain the optimal portfolio strategy and is proved linearly convergent. Finally, we give an example to illustrate the idea of the model and demonstrate the effectiveness of the designed algorithm.

This paper is organized as follows. In Sect. 2, several concepts, properties of uncertain measure, the definitions of the uncertain mean and the uncertain absolute deviation are introduced, respectively. In Sect. 3, the borrowing constraints, transaction costs, threshold constraints and cardinality constraints are formulated into the multiperiod portfolio, and a new multiperiod uncertain portfolio selection model with real constraints is proposed. A novel discrete iteration method is proposed to solve it in Sect. 4. In Sect. 5, a numerical example is also presented to illustrate the modeling idea and the effectiveness of the designed algorithm. Finally, some conclusions are given in Sect. 6.

2 Preliminaries

Let \(\varGamma \) be a nonempty set, and let A be a \(\sigma \)-algebra over \(\varGamma \). Each element of A is called an event. A set function is called an uncertain measure (Liu 2007) if and only if it satisfies

Axiom 1. :

(Normality) M{\(\varGamma \} = 1\);

Axiom 2. :

(Self-duality) \(\hbox {M}\{A\}+M\{{A}^{c}\} = 1\) for any event A;

Axiom 3. :

(Subadditivity) \(M(\cup _i A_i )\le {\sum }_{i=1}^\infty {M(A_i )}\) for any countable sequence of events {\(A_{i}\)}.

Definition 1

(Liu 2007) Let \(\varGamma \) be a nonempty set, and let A be a \(\sigma \)-algebra over it. If M is an uncertain measure, then the triplet (\(\varGamma , A, M)\) is called an uncertainty space.

Definition 2

(Liu 2007) Uncertain variable \(\xi \) is defined as a measurable function from an uncertainty space (\(\varGamma , A, M)\) to the set of real numbers \({\mathfrak {R}}\). That is, for any Borel set B, we have

$$\begin{aligned} \{\gamma \in \Gamma , \xi (\gamma )\in B\}\in A \end{aligned}$$
(1)

Definition 3

(Liu 2007) Let \(\xi \) be an uncertain variable. Then the expected value of \(\xi \) is defined as

$$\begin{aligned} E[\xi ]=\int _0^{+\infty } {M\{\xi \ge x\}\mathrm{d}x} -\int _{-\infty }^0 {M\{\xi \le x\}\mathrm{d}x} \end{aligned}$$
(2)

provided that at least one of the two integrals is finite.

Based on Definition 3, Liu (2009) deduced the following two theorems.

Theorem 1

(Liu 2009) Let \(\xi \) be an uncertain variable with finite expected value. Then, for any real numbers a and b, it holds that

$$\begin{aligned} E[{ a}\,\xi + b] = a\,E[\xi ] + b \end{aligned}$$
(3)

Theorem 2

(Linearity of Expected Value Operator, Liu 2009) Let \(\xi \) and \(\eta \) be independent uncertain variables with finite expected values. Then, for any real numbers a and b, it holds that

$$\begin{aligned} E(a\xi +b\eta )=aE(\xi )+bE(\eta ) \end{aligned}$$
(4)

Definition 4

(Liu 2007) An uncertain variable \(\xi \) can be characterized by an uncertainty distribution which is a function \(\Phi \): \(\mathfrak {R}\rightarrow \) [0, 1] is defined as

$$\begin{aligned} \Phi (t)=M\{\xi \le t\} \end{aligned}$$
(5)

Definition 5

Let \(\xi \) be an uncertain variable with finite expected value e. Then the absolute deviation of \(\xi \) is defined by

$$\begin{aligned} AD(\xi )=E[\left| {\xi -e} \right| ] \end{aligned}$$
(6)

If \(\xi \) is an uncertain variable with expected value e, then its absolute deviation is used to measure the spread of its distribution about e.

Theorem 3

Let \(\xi \) be an uncertain variable with finite expected value e. Then its uncertain absolute deviation is defined as

$$\begin{aligned} AD(\xi )=\int _e^{+\infty } {\hbox {(1}-\Phi (r))\mathrm{d}r} +\int _{-\infty }^e {\Phi (r)\mathrm{d}r} \end{aligned}$$
(7)

Proof

From Definitions 5 and 3, it follows that

$$\begin{aligned} \hbox {AD}(\xi )= & {} E[\left| {\xi -\hbox {e}} \right| ] \\= & {} \int _0^{+\infty } {M\{\left| {\xi -\hbox {e}} \right| \ge x\}\mathrm{d}x} -\int _{-\infty }^0 {M\{\left| {\xi -\hbox {e}} \right| \le x\}\mathrm{d}x} \\= & {} \int _0^{+\infty } {M\{\left| {\xi -\hbox {e}} \right| \ge x\}\mathrm{d}x} \\= & {} \int _0^{+\infty } {M\{\{\xi -\hbox {e}\ge x\}\bigcup \{\xi -\hbox {e}\le -x\}\}\mathrm{d}x} \\= & {} \int _0^{+\infty } {M\{\{\xi \ge x+e\}\bigcup \{\xi \le e-x\}\}\mathrm{d}x} \\= & {} \int _e^{+\infty } {\hbox {(1}-M\{\xi \le r\})\mathrm{d}r} +\int _{-\infty }^e {M\{\xi \le r\}\mathrm{d}r} \\= & {} \int _e^{+\infty } {\hbox {(1}-\Phi (r))\mathrm{d}r} +\int _{-\infty }^e {\Phi (r)\mathrm{d}r} \end{aligned}$$

Thus, the proof of the theorem is ended. \(\square \)

Theorem 4

Let \(\xi \) be an uncertain variable with finite expected value e. Then for any nonnegative real numbers \(\lambda \), it holds

$$\begin{aligned} \hbox {AD}(\lambda \xi )=\lambda \hbox {AD}(\xi ) \end{aligned}$$
(8)

Proof

From Definition 5, it follows that

$$\begin{aligned} \hbox {AD}(\lambda \xi )= & {} E[\left| {\lambda \xi -\lambda e} \right| ]=\lambda E[\left| {\xi -e} \right| ] \\= & {} \lambda \hbox {AD}(\xi ) \end{aligned}$$

Thus, the proof of the theorem is ended. \(\square \)

Theorem 5

Let \(\xi \) be an uncertain variable with finite expected value e. Then for any nonnegative real numbers \(\lambda \) and for any real numbers \(\eta \), it holds

$$\begin{aligned} \hbox {AD}(\lambda \xi +\eta )=\lambda \hbox {AD}(\xi ) \end{aligned}$$
(9)

Proof

From Definition 5, it follows that

$$\begin{aligned} \hbox {AD}(\lambda \xi +\eta )= & {} E[\left| {\lambda \xi +\eta -(\lambda e+\eta )} \right| ] \\= & {} E[\lambda \left| {\xi -e} \right| ]=\lambda E[\left| {\xi -e} \right| ] \\= & {} \lambda \hbox {AD}(\xi ) \end{aligned}$$

Thus, the proof of the theorem is ended. \(\square \)

If \(r = (a, \alpha , \beta )\) be a triangular uncertain variable, then uncertainty distribution \(\varPhi \)(r) can be described as:

$$\begin{aligned} \Phi (r)=\left\{ { \begin{array}{ll} 0,&{}\quad \hbox { if }r\le a-\alpha , \\ \frac{r-(a-\alpha )}{2\alpha },&{}\quad \hbox { if }a-\alpha \le r\le a, \\ \frac{r+\beta -a}{2\beta },&{}\quad \hbox { if }a\le r\le a+\beta , \\ 1,&{}\quad \hbox { if }r\ge a+\beta . \\ \end{array}} \right. \end{aligned}$$
(10)

The triangle uncertain variable is denoted by \(r(a, \alpha , \beta \)), where \(\alpha \ge 0, \beta \ge 0\).

Theorem 6

If \(r = (a, \alpha , \beta )\) be a triangle uncertain variable, the expected value of r can be given by:

$$\begin{aligned} E(r)=a+\frac{\beta -\alpha }{4} \end{aligned}$$
(11)

Proof

From Definition 3 and Theorem 6, it follows that

$$\begin{aligned} E(r)= & {} \int _{0}^{+\infty } {M\{r\ge x\}\mathrm{d}x} -\int _{-\infty }^0 {M\{r\le x\}\mathrm{d}x} \nonumber \\= & {} \int _0^{+\infty } {(1-M\{r\le x\})\mathrm{d}x} -\int _{-\infty }^0 {M\{r\le x\}\mathrm{d}x} \nonumber \\= & {} \int _0^{+\infty } {(1-\Phi (r))\mathrm{d}r} -\int _{-\infty }^0 {\Phi (r)\mathrm{d}r} \end{aligned}$$
(12)

According to Eq. (10), the right-hand side of Eq. (12) is

$$\begin{aligned}&\int _0^{+\infty } {(1-\Phi (r))\mathrm{d}r} -\int _{-\infty }^0 {\Phi (r)\mathrm{d}r} =\int _0^{a-\alpha } {(1-0)\mathrm{d}r} \nonumber \\&\qquad +\int _{a-\alpha }^a {\left( 1-\frac{r-(a-\alpha )}{2\alpha }\right) \mathrm{d}r} \nonumber \\&\qquad +\int _a^{a+\beta } {\left( 1-\frac{r+a+\beta }{2\beta }\right) \mathrm{d}r} +\int _{a+\beta }^{+\infty } {(1-1)\mathrm{d}r} \nonumber \\&\quad =a-\alpha +\frac{3\alpha }{4}+\frac{\beta }{4}=a+\frac{\beta -\alpha }{4} \end{aligned}$$
(13)

According to Eqs. (12) and (13), we can get

$$\begin{aligned} E(r)=a+\frac{\beta -\alpha }{4} \end{aligned}$$

Thus, the proof of the theorem is ended. \(\square \)

Theorem 7

Let \(r = (a,\alpha , \beta )\) be a triangle uncertain variable, which \(E(r)=a+\frac{\beta -\alpha }{4}\). Then, the uncertain absolute deviation of \(\xi \) can be given by:

$$\begin{aligned} \hbox {AD}(r)=\left\{ { \begin{array}{lll} \frac{4a^{2}-12(a-\alpha )a+4a(a+\beta )-6(a-\alpha )(a+\beta )+9(a-\alpha )^{2}+(a+\beta )^{2}}{32\alpha },\\ \qquad \hbox { if }\beta \le \alpha \\ \frac{(3\beta +\alpha )^{2}}{32\beta },\qquad \hbox { if }\beta \ge \alpha \\ \end{array}} \right. \end{aligned}$$
(14)

Proof

From Theorem 3, it follows that

$$\begin{aligned} \hbox {AD}(r)= & {} \int _e^{+\infty } (1-\Phi (r)\mathrm{d}r +\int _{-\infty }^e {\Phi (r)\mathrm{d}r} \nonumber \\= & {} \int _{a+\frac{\beta -\alpha }{4}}^{+\infty } {\hbox {(1}-\Phi (r))\mathrm{d}r} +\int _{-\infty }^{a+\frac{\beta -\alpha }{4}} {\Phi (r)\mathrm{d}r} \end{aligned}$$
(15)

If \(\beta \le \alpha \), the right-hand side of Eq. (15) is

$$\begin{aligned}&\int _{a+\frac{\beta -\alpha }{4}}^{+\infty } {\hbox {(1}-\Phi (r))\mathrm{d}r} +\int _{-\infty }^{a+\frac{\beta -\alpha }{4}} {\Phi (r)\mathrm{d}r} =\int _{a+\frac{\beta -\alpha }{4}}^b {\left( 1-\frac{r-(a-\alpha )}{2\alpha }\right) \mathrm{d}r} +\int _a^{a+\beta } {\left( 1-\frac{r+a+\beta }{2\beta }\right) \mathrm{d}r}\nonumber \\&\qquad +\int _{a+\beta }^{+\infty } {\hbox {(1}-1)\mathrm{d}r} +\int _0^a {0\mathrm{d}r} +\int _{a-\alpha }^{a+\frac{\beta -\alpha }{4}} {\frac{r-(a-\alpha )}{2\alpha }\mathrm{d}r}\nonumber \\&\quad =\frac{20a^{2}-28(a-\alpha )a-12a(a+\beta )+10(a-\alpha )(a+\beta )+9(a-\alpha )^{2}+(a+\beta )^{2}}{64\alpha } \nonumber \\&\qquad +\,\frac{\beta }{4}+\frac{(3\alpha +\beta )^{2}}{64\alpha } \nonumber \\&\quad =\frac{4a^{2}-12(a-\alpha )a+4a(a+\beta )-6(a-\alpha )(a+\beta )+9(a-\alpha )^{2}+(a+\beta )^{2}}{32\alpha } \end{aligned}$$
(16)

If \(\beta \ge \alpha \), the right-hand side of Eq. (15) is

$$\begin{aligned}&\int _{a+\frac{\beta -\alpha }{4}}^{+\infty } {\hbox {(1}-\Phi (r))\mathrm{d}r} +\int _{-\infty }^{a+\frac{\beta -\alpha }{4}} {\Phi (r)\mathrm{d}r}\nonumber \\&\quad =\int _{a+\frac{\beta -\alpha }{4}}^{a+\beta } {\left( 1-\frac{r+\beta -a}{2\beta }\right) \mathrm{d}r} \nonumber \\&\qquad +\int _{a+\beta }^{+\infty } {\hbox {(1}-1)\mathrm{d}r} +\int _0^{a-\alpha } {0\mathrm{d}r} +\int _{a-\alpha }^a {\frac{r-(a-\alpha )}{2\alpha }\mathrm{d}r} \nonumber \\&\qquad +\int _a^{a+\frac{\beta -\alpha }{4}} {\frac{r-(a-\alpha )}{2\alpha }\mathrm{d}r} \nonumber \\&\quad =\frac{(3\beta +\alpha )^{2}}{64\beta }+\frac{(3\beta +\alpha )^{2}}{64\beta } \nonumber \\&\quad =\frac{(3\beta +\alpha )^{2}}{32\beta } \end{aligned}$$
(17)

According to Eqs. (16) and (17), we can get

$$\begin{aligned} \hbox {AD}(r)=\left\{ { \begin{array}{lll} \frac{4a^{2}-12(a-\alpha )a+4a(a+\beta )-6(a-\alpha )(a+\beta )+9(a-\alpha )^{2}+(a+\beta )^{2}}{32\alpha },\\ \qquad \hbox { if }\beta \le \alpha \\ \frac{(3\beta +\alpha )^{2}}{32\beta },\quad \hbox { if }\beta \ge \alpha \\ \end{array}} \right. \end{aligned}$$

Thus, the proof of the theorem is ended. \(\square \)

3 The multiperiod portfolio selection model

Assume that there are n risky assets and one risk-free asset in financial market for trading. An investor wants to allocate his/her initial wealth \(W_{1}\) among \(n+1\) assets at the beginning of period 1, and obtains the final wealth at the end of period T. He/She can reallocate his/her wealth among the \(n +1\) assets at the beginning of each of the following T consecutive investment periods. Suppose that the return rates of the n risky assets at each period are denoted as triangular uncertain variables. For the sake of description, let us first introduce the following notations. Let \(x_{i0}\) be the initial investment proportion of risky asset i at period 0, \(x_{it}\) be the investment proportion of risky asset i at period \(t, x_{ft}\) be the investment proportion of risk-free asset at period, \(x_{t}\) be the portfolio at period t, where \(x_{t} = (x_{ft}, x_{1t}, x_{2t},\ldots ,x_{nt}), x^{b}_{ft}\) be the lower bound of the investment proportion of risk-free asset at period t, where \(x_{ft }^{3} \ge x^{b}_{ft}, R_{it}\) be the return of risky asset i at period \(t, r_{pt}\) be the return rate of the portfolio \(x_{t}\) at period \( t, r_{bt}\) be the borrowing rate of the risk-free asset at period \( t, r_{lt}\) be the lending rate of the risk-free asset at period \( t, u_{it}\) be the upper bound constraints of \(x_{it}, r_{Nt}\) be the net return rate of the portfolio \(x_{t}\) at period \( t, W_{t}\) be the crisp form of the holding wealth at the beginning of period \(t, c_{it}\) be the unit transaction cost of risky asset i at period tK be the desired number of risky assets in the portfolio at period t.

3.1 Return, risk and real constraints

In this section, we employ the uncertain mean value of the return on the portfolio at each period to measure the return of portfolio. The risk on the return rate of portfolio at each period is quantified by the uncertain absolute deviation. The return rate of security i at period \(t, R_{it}=(a_{it}, \alpha _{it}, \beta _{it})\), is triangular uncertain variable for all \(i=1,{\ldots }, n\) and \(t=1,{\ldots } T\).

The expected return rate of the portfolio \(x_{t }= (x_{ft},x_{1t}, x_{2t},\ldots , x_{nt})^\prime \) at period t can be expressed as

$$\begin{aligned} r_{pt}= & {} \mathop {\sum }\limits _{i=1}^n {E(R_{it} )x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \nonumber \\= & {} \mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it}\nonumber \\&+\,r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) ,t=1,\ldots , T \end{aligned}$$
(18)

where \(r_{ft} =\left\{ { \begin{array}{ll} r_{lt}, { \begin{array}{ll} &{} {1-\sum \limits _{i=1}^n {x_{it} } \ge 0} \\ \end{array} } \\ r_{bt}, { \begin{array}{ll} &{} {1-\sum \limits _{i=1}^n {x_{it} } \le 0} \\ \end{array} } \\ \end{array}} \right. , r_{bt} \ge r_{lt}\). When \(1-\sum \nolimits _{i=1}^n {x_{it} } \ge 0\), it denotes that lending is allowed on the risk-free asset; When \(1-\sum \nolimits _{i=1}^n {x_{it} } \le 0\), it represents that borrowing is allowed on the risk-free asset.

Let the preset value be \(x^{b}_{ft}\), where \(x^{b}_{ft} \le 0\), the borrowing constraint of risk-free asset at period t is

$$\begin{aligned} x_{ft} =1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \end{aligned}$$
(19)

We assume in the sequel that the transaction costs at period t is a V shape function of difference between the tth period portfolio \(x_{t} = (x_{ft}, x_{1t}, x_{2t},\ldots ,x_{nt})\) and the t-1th period portfolio \(x_{(t-1)} = (x_{f(t-1)}, x_{1(t-1)}, x_{2(t-1)},\ldots ,x_{n(t-1)})\). The transaction cost for asset i at period t can be expressed by

$$\begin{aligned} C_{it} =c_{it} \left| {x_{it} -x_{i(t-1)} } \right| \end{aligned}$$
(20)

Hence, the total transaction costs of the portfolio \(x_{t} = (x_{1t}, x_{2t},\ldots , x_{nt})\) at period t can be represented as

$$\begin{aligned} C_t =\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| }, t=1,\ldots , T \end{aligned}$$
(21)

Thus, the net expected return rate of the portfolio \(x_{t}\) at period t can be denoted as

$$\begin{aligned} r_{Nt}= & {} \mathop {\sum }\limits _{i=1}^n {\mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \nonumber \\&-\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| }. t=1,\ldots , T \end{aligned}$$
(22)

Then, the crisp form of the holding wealth at the beginning of the period t can be written as

$$\begin{aligned} W_{t+1}= & {} W_t (1+r_{Nt} ) \nonumber \\= & {} W_t \left( 1+\mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it} +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \right. \nonumber \\&\left. -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| } \right) ,t=1,\ldots , T \end{aligned}$$
(23)

The absolute deviation of the portfolio \(x_{t}\) can be expressed as

$$\begin{aligned} \hbox {AD}_t (x_t )=\hbox {AD}_t (r_{1t} x_{1t} +r_{2t} x_{2t} +\cdots +r_{nt} x_{nt} ) \end{aligned}$$
(24)

Threshold constraints limit the amount of capital to be invested in each stock and prevent very small investments in any stock. The threshold constraints of multiperiod portfolio selection can be expressed as

$$\begin{aligned} 0\le x_{it} \le u_{it} \end{aligned}$$
(25)

where \(u_{it}\) is the upper bound of \(x_{it}\).

To formulate cardinality constraints into the multiperiod portfolio model, zero-one decision variables are added as:

$$\begin{aligned} z_{it} =\left\{ { \begin{array}{ll} 1&{}\quad \hbox { if any of asset }i\hbox { of period }\\ &{}\qquad t\hbox { (}i{=1,}\ldots \hbox {,}n\hbox {; }t{=1,}\ldots \hbox {,}T\hbox {) is held} \\ 0&{}\quad \hbox { otherwise} \\ \end{array}} \right. \end{aligned}$$
(26)

where \(\sum \nolimits _{i=1}^n {z_{it} } \le K\).

3.2 The basic multiperiod portfolio optimization models

When the investors can give a tolerable level of risk at period t, and want to maximize the terminal wealth at the given level of risk, the multiperiod uncertain mean absolute deviation model with real constraints is as follows:

$$\begin{aligned}&\max \mathop \Pi \limits _{t=1}^T \left[ \mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it} +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \right. \nonumber \\&\left. \quad -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| } \right] \nonumber \\&\mathrm{s.t}\left\{ { \begin{array}{ll} W_{t+1} =\left( 1+\left( \mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it}\right. \right. \\ \qquad \left. \left. +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| } \right) \right) W_t &{}\hbox {(a)} \\ \hbox {AD}_t (r_{1t} x_{1t} +r_{2t} x_{2t} +\cdots +r_{nt} x_{nt} )\le \hbox {AD}_{0t} &{}\hbox { (b)} \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b &{}(\hbox {c}) \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le } K,z_{it} \in \{0,1\} &{}(\hbox {d}) \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n,t=1,\ldots , T &{}(\hbox {e}) \\ \end{array}} \right. \nonumber \\ \end{aligned}$$
(27)

where \(\mathrm{AD}_{0t}\) denotes the maximum risk level the investors can tolerate. The model (27) consists of an objective, namely the maximization of the investors’ terminal wealth. Constraint (a) denotes the wealth accumulation constraint; constraint (b) states that the absolute deviation of the portfolio \(x_{t}\) cannot exceed the given minimum risk \(\mathrm{AD}_{0t}\) at each period; constraint (c) indicates that the investment proportion of risk-free asset at period t must exceed the given lower bound; constraint (d) represents the desired number of assets in the portfolio must not exceed a given value K; constraint (e) states the lower and upper of \(x_{it}\).

According to Qin et al. (2011), if \(r_{1t}, r_{2t}, {\ldots },r_{nt}\) are independent triangular uncertain variables, and \(x_{it} \ge 0, i=1,{\ldots }, n\),

$$\begin{aligned}&\hbox {AD}_t (r_{1t} x_{1t} +r_{2t} x_{2t} +\cdots +r_{nt} x_{nt} )\nonumber \\&=\mathop {\sum }\limits _{i=1}^n {x_{it} \hbox {AD}_t (r_{it} )}. \end{aligned}$$
(28)

where

$$\begin{aligned}&AD(r_{it})\nonumber \\&\quad =\left\{ { \begin{array}{l} \frac{4a_{it}^2 -12(a_{it} -\alpha _{it} )a_{it} +4a_{it} (a_{it} +\beta _{it} )}{32\alpha } \\ -\frac{6(a_{it} -\alpha _{it} )(a_{it} +\beta _{it} )+9(a_{it} -\alpha _{it} )^{2}+(a_{it} +\beta _{it} )^{2}}{32\alpha },\hbox { if }\beta _{it} \le \alpha _{it} \\ \frac{(3\beta _{it} +\alpha _{it} )^{2}}{32\beta _{it} },\hbox { if }\beta _{it} \ge \alpha _{it} \\ \end{array}} \right. .\nonumber \\ \end{aligned}$$
(29)

According to Eq. (28), the Model (27) can be turned into as follows:

$$\begin{aligned}&\max \mathop \Pi \limits _{t=1}^T \left[ \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| } \right] \nonumber \\&\mathrm{s.t}\left\{ { \begin{array}{lll} W_{t+1} =\left( 1+\left( {\mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it} +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| } } \right) \right) W_t \\ \mathop {\sum }\limits _{i=1}^n {\hbox {AD}_t (r_{it} )} x_{it} \le \hbox {AD}_{0t} \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le } K,z_{it} \in \{0,1\} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n,t=1,\ldots , T \\ \end{array}} \right. \end{aligned}$$
(30)

4 Solution algorithm

In this section, the multiperiod mean absolute deviation uncertain portfolio selection model with real constraints will be approximated into a mix integer dynamic programming problem with linear inequality constraints. A novel discrete iteration method will be proposed to solve the problem, and will be proved the linear convergence.

4.1 The proposed model approximated to dynamic programming problem

The sub-problem of Model (30) at period t is as follows:

$$\begin{aligned}&\max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \nonumber \\&\quad -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -x_{i(t-1)} } \right| }\nonumber \\&\qquad \mathrm{s.t}\left\{ { \begin{array}{l} \mathop {\sum }\limits _{i=1}^n {\hbox {AD}_t (r_{it} )} x_{it} \le \hbox {AD}_{0t} \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K,z_{it} \in \{0,1\},i=1,\ldots , n} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(31)

Let \(x_{it-1} =\overline{x_{it-1}}\), where \(\overline{x_{it-1}}\) is preset value, \(\sum \nolimits _{i=1}^n {\overline{x_{it-1} } =1-x_{ft}^b}\), the Model (30) can be approximated into the following model:

$$\begin{aligned}&\max \mathop \Pi \limits _{t=1}^T \left[ \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \right. \nonumber \\&\quad \left. -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| } \right] \nonumber \\&\qquad \mathrm{s.t}\left\{ { \begin{array}{l} W_{t+1} =(1+\left( {\mathop {\sum }\limits _{i=1}^n {\left( {a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}} \right) } x_{it} +r_{ft} (1-\mathop {\sum }\limits _{i=1}^n {x_{it} } )-\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| } } \right) )W \\ \mathop {\sum }\limits _{i=1}^n {\hbox {AD}_t (r_{it} )} x_{it} \le \hbox {AD}_{0t} \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K} \\ z_{it} \in \{0,1\},i=1,\ldots , n \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(32)

The sub-problem of model (32) at period t is as follows:

$$\begin{aligned}&\max \left[ \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \right. \nonumber \\&\quad \left. -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| } \right] \nonumber \\&\qquad \mathrm{s.t}\left\{ { \begin{array}{l} \mathop {\sum }\limits _{i=1}^n {\hbox {AD}_t (r_{it} )} x_{it} \le \hbox {AD}_{0t} \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K,z_{it} \in \{0,1\},i=1,\ldots , n} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(33)

Theorem 8

Let the optimal solutions and objective function values of Model (31) and Model (33), respectively be \(x^{1*}, G(x^{1*})\), and \(x^{2*}, F(x^{2*})\). Then \(G(x^{1*})-G(x^{2^{*}})\le 4 \max \nolimits _{i=1}^n \{c_{it} \}(1-x_{ft}^b )\).

Proof

Because the feasible solution set of the Model (31) is same as Model (33), \(x^{1*}\) and \(x^{2*}\) are the feasible solutions of Model (31) and Model (33), respectively. Then,

\(G(x^{1*})\ge G(x^{2*})\) and \(F(x^{2*})\ge F(x^{1*})\)

then \(G(x^{1*})+F(x^{2*})\ge G(x^{2*})+F(x^{1*})\)

so

$$\begin{aligned} G(x^{1*})-G(x^{2*})+F(x^{2*})-F(x^{1*})\ge 0 \end{aligned}$$
(34)

The left-hand side of Eq. (34) is

$$\begin{aligned}&G(x^{1*})-G(x^{2*})+F(x^{2*})-F(x^{1*})\nonumber \\&\quad =\left[ \mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it}^{1*} -x_{i(t-1)} } \right| } -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it}^{1*} -\overline{x_{i(t-1)} } } \right| } \right] \nonumber \\&\qquad +\left[ \mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it}^{2*} -\overline{x_{i(t-1)} } } \right| } -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it}^{2*} -x_{i(t-1)} } \right| } \right] \nonumber \\&\qquad \le 2\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{i(t-1)} -\overline{x_{i(t-1)} } } \right| } \end{aligned}$$
(35)

Because \(x_{i(t-1)} \ge 0, x_{it} \ge 0\),

$$\begin{aligned}&2\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{i(t-1)} -\overline{x_{i(t-1)} } } \right| } \le 2\mathop {\sum }\limits _{i=1}^n {c_{it} x_{i(t-1)} }\\&\quad +\,2\mathop {\sum }\limits _{i=1}^n {c_{it} \overline{x_{i(t-1)} } } \\&\quad =2\mathop {\max }\limits _{i=1}^n \{c_{it} \}\mathop {\sum }\limits _{i=1}^n {x_{it} } +2\mathop {\max }\limits _{i=1}^n \mathop {\sum }\limits _{i=1}^n {\overline{x_{i(t-1)} } } \\&\quad \le 2\mathop {\max }\limits _{i=1}^n \{c_{it} \}(1-x_{ft}^b )+2\mathop {\max }\limits _{i=1}^n \{c_{it} \}(1-x_{ft}^b )\\&\quad =4\mathop {\max }\limits _{i=1}^n \{c_{it} \}(1-x_{ft}^b ) \end{aligned}$$

So \(G(x^{1*})-G(x^{2^{*}})\le 4\max \nolimits _{i=1}^n \{c_{it} \}(1-x_{ft}^b ).\)

Which ends the proof.

Because \(\max \nolimits _{i=1}^n \{c_{it} \}<<r_{it} \), where asset \(i\in \) efficient asset set of portfolio,

\(4\max \nolimits _{i=1}^n \{c_{it} \}(1-x_{ft}^b )\) is small, and \(G(x^{1*})-G(x^{2^{*}})\) is also small.

If \(c_{it} =0.003, x^{ b}_{ft} =-0.5, G(x^{1*})-G(x^{2^{*}})\le 4\max \nolimits _{i=1}^n \{c_{it} \}(1-x_{ft}^b ) \le 4 \times 0.003 \times 1.5=0.018\).

4.2 The smallest and biggest value of state variable at every period

In Model (32), investors can choose \(W_{t}\) between \(W_{t}^\mathrm{min}\) and \(W_{t}^\mathrm{max}. W_{t}^\mathrm{min}\) and \(W_{t}^\mathrm{max}\) can be, respectively, obtained as follows:

The investor considers to maximize the expected return of the portfolio at period t.

$$\begin{aligned}&\max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \nonumber \\&\quad -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| }\nonumber \\&\qquad \mathrm{s.t}\left\{ { \begin{array}{lll} 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K,z_{it} \in \{0,1\},i=1,\ldots , n,t=1,\ldots , T} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n,t=1,\ldots , T \\ \end{array}} \right. \nonumber \\ \end{aligned}$$
(36)

Let \(y_{it} =\left| {x_{it} -\overline{x_{i(t-1)} } } \right| \). Then the Model (36) can be turned into as follows.

$$\begin{aligned}&\max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} }\nonumber \\&\qquad +\,r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} y_{it} }\nonumber \\&\quad \mathrm{s.t}\left\{ { \begin{array}{l} 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \hbox {y}_{it} \ge x_{it} -\overline{x_{i(t-1)} } \\ \hbox {y}_{it} \ge -(x_{it} -\overline{x_{i(t-1)} } ) \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K,z_{it} \in \{0,1\},i=1,\ldots , n} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(37)

\(x_t^{\max *}\) (the optimal solution \({x}_{t }= ({x}_{ft}, {x}_{1t}, {x}_{2t},\ldots , {x}_{nt})^\prime )\) can be obtained solving Model (37) by the CPLEX. \(r_{Nt}^{\max }\) (the biggest of \(\sum \nolimits _{i=1}^n {[a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}]x_{it} } +r_{ft} (1-\sum \nolimits _{i=1}^n {x_{it} } )-\sum \nolimits _{i=1}^n {c_{it} y_{it}})\) can also be obtained. Then, \(W_{t+1 }^{\max }\) can be obtained as follows:

$$\begin{aligned} W_{t\hbox {+}1}^{\max }= & {} W_t^{\max } \left( 1+\mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it}^{\max } } \right. \nonumber \\&\left. +\,r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it}^{\max } } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} y_{it}^{\max } } \right) ,t=1,.{\ldots }, T\nonumber \\ \end{aligned}$$
(38)

where \(W_{1}\) is initial wealth, which is preset value.

The biggest value of the absolute deviation of the portfolio selection at period \(t (\sum \nolimits _{i=1}^n {x_{it}^{\max } \hbox {AD}_t (r_{it})})\) can be also obtained.

The investor only considers to minimize the absolute deviation of the portfolio at period t, that is, the smallest value of the \(r_{Nt}\) can be obtained as follows:

$$\begin{aligned}&\min \mathop {\sum }\limits _{i=1}^n {\hbox {AD}_t (r_{it} )x_{it} }\nonumber \\&\quad \mathrm{s.t}\left\{ { \begin{array}{l} 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le K,z_{it} \in \{0,1\},i=1,\ldots , n} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(39)

\(x_t^{\min *}\)(the optimal solution \({x}_{t }= ({x}_{ft}, {x}_{1t}, {x}_{2t},\ldots , {x}_{nt})^{\prime })\) can be obtained solving the Model (39) by the CPLEX. Simultaneously, \(r_{Nt }^{\mathrm{min}}\) (the smallest of \(\sum \nolimits _{i=1}^n [a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}]x_{it} +r_{ft} (1-\sum \nolimits _{i=1}^n {x_{it} } ) -\sum \nolimits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| } )\) is also obtained. Then, \(W_{t+1 }^{\mathrm{min}}\) can be obtained as follows:

$$\begin{aligned} W_{t\hbox {+}1}^{\min }= & {} W_t^{\min } \left( 1+\mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it}^{\min } } \right. \nonumber \\&\quad \left. +\,r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it}^{\min } } \right) -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it}^{\min } -\overline{x_{i\left( t-1\right) }^{\min } } } \right| } \right) ,\nonumber \\&\qquad t=1,.{\ldots }, T \end{aligned}$$
(40)

where \(W_{1}\) is initial wealth, which is preset value.

The smallest value of the absolute deviation of the portfolio selection at period \(t (\sum \nolimits _{i=1}^n {x_{it}^{\min } \hbox {AD}_t (r_{it})})\) can be also obtained.

4.3 The discrete iteration method

In this section, the max-plus algebra, which is proposed by Heidergott et al. (2006), will be used. The method solving the longest path of the multiperiod weighted digraph, which is from the starting point to the ending point, will be proposed, and some definitions will be introduced first. Then, the method of finding the longest path of the multiperiod weighted digraph can be obtained. Finally, \(k+1\)th iteration method will be presented.

Definition 6

A semi-field (or semi-ring) is a triplet \(A=\{Q,\oplus , \otimes \}\) consisting of nonempty set Q and two binary operations \(\oplus \) and \(\otimes \), called modi-addition and modi-multiplication, respectively, defined on Q, such that for all \(a_{1}, a_{2}, a_{3}\) in Q

  1. (i)

    each of the operations \(\oplus \) and \(\otimes \) is commutative

    $$\begin{aligned} a_1 \oplus a_2 =a_2 \oplus a_1, a_1 \otimes a_2 =a_2 \otimes a_1 \end{aligned}$$
  2. (ii)

    each of the operations \(\oplus \) and \(\otimes \) is associative

    $$\begin{aligned} (a_1 \oplus a_2 )\oplus a_3= & {} a_1 \oplus (a_2 \oplus a_3 ), (a_1 \otimes a_2 )\otimes a_3 \\= & {} a_1 \otimes (a_2 \otimes a_3 ) \end{aligned}$$
  3. (iii)

    the operation \(\otimes \) is distributive with respect to the operation \(\oplus \)

    $$\begin{aligned} a_1 \otimes (a_2 \oplus a_3 )=a_1 \otimes a_2 \oplus a_1 \otimes a_3 \end{aligned}$$
  4. (iv)

    there exists an element in Q which is the zero element, denoted by \(\varepsilon \), such that for all a in Q, we have \(\varepsilon \oplus a=a, \varepsilon \otimes a=\varepsilon \) If there exists an element denoted by e in a semi-field \(A=\{Q,\oplus , \otimes \}\), such that for all ain Q, we have \(e\otimes a{=}a\) then e is called an identity element of the semi-field.

Fig. 1
figure 1

The multiperiod weighted digraph

Definition 7

\(a_1, a_2 \in R\), in semi-field \(A=\{R,\max , +\}\), then \(\varepsilon =-\infty \) and \(e=0\).

Definition 8

Let us consider matrices \(A_{n\times n} =(a_{ij} )_{n\times n}, B_{n\times n} =(b_{ij} )_{n\times n}, a_{ij}, b_{ij} \in R\), in semi-field \(A=\{R,\max , +\}\). Then \(C=A\oplus B,C_{n\times n} =(c_{ij} )_{n\times n} \), where \(c_{ij} =\max \{a_{il}, b_{lj} \}\).

Definition 9

Let us consider matrices \(A_{n\times m} =(a_{ij} )_{n\times m}, B_{m\times k} =(b_{ij} )_{m\times k}, a_{ij}, b_{ij} \in R\), in semi-field \(A=\{R,\max , {+}\}\). Then \(C=A\otimes B,C_{n\times k} =(c_{ij} )_{n\times k} \), where \(c_{ij} = \max \nolimits _{l=1}^m \{a_{il} +b_{lj} \}\).

The Model (32) is a mix integer dynamic programming problem with linear inequality constraints, the optimal solution can’t be obtained by the dynamic programming recursive relationship. In this section, a novel discrete iteration method is proposed. The method is as follows: Firstly, according to the network approach, discretizes the state variables and transforms the model into multiperiod weighted digraph. Secondly, the max-plus algebra is used to obtain the largest path that is the admissible solution. Thirdly, based on the admissible solution, continues iterating until the two admissible solutions are real near. Finally, the method is proved linearly convergent.

The state variable \(W_{t}\) of the period t is discretized into four intervals of same widths from the smallest value to the biggest one. It means that there are five discrete values for the state variable in every period. In this way, Model (32) is transformed into a multiperiod weighted digraph as shown in Fig. 1. The investment period, the value of the objective function of the period t and a discrete value of the state variable are represented by the stage, the weight of the period t and the point of the multiperiod weighted digraph, respectively.

In this section, a discrete iteration method will be proposed to solve the Model (32).

Step 1: The discrete state variables at period t (\(t=2,.{\ldots },T+1)\) can be obtained by discretizing the interval value of \(W_t ^{\max }-W_t ^{\min }\) into four equalities. That is

$$\begin{aligned} W_{it} =W_t ^{\min }+(W_t ^{\max }-W_t ^{\min })(i-1)/4,i={1},\ldots ,{5} \end{aligned}$$

Step 2: The weight of the arcs in Fig. 1 can be obtained following three steps:

Step 2.1: The net expected return of the portfolio \(r_{N1} (1,j), j=1,.{\ldots },5\), can be obtained as follows:

$$\begin{aligned} r_{N1} (1,j)=W_{j2} /W_1 -1 \end{aligned}$$

Step 2.2: The net expected return of portfolio \(r_{Nt} (j,k)\) at period t, which j is the number of the point at period \(t, j=1,.{\ldots },5\) and k is the number of the point at period \(t+1, k=1,.{\ldots },5\), can be obtained as follows:

$$\begin{aligned} r_{Nt} (j,k)=W_{kt+1} /W_{jt} -1 \end{aligned}$$

Step 2.3: The weights of the side at period t, which the values of the objective function \(F_1 (1,j)\) and \(F_t (j,k)\) in Fig. 1, can be obtained as follows:

When \(r_{Nt} (k,l)\) is known, the sub-problem at period t of the Model (32) can be turned into

$$\begin{aligned}&\max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{i(t-1)} } } \right| }\nonumber \\&\quad \mathrm{s.t}\left\{ { \begin{array}{lll} \max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} }\\ -\mathop {\sum }\limits _{i=1}^n {c_{it} \left| {x_{it} -\overline{x_{it-1} } } \right| } \ge r_{Nt} (k,l) \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le } K,z_{it} \in \{0,1\} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(41)

Let \(y_{it} =\left| {x_{it} -\overline{x_{i(t-1)} } } \right| \). Then the Model (41) can be turned into as follows.

$$\begin{aligned}&\max \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } -\mathop {\sum }\limits _{i=1}^n {c_{it} y_{it} }\nonumber \\&\quad \quad \mathrm{s.t}\left\{ { \begin{array}{lll} \left( \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it} } +r_{ft} \left( 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \right) \right. \\ \left. -\mathop {\sum }\limits _{i=1}^n {c_{it} y_{it} } \right) \ge r_{Nt} (k,l) \\ 1-\mathop {\sum }\limits _{i=1}^n {x_{it} } \ge x_{ft}^b \\ \hbox {y}_{it} \ge x_{it} -\overline{x_{i(t-1)} } \\ \hbox {y}_{it} \ge -(x_{it} -\overline{x_{i(t-1)} } ) \\ \mathop {\sum }\limits _{i=1}^n {z_{it} \le } K,z_{it} \in \{0,1\} \\ 0\le x_{it} \le u_{it} z_{it}, i=1,\ldots , n \\ \end{array}} \right. \end{aligned}$$
(42)

\(x_t^*\)(the optimal solution \({x}_{t}= ({x}_{ft}, {x}_{1t}, {x}_{2t},\ldots , {x}_{nt})^\prime )\) can be obtained solving the Model (42) by the CPLEX. Simultaneously, the objective function value \(F_t (j,k)\) can be obtained as follows:

$$\begin{aligned} F_t (j,k) = \mathop {\sum }\limits _{i=1}^n {\left[ a_{it} +\frac{\beta _{it} -\alpha _{it} }{4}\right] x_{it}^*} -\mathop {\sum }\limits _{i=1}^n {c_{it} y_{it}^*}. \end{aligned}$$

Step 3: Calculation of the longest path of the multiperiod weighted digraph

According to Definition 9, the longest path \(F^{(1)}\) of the multiperiod weighted digraph of the first iteration can be obtained as follows:

$$\begin{aligned} F^{(1)}=F_1^{(1)} \otimes F_2^{(1)} \otimes \cdots \otimes F_T^{(1)} \end{aligned}$$
(43)

where \(F_1^{(1)} = (F^{(1)}(1,j))_{1\times 5}, F_{2}^{({1})} = (F_{2}^{({1})} (i,j))_{5\times 5},.{\ldots },F_T^{({1})} = (F_T^{({1})} (i,j))_{5\times 5} \).

Step 4: The discrete iteration method \(k+1\)th iteration can be described as follows:

Let the longest path of the kth iteration be \(W_1 \rightarrow W_{i_2 2}^{(k)} \rightarrow W_{i_3 3}^{(k)} \rightarrow \cdots \rightarrow W_{i_{T+1} T+1}^{(k)}\). The optimal solutions of the longest path of Fig. 1 are also feasible solutions of the multiperiod mean–absolute deviation portfolio selection model. Based on the \((W_1, W_{i_2 2}^{(k)}, W_{i_3 3}^{(k)}, \ldots , W_{i_{T+1} T+1}^{(k)} )\), the state variables from period 1 to period T are discretized into four intervals as following three steps.

Step 4.1: \(W_2^{\min }\) and \(W_{i_2 2}^{(k)}, W_{i_2 2}^{(k)}\) and \(W_2^{\max }\) are discretized into two same internals, respectively. The five discrete points of \(S_{2}\), i.e., \(W_2^{\min }, W_{22}^{(k+1)}, W_{i_1 2}^{(k+1)}, W_{32}^{(k+1)},W_2^{\max }\) can be obtained.

Step 4.2: Based on \((W_{i_3 3}^{(k)}, \ldots , W_{i_{T+1} T+1}^{(k)})\), using the same method, the state variables from period 3 to period \(T+1\) are discretized into the five points, respectively. The wealth of period tcan also be obtained.

Table 1 The optimal solution when \(K=4, \mathrm{AD}_{t}=0.01\)

Step 4.3: The longest path of the k+1th iteration \(F^{(k+1)}\) and another feasible solution can be obtained as follows:

$$\begin{aligned} F^{(k+1)}=F_1^{(k+1)} \otimes F_2^{(k+1)} \otimes \cdots \otimes F_T^{(k+1)} \end{aligned}$$
(44)

where \(F_1^{(k+1)} = (F^{(k+1)}(1,j))_{1\times 5}, F_{2}^{(k+{1})} = (F_{2}^{(k+{1})} (i,j))_{5\times 5},.{\ldots }, F_T^{(k+{1})} = (F_T^{(k+{1})} (i,j))_{5\times 5}\).

If \(\left| {F^{(k+1)}-F^{(k)}} \right| \le 10^{-6}\), then the optimal solution of the longest path \(F^{(k+1)}\) is also the optimal solution of the Model (32). Otherwise turn Step 2.

4.4 Convergence property of the discrete iteration method

Theorem 9

The discrete iteration method is linearly convergent.

Proof

Let the longest path in period 1 and the longest path in period t, respectively be \(F_{1}^{\max } (1,j_2 )\), and \(F_t^{\max } (i_t, j_{t+1} ), t =2, {\ldots }, T\). Then the upper bound of the solution of Model (32) is

$$\begin{aligned} F_1^{\max } (1,j_2 )\times F_2^{\max } (i_2, j_3 )\times \cdots \times F_T^{\max } (i_T, j_{T+1} ) \end{aligned}$$

The longest path of the multiperiod weighted digraph of the kth iteration \(F^{(k)}\) is obtained as follows:

$$\begin{aligned} F^{(k)}=F_1^{(k)} \otimes F_2^{(k)} \otimes \cdots \otimes F_T^{(k)} \end{aligned}$$
(45)

where \(F_1^{(k)} = (F^{(k)}(1,j))_{1\times 5}, F_{2}^{(k)} = (F_{2}^{(k)} (i,j))_{5\times 5},.{\ldots }, F_T^{(k)} = (F_T^{(k)} (i,j))_{5\times 5}\).

Let the longest path of the kth iteration be \(W_1 \rightarrow W_{i_2 2}^{(k)} \rightarrow W_{i_3 3}^{(k)} \rightarrow \cdots \rightarrow W_{i_{T+1} T+1}^{(k)} \). Using the Step 4, the multiperiod weighted digraph of the k+1th iteration can be obtained. \(F^{(k+1)}\), which is the value of the longest path of the multiperiod weighted digraph of the k+1th iteration, can be obtained by Eq. (45). So \(F^{(k+1)}\ge F^{(k)}\). The solution is becoming bigger and bigger. Because the solutions of Model (32) are increasing sets and there is an upper bound of the solution of Model (32), the discrete iteration method is convergent.

Let the optimal value of period tof Model (32) be \(F_{t}^{*}, F_{t}^{(k)}\) be the optimal solution of the kth iteration at period t.

Because the objective function of Model (32) is linear, \(\left| {F_t^{(k+1)} -F_t^*} \right| \le \left| {F_t^{(k)} -F_t^*} \right| \). Because \(F_t^*\ge F_t^{(k+1)}, F_t^*\ge F_t^{(k)}, F_t^*-F_t^{(k+1)} \le F_t^*-F_t^{(k)} \), ie., \(0\le \frac{\sum \nolimits _{t=1}^T {\left| {F_t^{(K+1)} -F_t^*} \right| } }{\sum \nolimits _{t=1}^T {\left| {F_t^{(K)} -F_t^*} \right| } }\le 1\). So the discrete iteration method is linearly convergent.

Thus, the proof of Theorem 9 is ended. \(\square \)

5 Numerical example

In this section, a numerical example is given to express the idea of the proposed model. Assume that an investor chooses thirty stocks from Shanghai Stock Exchange for his investment. The stocks codes are, respectively, \(\hbox {S}_{1},.{\ldots }, \hbox {S}_{30}\). He/She intends to make five periods of investment with initial wealth \(W_{1} = 1\) and his wealth can be adjusted at the beginning of each period. He/she assumes that the returns and risk of the thirty stocks at each period are represented as triangular uncertain numbers. We collect historical data of them from April 2006 to March 2017 and set every 3 months as a period to handle the historical data. By using the estimation method in Vercher et al. (2007) to handle their historical data, the triangular uncertain distributions of the return rates of assets at each period can be obtained as shown in Appendix A. According to Eq. (14) and Appendix A, \({ AD}_{t}(r_{it})\) (\(i = 1,{\ldots },30; t = 1,{\ldots },5\)) can be obtained as shown in Appendix B.

Suppose that the unit transaction costs of assets of the two periods investment take the same value \(c_{it} = 0.003\,(i = 1,{\ldots },30; {t} = 1,{\ldots },5)\), the lower bound of the investment proportion of risk-free asset \(x^{b}_{ft }= -0.5\), the borrowing rate of the risk-free asset \(r_{bt}=0.017\), the lending rate of the risk-free asset \(r_{lt}=0.009, t = 1,{\ldots },5\), upper bound constraints \(u_{it}=0.2 ({i} = 1,{\ldots },30; {t} = 1,{\ldots },5)\), the desired number of risky assets in the portfolio \(K =0, {\ldots }, 9\) at period \(t, t = 1,{\ldots },5\).

In case when the \(K=4, \mathrm{AD}_{t}=0.01\), the multiperiod uncertain mean absolute deviation portfolio selection model maximizing the terminal utility is set as follows:

If \(K=4, \mathrm{AD}_{t}=0.01\), the optimal solution of Model (32) will be obtained as Table 1 using the discrete iteration method.

When \(K=4, \mathrm{AD}_{t}=0.01\), the optimal investment strategy at period 1 is \(x_{31} = 0.1853448, x_{171} = 0.2, x_{f1} = 0.6146552\) and being the rest of variables equal to zero, which means investor should allocate his initial wealth on asset 3, asset 17, risk-free asset and otherwise asset by the proportions of 18.53448, 20, 61.46552% and being the rest of variables equal to zero among the thirty stocks, respectively. From Table 1, the optimal investment strategy at period 2, period 3, period 4 and period 5 can also be obtained. In this case, the available terminal wealth is 1.321556.

If \(K=4, \mathrm{AD}_{t}=0.03\), the optimal solution of Model (32) will be obtained as Table 2 using the discrete iteration method.

Table 2 The optimal solution when \(K=4, \mathrm{AD}_{t}=0.03\)
Table 3 The optimal terminal wealth and risk of the portfolio when \({ AD}_{t}=0.07, {K}=0, 1, 2,{\ldots },9\)

When \(K=4, \mathrm{AD}_{t}=0.03\), the optimal investment strategy at period 1 is \(x_{31} = 0.2, x_{171} = 0.2, x_{281} = 0.1935484, x_{f1} = 0.4064516\) and being the rest of variables equal to zero, which means investor should allocate his initial wealth on asset 3, asset 17, asset 28, risk-free asset and otherwise asset by the proportions of 20, 20, 19.35484, 40.64516% and being the rest of variables equal to zero among the thirty stocks, respectively. From Table 2, the optimal investment strategy at period 2, period 3, period 4 and period 5 can also be obtained. In this case, the available terminal wealth is 1.804082.

For a given investment period t, if different parameters of AD\(_{t}, t = 1,{\ldots },5\) are specified for the risk of the portfolio, the corresponding optimal strategies and terminal wealth can also be derived. The detailed results are shown in Tables 1 and 2. For some rational investors, they might not only consider the expectations the terminal wealth of the portfolio, but also concern about the risk, and we can see when the absolute deviations of the portfolio \(\mathrm{AD}_{t}, t = 1,{\ldots },5\) increase, the amounts of borrowing risk-free asset decrease. From Tables 1 and 2, it is easy to find that the terminal wealth become bigger when the \(\mathrm{AD}_{t}\) become bigger.

If \(\mathrm{AD}_{t}=0.07, {K}=0, 1, 2,.{\ldots },9\), the optimal solution of Model (32) will be obtained as the Table 3 using the discrete iteration method.

From Table 3, Fig. 2 which reflects the relationship between K and the terminal wealth of the Model (32) can be obtained as follows.

Fig. 2
figure 2

The relationship between the K and the terminal wealth of the model (32), where x axis is K, y axis is \(W_{6}\)

In the used data sets, the experiments in this paper correspond to the values of K in the interval [0, 9]. It can be seen that, as will be seen in Fig. 2, the terminal wealth becomes bigger, when \(0\le K\le 9\), become larger; the terminal wealth is same, when \(K \ge 9\); which reflects the influence of K on portfolio selection.

If \(K=4, \mathrm{AD}_{t}=0, 0.005, 0.01,{\ldots },0.07\), the optimal solution of Model (32) will be obtained as the Table 4 using the discrete iteration method.

Table 4 the optimal terminal wealth and risk of the portfolio when \(K=4, \mathrm{AD}_{t}=0, 0.005, 0.01,.{\ldots },0.07\)

From Table 4, Fig. 3 which reflects the relationship between \(\mathrm{AD}_{t}\) and the terminal wealth of the Model (32) can be obtained as follows.

Fig. 3
figure 3

The relationship between the \(\mathrm{AD}_{t}\) and the terminal wealth of the model (32), where x axis is \(\mathrm{AD}_{t}\), y axis is \(W_{6}\)

In the used data sets, the experiments in this paper correspond to the values of \(\mathrm{AD}_{t}\) in the interval [0, 0.7]. It can be seen that, as will be seen in Fig. 3, the terminal wealth becomes bigger, when \(0\le { AD}_{t} \le 0.05\), become larger, the terminal wealth is same, when \(\mathrm{AD}_{t} \ge 0.05\); which reflects the influence of \(\mathrm{AD}_{t}\) on portfolio selection.

Table 5 The uncertain return rates on assets of five periods investment

6 Conclusions

In this paper, we consider the multiperiod portfolio selection problem in uncertain environment. We measure the return and the risk of the multiperiod portfolio using the uncertain mean value and the absolute deviation, respectively. A new multiperiod portfolio optimization model with transaction cost, borrowing constraints, threshold constraints and cardinality constraints is proposed. Based on the uncertain theories, the proposed model is transformed into a crisp dynamic optimization problem. Because of the transaction costs and cardinality constraints, the multiperiod portfolio selection is a mix integer dynamic optimization problem with path dependence, which is “NP hard” problem. The model is approximated to a mix integer dynamic programming model. A novel discrete iteration method is designed to obtain the optimal portfolio strategy and is proved linearly convergent. Finally, we give an example to illustrate the idea of the model and demonstrate the effectiveness of the designed algorithm