(This is a modification of a previous question where my hopes were too general.)
Let $X$ be a closed constant curvature surface and consider the function $f_n : X \times \cdots \times X \to \mathbb{R}$ where the domain of $f_n$ is the $n$-fold cartesian product of $X$ and where $f_n(p_1,...,p_n) = \sum_{i \neq j} d(p_i, p_j)$ where $d$ is the distance function on $X$. The function $f_n$ is invariant under the action of the isometry group $G = \text{Isom}(X)$ on the $n$-fold product $X^n$ as well as the action of the symmetric group on $n$ letters $S_n$ acting on $X^n$ by permuting the factors
Is the maxima of $f_n$ on $X^n / (G \times S_n)$ unique? If not are the maxima at least isolated?
In dimension 1, the maximum is unique and achieved by the regular $n$-gon. My initial inspiration was that I was considering this question for $S^2$.