I have two sets of events (a, b) taking place at times $a_i$ and $b_j$, |a|=N, |b|=M, $N \geq M$. I now wish to find a subset $ \mathbf{a}^*$ of a consisting of M elements, such that $||a^*-b||$ is minimized (the norm is whatever choice makes this problem doable, such as for instance L-1 or L-2).
Another way to look at it is that I wish to throw away (N-M) elements from a, such that the remaining elements of a are as close as possible to the elements of b.
After reduction of, a, we may assume that the i'th element of a is to be matched with the i'th element of b.
Is there some sort of convex optimization strategy for solving this, or how do I go about it?