Packing Multidimensional Spheres in an Optimized Hyperbolic Container
Abstract
1. Introduction
- ○
- A new problem of packing multidimensional spheres into a minimum-height hyperbolic container is introduced.
- ○
- Non-overlapping and containment conditions for packing multidimensional spheres in the hyperbolic container, considering minimal allowable distances, are presented, using a space dimensionality reduction transformation and the phi-function technique.
- ○
- A novel mathematical model for packing multidimensional spheres in the optimized hyperbolic container is formulated.
- ○
- A model-based heuristic combined with a decomposition approach is developed to solve the corresponding large-scale nonconvex optimization problem.
- ○
- Numerical results are provided to demonstrate the efficiency of the proposed approach for a wide range of space dimensions, number of spheres, and metric characteristics of the hyperbolic container.
2. Problem Formulation
3. Tools of Mathematical Modeling
3.1. Modeling Containment Constraint:
3.2. Modeling Containment Constraint:
3.3. Modeling Non-Overlapping Constraint for Two Spheres and
4. Mathematical Models
5. Solution Algorithms
5.1. Packing Spheres into the Container
5.2. Packing Spheres into the Container
6. Numerical Examples
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A. Basic Definitions of Phi-Functions
- is positive for cases when objects and do not intersect, ,
- is 0 for cases when objects and touch, and , is negative for cases when objects and have common interior points, .
- is positive for cases when the Euclidean distance between objects and is greater than ,
- is 0 for cases when the Euclidean distance between objects and is equal to ,
- is negative for cases when the Euclidean distance between objects and is less than .
- non-overlapping condition: and do not intersect but can touch each other, i.e., ;
- containment condition: is arranged fully inside the container , i.e., , where .
- (non-overlapping condition).
- (containment condition).
- for (distant condition).
- (distant condition).
- for (distant condition).
- (distant condition).
Appendix B. Constructing Phi-Functions for Containment Conditions


Appendix C. Algorithm for Generating Feasible Starting Points for the PSH Problem
| Algorithm A1: Container |
| Step 1. Set (), . Step 2. Set , Step 3. Calculate and as a result of solving the problem (4). Step 4. If , then go to Step 5; otherwise go to Step 2. Step 5. Set . Step 6. If , then stop algorithm with , , , . Step 7. Set , Step 8. Calculate and as a result of solving the problem (4). Step 9. If , then go to Step 7, otherwise go to Step 10. Step 10. Set . Step 11. If , then go to Step 7, otherwise go to Step 12. Step 12. Set . Step 13. If then go to Step 5, otherwise go to Step 10. |
| Algorithm A2: Container |
Step 1. Set (), . Step 2. Set . Step 3. Set , , Step 4. If () then go to Step 5; otherwise go to Step 3. Step 5. Set . Step 6. If , then stop algorithm with , , , . Step 7. Set , . Step 9. If (), then go to Step 7, otherwise go to Step 10. Step 10. Set . Step 11. If , then go to Step 7, otherwise go to Step 12. Step 12. Set . Step 13. If then go to Step 5, otherwise go to Step 10. |
References
- Waescher, G.; Hausner, H. An improved typology of cutting and packing problems. Eur. J. Oper. Res. 2007, 183, 1109–1130. [Google Scholar] [CrossRef]
- Gibson, I.; Rosen, D.; Stucker, B. Additive Manufacturing Technologies, 3D Printing, Rapid Prototyping, and Direct Digital Manufacturing; Springer Science + Business Media: New York, NY, USA, 2015. [Google Scholar]
- Lachmayer, R.; Lippert, R.B. Additive Manufacturing. Quantifiziert–Visionäre Anwendungen und Stand der Technik; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
- Sobirey, E.; Wegner, M.; Laukotka, F.N.; Krause, D. Printing study and design guideline for small hollow structures in medical technology. Proc. Des. Soc. 2024, 4, 1849–1858. [Google Scholar] [CrossRef]
- Burtseva, L.; Valdez Salas, B.; Werner, F.; Petranovskii, V. Packing of monosized spheres in a cylindrical container: Models and approaches. Rev. Mex. Fis. 2015, 61, 20–27. [Google Scholar]
- Tisato, S.; Vera, G.; Song, Q.; Nekoonam, N.; Helmer, D. Additive manufacturing of multi-material and hollow structures by Embedded Extrusion-Volumetric Printing. Nat. Commun. 2025, 16, 6730. [Google Scholar] [CrossRef] [PubMed]
- Khecho, A.; Rahman, M.T.; Reddy, D.; El-Ghannam, A.; Joyee, E.B. DLP-based additive manufacturing of hollow 3D structures with surface activated silicone carbide-polymer composite. Compos. Part B Eng. 2025, 296, 112236. [Google Scholar] [CrossRef]
- Liu, F.; Chen, M.; Wang, L.; Luo, T.; Chen, G. Stress-field driven conformal lattice design using circle packing algorithm. Heliyon 2023, 9, e14448. [Google Scholar] [CrossRef]
- Wang, G.; Shen, L.; Zhao, J.; Liang, H.; Xie, D.; Tian, Z.; Wang, C. Design and Compressive Behavior of Controllable Irregular Porous Scaffolds: Based on Voronoi-Tessellation and for Additive Manufacturing. ACS Biomater. Sci. Eng. 2018, 4, 719–727. [Google Scholar] [CrossRef]
- Hopkins, A.B.; Stillinger, F.H.; Torquato, S. Densest binary sphere packings. Phys. Rev. E 2012, 85, 021130. [Google Scholar] [CrossRef]
- Boschetti, F.; Tomei, A.; Turri, S.; Swartz, M.; Levi, M. Fabrication, and Characterization of a Composite Scaffold for Bone Tissue Engineering. Int. J. Artif. Organs 2018, 31, 697–707. [Google Scholar] [CrossRef]
- Hendrikson, W.J.; van Blitterswijk, C.A.; Rouwkema, J.; Moroni, L. The Use of Finite Element Analyses to Design and Fabricate Three-Dimensional Scaffolds for Skeletal Tissue Engineering. Front. Bioeng. Biotechnol. 2017, 5, 30. [Google Scholar] [CrossRef] [PubMed]
- Zhu, T.; Zhou, H.; Chen, X.; Zhu, Y. Recent advances of responsive scaffolds in bone tissue engineering. Front. Bioeng. Biotechnol. 2023, 11, 1296881. [Google Scholar] [CrossRef]
- Kumar, Y.; Deep, K. Metaheuristic Algorithms for Circle Packing Problem: A Comprehensive Review. In Metaheuristics and Nature Inspired Computing. META 2023. Communications in Computer and Information Science; Dorronsoro, B., Ellaia, R., Talbi, E.G., Eds.; Springer: Cham, Switzerland, 2024; Volume 2016. [Google Scholar] [CrossRef]
- Kampas, F.J.; Pintér, J.D.; Castillo, I. Packing ovals in optimized regular polygons. J. Glob. Optim. 2019, 77, 175–196. [Google Scholar] [CrossRef]
- Kampas, F.J.; Castillo, I.; Pintér, J.D. Optimized ellipse packings in regular polygons. Optim. Lett. 2019, 13, 1583–1613. [Google Scholar] [CrossRef]
- Fischer, A.; Litvinchev, I.; Romanova, T.; Stetsyuk, P.; Yaskov, G. Quasi-Packing Different Spheres with Ratio Conditions in a Spherical Container. Mathematics 2023, 11, 2033. [Google Scholar] [CrossRef]
- Amore, P.; de la Cruz, D.; Hernandez, V.; Rincon, I.; Zarate, U. Circle packing in arbitrary domains. Phys. Fluids 2023, 35, 127112. [Google Scholar] [CrossRef]
- Kolli, U.C. Hyperbolic Geometry and Its Applications. Int. J. Res. Anal. Rev. 2017, 4, 54. [Google Scholar]
- Hu, N.; Fish, J. Enhanced ant colony optimization for multiscale problems. Comput. Mech. 2016, 57, 447–463. [Google Scholar] [CrossRef]
- Mughal, A.; Chan, H.K.; Weaire, D.; Hutzler, S. Dense packings of spheres in cylinders: Simulations. Phys. Rev. E 2012, 85, 051305. [Google Scholar] [CrossRef]
- Rodgers, R.P.C.; Baddeley, A.J. Nested Monte Carlo Study of Random Packing on the Sphere. J. Appl. Probab. 1991, 28, 539–552. [Google Scholar] [CrossRef][Green Version]
- Baradaran, M.; Poveda, J.I.; Teel, A.R. Global Optimization on the Sphere: A Stochastic Hybrid Systems Approach. IFAC-Pap. 2019, 52, 96–101. [Google Scholar] [CrossRef]
- Castillo, I.; Kampas, F.J.; Pintér, J.D. Solving circle packing problems by global optimization: Numerical results and industrial applications. Eur. J. Oper. Res. 2008, 191, 786–802. [Google Scholar] [CrossRef]
- Pintér, J.D.; Castillo, I.; Kampas, F.J. Nonlinear Optimization and Adaptive Heuristics for Solving Irregular Object Packing Problems. Algorithms 2024, 17, 480. [Google Scholar] [CrossRef]
- Liu, J.; Yao, Y.; Zheng, Y.; Geng, H.; Zhou, G. An Effective Hybrid Algorithm for the Circles and Spheres Packing Problems. In Combinatorial Optimization and Applications; COCOA 2009. Lecture Notes in Computer Science; Du, D.Z., Hu, X., Pardalos, P.M., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; Volume 5573. [Google Scholar] [CrossRef]
- Zhang, D.F.; Deng, A.S. An effective hybrid algorithm for the problem of packing circles into a larger containing circle. Comput. Oper. Res. 2005, 32, 1941–1951. [Google Scholar] [CrossRef]
- Ye, T.; Huang, W.; Lü, Z. Iterated Tabu Search Algorithm for Packing Unequal Circles in a Circle. arXiv 2013, arXiv:1306.0694. [Google Scholar] [CrossRef]
- Hifi, M.; Yousef, L. A dichotomous search-based heuristic for the three-dimensional sphere packing problem. Cogent Eng. 2015, 2, 994257. [Google Scholar] [CrossRef]
- Kelley, J.L. General Topology; Springer: Berlin/Heidelberg, Germany, 1975. [Google Scholar]
- Chernov, N.; Stoyan, Y.; Romanova, T. Mathematical model and efficient algorithms for object packing problem. Comput. Geom. 2010, 43, 535–553. [Google Scholar] [CrossRef]
- Fasano, G. Solving Non-Standard Packing Problems by Global Optimization and Heuristics; Springer: Cham, Switzerland, 2014. [Google Scholar]
- Chen, X.; Kostreva, M.M. Methods of Feasible Directions: A Review. In Progress in Optimization. Applied Optimization; Yang, X., Mees, A.I., Fisher, M., Jennings, L., Eds.; Springer: Boston, MA, USA, 2000; Volume 39. [Google Scholar] [CrossRef]
- Stoyan, Y.; Yaskov, G.; Romanova, T.; Litvinchev, I.; Yakovlev, S.; Cantú, J.M.V. Optimized packing multidimensional hyperspheres: A unified approach. Math. Biosci. Eng. 2020, 17, 6601–6630. [Google Scholar] [CrossRef]
- Romanova, T.; Stoyan, Y.; Pankratov, A.; Litvinchev, I.; Marmolejo, J.A. Decomposition algorithm for irregular placement problems. In Intelligent Computing and Optimization; ICO 2019. AISC; Vasant, P., Panchenko, V., Munapo, E., Weber, G.-W., Thomas, J.J., Intan, R., Arefin, M.S., Eds.; Springer: Cham, Switzerland, 2020; Volume 1072, pp. 214–221. [Google Scholar] [CrossRef]
- IPOPT: Documentation. Available online: https://coin-or.github.io/Ipopt/ (accessed on 7 April 2025).
- Skoge, M.; Donev, A.; Stillinger, F.H.; Torquato, S. Packing hyperspheres in high-dimensional Euclidean spaces. Phys. Rev. E 2006, 74, 041127. [Google Scholar] [CrossRef] [PubMed]
- Stoyan, Y.; Yaskov, G. Packing unequal circles into a strip of minimal length with a jump algorithm. Optim. Lett. 2014, 8, 949–970. [Google Scholar] [CrossRef]
- Litvinchev, I.; Fischer, A.; Romanova, T.; Stetsyuk, P. A New Class of Irregular Packing Problems Reducible to Sphere Packing in Arbitrary Norms. Mathematics 2024, 12, 935. [Google Scholar] [CrossRef]
- Pankratov, A.; Romanova, T.; Litvinchev, I.; Marmolejo-Saucedo, J.A. An Optimized Covering Spheroids by Spheres. Appl. Sci. 2020, 10, 1846. [Google Scholar] [CrossRef]
- Pankratov, A.; Romanova, T.; Litvinchev, I. Packing Oblique 3D Objects. Mathematics 2020, 8, 1130. [Google Scholar] [CrossRef]
- Kallrath, J. Packing ellipsoids into volume-minimizing rectangular boxes. J. Glob. Optim. 2017, 67, 151–185. [Google Scholar] [CrossRef]
- Kallrath, J. Business Optimization Using Mathematical Programming; Springer: Berlin/Heidelberg, Germany, 2021; ISBN 978-3-030-73237-0. [Google Scholar]
- Fasano, G.; Pintér, J.D. (Eds.) Modeling and Optimization in Space Engineering; Springer Optimization and Its Application; Springer: Berlin/Heidelberg, Germany, 2023. [Google Scholar] [CrossRef]
- Romanova, T.; Stoyan, Y.; Pankratov, A.; Litvinchev, I.; Plankovskyy, S.; Tsegelnyk, Y.; Shypul, O. Sparsest balanced packing of irregular 3D objects in a cylindrical container. Eur. J. Oper. Res. 2021, 291, 84–100. [Google Scholar] [CrossRef]



