Hi Team,

I recently looked into the portfolio construction through universes. I am very impressed by this work, but I would like to add an additional constraint to the MinimumVariancePortfolioOptimizer. I would like to enforce that if I have a universe of N securities, I only select up to M securities. For example, if I have a universe of size 10, I might pick the 3 that yield me with the lowest mean variance. I am a bit stumped as to how to approach this. Can anyone help me through this?

 

Thank you,

Jec