Re: [ojAlgo-user] quadratic minimization example
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2011-06-30 15:06:15
|
Just use the MarkowitzModel class http://ojalgo.org/generated/org/ojalgo/finance/portfolio/MarkowitzModel.html and/or browse through the list archive. I believe this question (similar questions at least) has been asked before. /Anders On 30 jun 2011, at 02.31, Charley Swift wrote: > I'm working on a portfolio optimization problem, using QP to find the optimal weight (allocation) of each asset in the portfolio. My objective is to minimize variance: find the optimal portfolio weights for the Minimum Variance Portfolio (MVP). Here's an example in R of what I'm trying to do in Java: > > http://quantivity.wordpress.com/2011/04/17/minimum-variance-portfolios/ > > My inputs are an n x n covariance matrix (where n is the number of assets in the portfolio), which I've calculated from the known asset returns. > > The two constraints are: sum of the portfolio weights must add up to 1.0 (allocate all available capital), and all weights must be >= 0 (no shorting allowed). > > Could someone please provide (or point me to) some Java code how to do this in ojAlgo (using its quadratic solver)? > > Thank you, > Charley > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user > > |