You may want to look at the literature on index
tracking; perhaps you find useful ideas there.
I would write and solve it as an optimisation
model. Since you seem most interested in the number of
assets that are required to closely replicate your
basket (i.e. the cardinality of the replicating
basket), you could solve the model for different