Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Jul 28;17(7):e0271811.
doi: 10.1371/journal.pone.0271811. eCollection 2022.

Constrained portfolio optimization with discrete variables: An algorithmic method based on dynamic programming

Affiliations

Constrained portfolio optimization with discrete variables: An algorithmic method based on dynamic programming

Fereshteh Vaezi Jezeie et al. PLoS One. .

Abstract

Portfolio optimization is one of the most important issues in financial markets. In this regard, the more realistic are assumptions and conditions of modelling to portfolio optimization into financial markets, the more reliable results will be obtained. This paper studies the knapsack-based portfolio optimization problem that involves discrete variables. This model has two very important features; achieving the optimal number of shares as an integer and with masterly efficiency in portfolio optimization for high priced stocks. These features have added some real aspects of financial markets to the model and distinguish them from other previous models. Our contribution is that we present an algorithm based on dynamic programming to solve the portfolio selection model based on the knapsack problem, which is in contrast to the existing literature. Then, to show the applicability and validity of the proposed dynamic programming algorithm, two case studies of the US stock exchange are analyzed.

PubMed Disclaimer

Conflict of interest statement

The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. Table shape.
Fig 2
Fig 2. Flowchart of the proposed algorithm.

Similar articles

References

    1. Markowitz H. Portfolio Selection in The Journal of Finance Vol. 7. 1952.
    1. Markovitz HM. Portfolio selection: Efficient diversification of investments. John Wiley; 1959.
    1. Vaezi F, Sadjadi SJ, Makui A. A portfolio selection model based on the knapsack problem under uncertainty. PloS One. 2019;14(5):e0213652. doi: 10.1371/journal.pone.0213652 - DOI - PMC - PubMed
    1. Vaezi F, Sadjadi SJ, Makui A. A Robust Knapsack Based Constrained Portfolio Optimization. Int J Eng. 2020;33(5):841–51.
    1. Vaezi F, Sadjadi SJ, Makui A. Iranian Journal of Economic Studies. Iran J Econ Stud. 2020;9(2):569–94.