Skip to main content
Log in

Solving cardinality constrained mean-variance portfolio problems via MILP

  • Original Paper
  • Published:
Annals of Operations Research Aims and scope Submit manuscript

Abstract

Controlling the number of active assets (cardinality of the portfolio) in a mean-variance portfolio problem is practically important but computationally demanding. Such task is ordinarily a mixed integer quadratic programming (MIQP) problem. We propose a novel approach to reformulate the problem as a mixed integer linear programming (MILP) problem for which computer codes are readily available. For numerical tests, we find cardinality constrained minimum variance portfolios of stocks in S&P500. A significant gain in robustness and computational effort by our MILP approach relative to MIQP is reported. Similarly, our MILP approach also competes favorably against cardinality constrained portfolio optimization with risk measures CVaR and MASD. For illustrations, we depict portfolios in a portfolio map where cardinality provides a third criterion in addition to risk and return. Fast solution allows an interactive search for a desired portfolio.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. A drawback of the exact methods is that usually their computer codes are not publicly available. Moreover, programming languages provide various features for optimizing a code without modifying the algorithm and the performance of the method may depend on skills of the user. Hence, it is impractical to test the methods on new data sets and compare with competing methods.

  2. If CPLEX is used to solve MILP problems, it is possible to use “indicator constraints” and avoid using big M. In this approach, constraint \(h_{i}\ge -M(1-y_{i})\) is written as “if \(y_{i}=1\) then \(h_{i}\ge 0\) ”.

  3. By inexact methods we mean, for instance, heuristic methods or exact methods which are terminated due to loose tolerances or before optimality is confirmed.

