quadprog constraints with minimum value
古いコメントを表示
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.
採用された回答
その他の回答 (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
2022 年 5 月 10 日
0 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Quadratic Programming and Cone Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!