An inverse approach to the center problem