Formulate a 2-clustering problem in LP

The problem:

Suppose there are $$n$$ points in plane, and we want to partition points into two clusters such that sum of diameter of clusters is minimized. The diameter of cluster is maximum distance between each pair of points.

My question is, how we can formulate above problem in LP manner?

My attempt:

I think so much to find a LP formulation for above problem but i have no idea.

Let $$P$$ be the given set of points. Declare a variable $$x_p$$ for every point $$p \in P$$ in the plane. Set $$x_p = 1$$ if point $$p$$ belongs to cluster $$1$$ and $$x_p = -1$$ if point $$p$$ belongs to cluster $$2$$. Then, the integer linear program would be as follows:

Objective function: minimize $$d_1+d_2$$

Constraints:

$$\frac{(x_p + x_{p'})}{2} \cdot d(p,p') \leq d_1$$ for every pair $$p,p' \in P$$

$$-\frac{(x_p + x_{p'})}{2} \cdot d(p,p') \leq d_2$$ for every pair $$p,p' \in P$$

$$x_p \in \{1,-1 \}$$ for every point $$p \in P$$

$$d_1,d_2 \geq 0$$

Here, $$d(p,p')$$ denotes the distance between points $$p$$ and $$p'$$.

• @MohammadRostami $x_p + x_{p'} = 0$ Commented Aug 27, 2021 at 9:47
• @MohammadRostami I do not think so. In general, solving an Integer linear program is NP-hard. Commented Aug 27, 2021 at 14:41