quadprog constraints with minimum value
Show older comments
I would like to set up the quadprog constraint for minimum position in each asset as 0 or 0.5%.
Because the solver returns a whole bunch of tiny positions between 0-0.5% which are unrealistic to implement.
Thanks.
Accepted Answer
More Answers (2)
If the lower bounds of asset are set to 0.5%, then all assets in the optimization universe would need to have at least 0.5% weights.
lb is a vector-valued argument. Set each lb(i) to the appropriate lower bound.
Matt J
on 10 May 2022
0 votes
If you have the Global Optimization Toolbox, you could also try using ga() with additional binary variables b(i). Denoting your originally set of continuous variables as x(i), you could impose linear inequality constraints x(i)-0.5*b(i)>=0 to enforce your bounds.
Categories
Find more on Quadratic Programming and Cone Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!