Processing math: 100%

Monday, November 14, 2016

Taxicab distances: L1 norm minimization

From this post:

Suppose we are given n points A1,,AnR2. The task is to find a point x=(x1,x2)R2 such that the sum of distances to the points A1,,An in the 1-norm is minimized. Formulate this problem as a linear program.

There are at least two (primal) formulations. A variable splitting technique can look like:

mini,jy+i,j+yi,jy+i,jyi,j=xjAi,jy+i,j0,yi,j0

A different formulation is

mini,jyi,jyi,jxjAi,jyi,jyi,j0

I don’t think this formulation has a name. We can drop yi,j0 if we want, as this is implied by yi,jyi,j.

If you let mathematicians loose on this, you may end up with formulation 2 stated as:

minimize12nysubject toy(1nI2)xvec(A)yy02n

I don’t really like this type of notation: at least for me it is much less intuitive.

The first formulation has fewer equations but more variables. The second formulation has more constraints as we need to split yi,jxjAi,jyi,j into xjAi,jyi,j and xjAi,jyi,j. I don’t think there is much reason to choose one formulation above the other. Depending largely on my mood I use either version 1 or 2.

No comments:

Post a Comment