quadprog constraints with minimum value
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (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
el 10 de Mayo de 2022
0 votos
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.
1 comentario
Patrick
el 10 de Mayo de 2022
Categorías
Más información sobre Quadratic Programming and Cone Programming en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!