An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization

Portfolio optimization is one of the problems most frequently encountered by financial practitioners. The main goal of this paper is to fill a gap in the literature by providing a well-documented, step-by-step open-source implementation of Critical Line Algorithm (CLA) in scientific language. The co...

Full description

Bibliographic Details
Main Authors: David H. Bailey, Marcos López de Prado
Format: Article
Language:English
Published: MDPI AG 2013-03-01
Series:Algorithms
Subjects:
Online Access:http://www.mdpi.com/1999-4893/6/1/169
id doaj-9c50d0d3a0304f40b78d09e591ff6a95
record_format Article
spelling doaj-9c50d0d3a0304f40b78d09e591ff6a952020-11-25T00:25:00ZengMDPI AGAlgorithms1999-48932013-03-016116919610.3390/a6010169An Open-Source Implementation of the Critical-Line Algorithm for Portfolio OptimizationDavid H. BaileyMarcos López de PradoPortfolio optimization is one of the problems most frequently encountered by financial practitioners. The main goal of this paper is to fill a gap in the literature by providing a well-documented, step-by-step open-source implementation of Critical Line Algorithm (CLA) in scientific language. The code is implemented as a Python class object, which allows it to be imported like any other Python module, and integrated seamlessly with pre-existing code. We discuss the logic behind CLA following the algorithm’s decision flow. In addition, we developed several utilities that support finding answers to recurrent practical problems. We believe this publication will offer a better alternative to financial practitioners, many of whom are currently relying on generic-purpose optimizers which often deliver suboptimal solutions. The source code discussed in this paper can be downloaded at the authors’ websites (see Appendix).http://www.mdpi.com/1999-4893/6/1/169portfolio selectionquadratic programmingportfolio optimizationconstrained efficient frontierturning pointKuhn-Tucker conditionsrisk aversion
collection DOAJ
language English
format Article
sources DOAJ
author David H. Bailey
Marcos López de Prado
spellingShingle David H. Bailey
Marcos López de Prado
An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
Algorithms
portfolio selection
quadratic programming
portfolio optimization
constrained efficient frontier
turning point
Kuhn-Tucker conditions
risk aversion
author_facet David H. Bailey
Marcos López de Prado
author_sort David H. Bailey
title An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
title_short An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
title_full An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
title_fullStr An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
title_full_unstemmed An Open-Source Implementation of the Critical-Line Algorithm for Portfolio Optimization
title_sort open-source implementation of the critical-line algorithm for portfolio optimization
publisher MDPI AG
series Algorithms
issn 1999-4893
publishDate 2013-03-01
description Portfolio optimization is one of the problems most frequently encountered by financial practitioners. The main goal of this paper is to fill a gap in the literature by providing a well-documented, step-by-step open-source implementation of Critical Line Algorithm (CLA) in scientific language. The code is implemented as a Python class object, which allows it to be imported like any other Python module, and integrated seamlessly with pre-existing code. We discuss the logic behind CLA following the algorithm’s decision flow. In addition, we developed several utilities that support finding answers to recurrent practical problems. We believe this publication will offer a better alternative to financial practitioners, many of whom are currently relying on generic-purpose optimizers which often deliver suboptimal solutions. The source code discussed in this paper can be downloaded at the authors’ websites (see Appendix).
topic portfolio selection
quadratic programming
portfolio optimization
constrained efficient frontier
turning point
Kuhn-Tucker conditions
risk aversion
url http://www.mdpi.com/1999-4893/6/1/169
work_keys_str_mv AT davidhbailey anopensourceimplementationofthecriticallinealgorithmforportfoliooptimization
AT marcoslopezdeprado anopensourceimplementationofthecriticallinealgorithmforportfoliooptimization
AT davidhbailey opensourceimplementationofthecriticallinealgorithmforportfoliooptimization
AT marcoslopezdeprado opensourceimplementationofthecriticallinealgorithmforportfoliooptimization
_version_ 1725350330858733568