N-Dimensional Shape Optimization under Capacitary Constraint