References

  • Anagnostopoulos, K. P., & Mamanis, G. (2010). A portfolio optimization model with three objectives and discrete variables. Computers & Operations Research, 37(7), 1285–1297.

    Article  Google Scholar 

  • Anagnostopoulos, K. P., & Mamanis, G. (2011). The mean-variance cardinality constrained portfolio optimization problem: An experimental evaluation of five multiobjective evolutionary algorithms. Expert Systems with Applications, 38(11), 14208–14217.

    Google Scholar 

  • Artzner, P., Delbaen, F., Eber, J.-M., & Heath, D. (1999). Coherent measures of risk. Mathematical Finance, 9(3), 203–228.

    Article  Google Scholar 

  • Bermúdez, J. D., Segura, J. V., & Vercher, E. (2012). A multi-objective genetic algorithm for cardinality constrained fuzzy portfolio selection. Fuzzy Sets and Systems, 188(1), 16–26.

    Article  Google Scholar 

  • Bertsimas, D., & Shioda, R. (2009). Algorithm for cardinality-constrained quadratic optimization. Computational Optimization and Applications, 43(1), 1–22.

    Article  Google Scholar 

  • Bomze, I. (1998). On standard quadratic optimization problems. Journal of Global Optimization, 13(4), 369–387.

    Article  Google Scholar 

  • Burdakov, O., Kanzow, C., & Schwartz, A. (2014). Mathematical programs with cardinality constraints: Reformulation by complementarity-type constraints and a regularization method. University of Würzburg.

  • Cesarone, F., Scozzari, A., & Tardella, F. (2013). A new method for mean-variance portfolio optimization with cardinality constraints. Annals of Operations Research, 205(1), 213–234.

    Article  Google Scholar 

  • Cesarone, F., Scozzari, A., & Tardella, F. (2015). Linear vs. quadratic portfolio selection models with hard real-world constraints. Computational Management Science, 12, 345-370.

  • Chang, T.-J., Meade, N., Beasley, J. E., & Sharaiha, Y. M. (2000). Heuristics for cardinality constrained portfolio optimisation. Computers & Operations Research, 27(13), 1271–1302.

    Article  Google Scholar 

  • Chang, T.-J., Yang, S.-C., & Chang, K.-J. (2009). Portfolio optimization problems in different risk measures using genetic algorithm. Expert Systems with Applications, 36(7), 10529–10537.

    Article  Google Scholar 

  • Di Lorenzo, D., Liuzzi, G., Rinaldi, F., Schoen, F., & Sciandrone, M. (2012). A concave optimization-based approach for sparse portfolio selection. Optimization Methods and Software, 27(6), 983–1000.

    Article  Google Scholar 

  • Fernández, A., & Gómez, S. (2007). Portfolio selection using neural networks. Computers & Operations Research, 34(4), 1177–1191.

    Article  Google Scholar 

  • Gomez, M., Flores, C. & Osorio, M. (2006). Hybrid search for cardinality constrained portfolio optimization. In Proceedings of the 8th annual conference on genetic and evolutionary computation, pp. 1865–1866.

  • Gulpinar, N., An, L., & Moeini, M. (2010). Robust investment strategies with discrete asset choice constraints using DC programming. Optimization, 59(1), 45–62.

    Article  Google Scholar 

  • Jobst, N. J., Horniman, M. D., Lucas, C. A., & Mitra, G. (2001). Computational aspects of alternative portfolio selection models in the presence of discrete asset choice constraints. Quantitative Finance, 1(5), 489–501.

    Article  Google Scholar 

  • Kallio, M., & Dehghan Hardoroudi, N. (2015). SSD constrained portfolio optimization: Theory and computational tests. Helsinki: Aalto University School of Business.

    Google Scholar 

  • Li, D., Sun, X., & Wang, J. (2006). Optimal lot solution to cardinality constrained mean-variance formulation for portfolio selection. Mathematical Finance, 16(1), 83–101.

    Article  Google Scholar 

  • Mandelbrot, B. (1993). The variation of certain speculative prices. The Journal of Business of the University of Chicago, 26(1993), 394–419.

    Google Scholar 

  • Mansini, R., Ogryczak, W., & Speranza, M. G. (2014). Twenty years of linear programming based portfolio optimization. European Journal of Operational Research, 234, 518–535.

    Article  Google Scholar 

  • Maringer, D., & Kellerer, H. (2003). Optimization of cardinality constrained portfolios with a hybrid local search algorithm. Or Spectrum, 25, 481–495.

    Article  Google Scholar 

  • Markowitz, H. M. (1952). Portfolio selection. The Journal of Finance, 7(1), 77–91.

    Google Scholar 

  • Markowitz, H. M. (1959). Portfolio selection: Efficient diversification of investments. New York: Wiley.

    Google Scholar 

  • Markowitz, H. M. (2012). Mean-variance approximation to geometric mean. Annals of Financial Economics, 7(1), 1–30.

    Article  Google Scholar 

  • Markowitz, H. M. (2014). Mean-variance approximations to expected utility. European Journal of Operational Research, 234(2), 346–355.

    Article  Google Scholar 

  • Mitra, G., Kyriakis, T., Lucas, C. & Pirbhai M. (2003). A review of portfolio planning: Models and systems, Brunel University.

  • Murray, W., & Shek, H. (2012). A local relaxation method for the cardinality constrained portfolio optimization problem. Computational Optimization and Applications, 53(3), 681–709.

    Article  Google Scholar 

  • Ogryczak, W., & Ruszczyński, A. (1999). From stochastic dominance to mean-risk models: Semideviations as risk measures. European Journal of Operational Research, 116(1), 33–50.

    Article  Google Scholar 

  • Pflug, G. (2001). Some remarks on the value-at-risk and the conditional value-at-risk. In S. Uryasev (Ed.), Probabilistic constrained optimization: Methodology and applications. Berlin: Kluwer Academic Publishers.

    Google Scholar 

  • Rockafellar, R. T., & Uryasev, S. (2002). Conditional value-at-risk for general loss distributions. Journal of Banking & Finance, 26, 1443–1471.

    Article  Google Scholar 

  • Ruszczynski, A., & Vanderbei, R. (2003). Frontiers of stochastically nondominated portfolios. Econometrica, 71(4), 1287–1297.

    Article  Google Scholar 

  • Shaw, D., Liu, S., & Kopman, L. (2008). Lagrangian relaxation procedure for cardinality-constrained portfolio optimization. Optimisation Methods & Software, 23(3), 411–420.

    Article  Google Scholar 

  • Soleimani, H., Golmakani, H., & Salimi, M. (2009). Markowitz-based portfolio selection with minimum transaction lots, cardinality constraints and regarding sector capitalization using genetic algorithm. Expert Systems with Applications, 36(3), 5058–5063.

    Article  Google Scholar 

  • Vielma, J. P., Ahmed, S., & Nemhauser, G. L. (2008). A lifted linear programming branch-and-bound algorithm for mixed-integer conic quadratic programs. INFORMS Journal on Computing, 20(3), 438–450.

    Article  Google Scholar 

  • Woodside-Oriakhi, M., Lucas, C., & Beasley, J. E. (2011). Heuristic algorithms for the cardinality constrained efficient frontier. European Journal of Operational Research, 213(3), 538–550.

    Article  Google Scholar 

Download references

Acknowledgements

The authors would like to express their gratitude to the anonymous referees and the Editor-in-Chief of the journal for the helpful comments and suggestions on this paper. The first author would like to thank the Jenny and Antti Wihuri Foundation for their support in funding this research.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Abolfazl Keshvari.

Additional information

The first author is supported by the Jenny and Antti Wihuri Foundation.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Dehghan Hardoroudi, N., Keshvari, A., Kallio, M. et al. Solving cardinality constrained mean-variance portfolio problems via MILP. Ann Oper Res 254, 47–59 (2017). https://doi.org/10.1007/s10479-017-2447-x

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10479-017-2447-x

Keywords

Navigation