How can I find the maximum number of different sized (given range) spheres fitting inside a cube?

54 Views Asked by At

I have spheres of diameter d1, d2, d3 and d4. I have a cube of dimension L. How can I find the numbers of different sized spheres to have a densest possible packing? I have looked below in this page but that is for uniform size (just one size actually)