Re: [ojAlgo-user] MarkowitzModel and Long/Short strategies
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anthony E. <ant...@al...> - 2013-12-02 07:24:15
|
Hi Anders Can we add constraints to the Markowitz class such that the sum of the weights for a few of the assets can be constrained to lie with an upper and lower limit (so we can limit the models exposure on a sector basis)? The javadoc has an addConstraint(lowerlimit, upperlimit, .... indices) but i'm not sure how to use this to achieve whet we need. Thanks again for your help Tony -----Original Message----- From: Anders Peterson Sent: Wednesday, November 06, 2013 7:02 PM To: ojAlgo ojAlgo Subject: Re: [ojAlgo-user] MarkowitzModel and Long/Short strategies Not with the MarkowitzModel class. You'd have to implement your own model using ExpressionsBasedModel. http://ojalgo.org/generated/org/ojalgo/optimisation/ExpressionsBasedModel.html /Andes On 5 nov 2013, at 18:18, Anthony Edwards <ant...@al...> wrote: > Hi > > Is there a way to add a constraint such that the sum of the absolute > values of the weights cannot exceed a specified value? > > I know i can set an upper and lower bound on each weight, but can I > control the sum of the absolute value of the weights? > > Thanks > > Tony > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. > Explore > techniques for threading, error checking, porting, and tuning. Get the > most > from the latest Intel processors and coprocessors. See abstracts and > register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk_______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ ojAlgo-user mailing list ojA...@li... https://lists.sourceforge.net/lists/listinfo/ojalgo-user |