views:

243

answers:

2

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).

+1  A: 

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)

Brian Agnew
Yes, I basically want to calculate an efficient frontier.Thank you for the suggestion, I did not know about this tool. Anyhow, the $677 license fee for my team is quite some money... and the tool has many features I will never need (e.g. their scenario approach or support for the CAPM)... :-/
__roland__
A: 

I have the same problem, and have no found the solustion. Have you found the Java library you need ?
My email : [email protected]

Henry_su