| Instance #1 input | ![]() | ||||
| , , , , , , , | |||||
| Instance #1 output | time 814 s | Optimized packing | |||
| Instance #2 input | ![]() | ||||
| , , , , , , , , , , , , , | |||||
| Instance #2 output | time 157 s | Optimized packing | |||
| Instance #3 input | ![]() | ||||
| , , where | |||||
| Instance #3 output | time 35 s | Optimized packing | |||
| Instance #4 input | ![]() | ||||
|
,
,
,
,
,
, , , , , , , , , , , | |||||
| Instance #4 output | time 924 s | Optimized packing | |||
| Instance #5 input | |||||
|
,
,
, , , , , , , , , , , , , , | |||||
| Instance #5 output | time 1478 s | ||||
| Instance #6 input | ![]() | |||||
|
,
,
,
,
,
, , , , , , , , , , , | ||||||
| Instance #6 output | time 480 s | Optimized packing | ||||
| Instance #7 input | ![]() | |||||
|
,
,
,
, , , , , , | ||||||
| Instance #7 output | time 1490 s | Optimized packing | ||||
| Instance #8 input | ![]() | |||||
| , , , , , , , , , , , , , , , , , , | ||||||
| Instance #8 output | time 397 s | Optimized packing | ||||
| Instance #9 input | ![]() | |||||
| , , . | ||||||
| Instance #9 output | time 64 s | Optimized packing | ||||
| Instance #10 input | ||||||
|
,
,
,
,
, , , , , , , , , , , , , , | ||||||
| Instance #10 output | time 987 s | |||||
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Stoyan, Y.; Yaskov, G.; Romanova, T.; Litvinchev, I.; Stoian, Y.E.; Velarde Cantú, J.M.; Acosta, M.L. Packing Multidimensional Spheres in an Optimized Hyperbolic Container. Mathematics 2025, 13, 3747. https://doi.org/10.3390/math13233747
Stoyan Y, Yaskov G, Romanova T, Litvinchev I, Stoian YE, Velarde Cantú JM, Acosta ML. Packing Multidimensional Spheres in an Optimized Hyperbolic Container. Mathematics. 2025; 13(23):3747. https://doi.org/10.3390/math13233747
Chicago/Turabian StyleStoyan, Yuriy, Georgiy Yaskov, Tetyana Romanova, Igor Litvinchev, Yurii E. Stoian, José Manuel Velarde Cantú, and Mauricio López Acosta. 2025. "Packing Multidimensional Spheres in an Optimized Hyperbolic Container" Mathematics 13, no. 23: 3747. https://doi.org/10.3390/math13233747
APA StyleStoyan, Y., Yaskov, G., Romanova, T., Litvinchev, I., Stoian, Y. E., Velarde Cantú, J. M., & Acosta, M. L. (2025). Packing Multidimensional Spheres in an Optimized Hyperbolic Container. Mathematics, 13(23), 3747. https://doi.org/10.3390/math13233747









