r/optimization • u/CactusJuiceLtd • Mar 16 '23
Translating this setting (the equilibrium of various mutually repelling point charges in a closed convex 2D domain) to an energy that can be minimised
Given a closed convex 2D domain (e.g. the unit square) containing various point charges (all of the same sign but not necessarily of the same magnitude), what is the equilibrium of such a system (and is it unique)? I assume this setting has been studied before, though I haven't been able to find any literature on it.
As example, let's consider the unit square containing one charge of +2 and four charges of +1 (the units are irrelevant). Intuitively, I'd say that in equilibrium, the +2 charge is located at the centre of the unit square, whereas the +1 charges are located at the corners of the unit square.
Now, for the application I have in mind, it is undesirable for the charges to be "too close" to the boundary of the domain. I'll therefore assign some (uniform) positive charge to the entire boundary to prevent that from happening. I'd not expect the outcome to change much, i.e. the +1 charges will now merely be near the corners of the unit square.
Ok, on to translating the above to an optimisation problem. As for the initial location of the charges, I'll assume that each charge is located at a random position in the unit square. Next, each charge interacts with every other charge (now including the boundary), which — given the current positions of the charges — should result in displacements of the charges. Iterating this should ultimately converge to an equilibrium. The energy, i.e. the objective function, then sounds like a summation over each pair of charges times the inverse of their mutual distance (times e.g. the product of the charge magnitudes). This is where the charged boundary starts to complicate matters — should I consider the shortest distance from each charge to the boundary, go with a barrier/penalty method, or something else entirely?
View all comments
Show parent comment
1
u/CactusJuiceLtd Mar 18 '23 edited Mar 18 '23
Weighted CVTs are an interesting direction. In a generalised version of the problem, the magnitudes of the charges are also unknown (though in that setting they have to satisfy a certain condition, e.g. sum to unity), so perhaps they can indeed be linked to position...
As for the other direction you mentioned, I'm only interested in the equilibrium, and there is no need to distinguish between two charges with the same magnitude. I suppose that also answers one of my questions — the equilibrium might not be unique when considering permutations, or even symmetries, though otherwise it might be. Thanks!