Skip to content

A Java implementation of the VBA code for the Critical Line Algorithm in the book "Mean-Variance Analysis in Portfolio Choice and Capital Markets" by Harry M. Markowitz

License

Notifications You must be signed in to change notification settings

sweisser/critical_lines_java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Java implementation of the VBA code for the Critical Line Algorithm in the book "Mean-Variance Analysis in Portfolio Choice and Capital Markets" by Harry M. Markowitz

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages