What algorithm can be used for packing identical cylinders into a rectangular prism in an optimal way in MATLAB?

76 Views Asked by At

I am trying to fit a maximum number of fixed-size cylinders into a fixed volume and plot them in 3D (e. g. image).

The constraints are the fixed volume, dimensions of the cylinders, the gaps between the cylinders and the gap to the walls.