Given some spheres with known radius and known origin in three dimensional space, I want to find the point P that lies "closest" to all these spheres. The meassure of closeness, I guess, will be the sum of the squared distances from the point P to each of the spheres.
Is there any good solution to this problem? Any numerical solution that will converge to give the correct answer, or any fixed solution? As far as I know this problem is neither convex nor linear, so I am fearing the worst.
(With close to sphere, I mean close to the boundary of the sphere. If it lies outside or inside does not matter.)
The distance from $P$ to a sphere $S_i$ can be expressed as
$d_i = \max \{ ||P-C_i||_2 - R_i, R_i - ||P-C_i||_2\},$
so that your problem is
$\min \sum d^2_i $
$ d_i \geq ||P-C_i||_2 - R_i \quad i=1,...$
$ d_i \geq R_i - ||P-C_i||_2\quad i=1,...$
This is a nonconvex smooth nonlinear optimization problem, due to the second set of constraints. In general I guess some randomized algorithm coupled with smooth local searches would do. But of course depends on how many spheres.