Re: [ojAlgo-user] Markowitz Model Problem
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: <bru...@uk...> - 2009-01-14 08:41:55
|
Hi, even if I am not the expert ni this topic, I think your problem is that actually your model fails to find a solution and then just gives you wrong results that are beyond your constraints. I had this problem to when ysing a sytem with ActiveSetSolver. Before looking at your solution you should check that the optimization actually did not failed. BasicMatrix[] system = new BasicMatrix[6]; //[AE], [be], [Q], [c], [AI], [bi] ..... //create your matrix here ..... ActiveSetSolver as = new ActiveSetSolver(system); OptimisationSolver.Result res = as.solve(); State state = res.getState(); if(state != state.FAILED ) { solution = res.getSolution(); } Let me know if this solve your problem. Regards BF Internet is0...@ma... 14/01/2009 02:58 Please respond to oja...@li... To oja...@li... cc Subject [ojAlgo-user] Markowitz Model Problem Hi, I use the Markowitz model to calculate the optimize some assets' weights, and set all the assets' lowerlimit with Zero and set all the upperlimits with One, but it turns out with some negative value which are little than Zero, it seems that the lowerlimit does not work. So I want to ask what should I do it to confirm the lowerlimit? -- Best regards weichao ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ ojAlgo-user mailing list ojA...@li... https://lists.sourceforge.net/lists/listinfo/ojalgo-user This communication is confidential, may be privileged and is meant only for the intended recipient. If you are not the intended recipient, please notify the sender by reply and delete the message from your system. Any unauthorised dissemination, distribution or copying hereof is prohibited. BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, BNP Paribas Commodity Futures Limited, BNP Paribas Asset Management UK Limited and Investment Fund Services Limited are authorised and regulated by the Financial Services Authority. BNP Paribas London Branch and BNP Paribas Private Bank London Branch are authorised by the CECEI and supervised by the Commission Bancaire. BNP Paribas London Branch is authorised and subject to limited regulation by the Financial Services Authority. Details about the extent of our authorisation and regulation by the Financial Services Authority are available from us on request. BNP Paribas is also a member of the London Stock Exchange. BNP Paribas Private Bank London Branch is subject to limited regulation by the Financial Services Authority. Details about the extent of our authorisation and regulation by the Financial Services Authority are available from us on request. BNP Paribas Securities Services London Branch is authorised by the CECEI and supervised by the AMF, and subject to limited regulation by the Financial Services Authority. Details on the extent of our regulation by the Financial Services Authority are available from us on request. BNP Paribas Securities Services is also a member of the London Stock Exchange. |