MATLAB: Limited number of Assets in a universe, with constraints.

assetconstraintsFinancial Toolboxlinear inequalitiesoptimisationportconsportfolio

Hi,
I was wondering if someone could help me regarding portfolio construction and constraints.
Linear inequalities are quite straigtforward, however I cannot figure out how to limit the number of asset selected.
Building constraints, if I get 10 columns each representing an asset, is there a way to specify that the asset weight can only be 0 or between 0.2 and 0.5? (which would limit the number of asset to be selected)
Thank you

Best Answer

You could solve the 2^10 separate problems corresponding to the different combinations of assets, each time deleting the corresponding columns from your problem data.
2^10 is not such a big number to loop over.