Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 687 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 687 Bytes

Critical Line Algorithm

Port of the VBA code in the book "Mean-Variance Analysis in Portfolio Choice and Capital Markets" by Harry M. Markowitz to Java.

The code is not very well tested, so use it for educational purposes only.

The test case provided in the book works.

The code works, but could still use more refactoring (some has been done, but there is more potential).

The main challenge was to get the array indexes right. In VBA, array indices start at 1, whereas in Java they start at 0, which was not always trivial. I have adjusted all the index logic. But since I only have the test case in the book, there may still be some bugs. So be careful when using the code.