Pure Java open-source libraries for portfolio selection (= constrained, non-linear optimization)? [closed]
-
16-04-2021 - |
Question
Does anyone know or has experience with a pure Java library to select portfolios or do some similar kinds of quadratic programming with constraints?
There seems to be a lot of tools, as already discussed elsewhere - but what I would like to use is a pure Java implementation. Since I want to call the library from within another open-source software with a BSD-ish license I would prefer LGPL over GPL.
Any help is appreciated. If you don't know such libraries, which is the most simple algorithm you would suggest to implement? It has to cope with an inequality constraint (all x_i
>= 0) and an equality constraint (sum of all x_i
= 1).
Solution
Try ojAlgo. This is FOSS with a business friendly licence.
OTHER TIPS
I think WebCab Portfolio may help you. It will handle Markowitz models, efficient frontiers etc. Is that the sort of thing you're addressing above ?
Unfortunately the licensing may cause you problems (but it's runtime-royalty-free, which may be of use)