Lower and upper bound group constraints (and with long/short)? #133
Unanswered
ActurialCapital
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is it possible to add constraints on the sum of weights of different groups of assets, as it's the case in pyportfolioopt
where there are lower and upper bounds for each group?
Here is a dummy example/illustration/implementation in Riskfolio-Lib:
I understood I had to use
assets_constraints(constraints, asset_classes)
. I guess, the idea would be the add something like:and then calculate the weights
but I'm not really sure of the best way to do that. I'm certainly missing something.
I'm also sure it's going to help other users trying to do the same thing.
Thanks Dany for your commitment and hard work.
Beta Was this translation helpful? Give feedback.
All reactions