(* Kr atom Kimball, Ne,Ar,Zn-centers, 4 4s5p-spheres tetrahedral 21.12.2011 *)
Clear[k1,k2,k3,k4,k5,sig1,sig2,sig3,sig4,sig5,c,z,R1,R2,R3,R4,R5,S2,S3,S4];
c = {k1 -> 1.0, k2 -> 1.0, k3 -> 1.0, k4 -> 1.0, k5 -> 1.0, sig1 -> 0.3, sig2 -> 0.302, sig3 -> 0.302, sig4 -> 0.302, sig5 -> 0.302}; z=36.;

(* He+Ne shell *)
T = 2.25*k1/R1^2+9.*k2/R2^2 /. c;
ad = Sqrt[3./8.]; 
Vee=3.0*sig1/R1+12.*sig2/R2+16/(R1+R2)+24*ad/(R1+R2) /. c;
Vne=-3.0*z/R1-8.*z/(R1+R2);
S2 = R2*4^(1/3);

(* Ar shell *)
T = T + 9.*k3/R3^2 /. c;
Vee = Vee+12.*sig3/R3+80./(S2+R3)+24.*ad/(S2+R3) /. c;
Vne = Vne-8.45*z/(S2+R3);
S3 = R3*4^(1/3);

(* Zn shell octahedron, d10 with 2 charges; *)
T = T + (12.*9./8)*k4/R4^2 /. c;
Vee = Vee+6.*3.*sig4/R4+(216.+60./Sqrt[2])/(S3+R4) /. c;
Vne = Vne - 12.6*z/(S3+R4);
S4 = R4*6^(1/3);

(* Kr shell *)
T = T + 9.*k5/R5^2 /. c;
Vee = Vee+12.*sig5/R5+224./(S4+R5)+24.*ad/(S4+R5) /. c;
Vne = Vne-8.45*z/(S4+R5);
S5 = R5*4^(1/3);

func = T + Vee + Vne;

t = FindMinimum[func, {R1,0.036404}, {R2,0.10725}, {R3,0.21073}, {R4,0.40107},{R5,0.97033},{Method -> Automatic}, {MaxIterations -> 500}]

N[Vne /. c /. t[[2]],10]
N[Vee /. c /. t[[2]],10]
N[-(Vee+Vne)/T /. c /. t[[2]],10]
N[(S2+R3) /. c /. t[[2]],10]
N[(S3+R4) /. c /. t[[2]],10]
N[(S4+R5) /. c /. t[[2]],10]