Next Article in Journal
Closed-Loop Inner–Outer Dual-Loop Attitude Adjustment Control for Dual-Super Spacecraft with Pointing Constraints
Next Article in Special Issue
Packing Approach to Generate Void Structures in Lightweighted Parts for Additive Manufacturing
Previous Article in Journal
Dynamics of Non-Periodic Chains with One-Sided and Two-Sided Couplings
Previous Article in Special Issue
Joint Optimization of Storage Allocation and Picking Efficiency for Fresh Products Using a Particle Swarm-Guided Hybrid Genetic Algorithm
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Packing Multidimensional Spheres in an Optimized Hyperbolic Container

by
Yuriy Stoyan
1,
Georgiy Yaskov
1,2,
Tetyana Romanova
1,2,3,4,
Igor Litvinchev
5,*,
Yurii E. Stoian
1,
José Manuel Velarde Cantú
6,* and
Mauricio López Acosta
6
1
Anatolii Pidhornyi Institute of Power Machines and Systems of the National Academy of Sciences of Ukraine, 61046 Kharkiv, Ukraine
2
Department of Applied Mathematics, Faculty of Computer Science, Kharkiv National University of Radio Electronics, 61166 Kharkiv, Ukraine
3
Leeds University Business School, University of Leeds, Leeds LS2 9JT, UK
4
School of Energy, Information and Transport Infrastructure, O. M. Beketov National University of Urban Economy in Kharkiv, 61002 Kharkiv, Ukraine
5
Faculty of Mechanical and Electrical Engineering, Autonomous University of Nuevo Leon, Monterrey 66455, Mexico
6
Department of Industrial Engineering, Technological Institute of Sonora (ITSON), Navojoa 85800, Mexico
*
Authors to whom correspondence should be addressed.
Mathematics 2025, 13(23), 3747; https://doi.org/10.3390/math13233747
Submission received: 20 October 2025 / Revised: 13 November 2025 / Accepted: 17 November 2025 / Published: 21 November 2025

Abstract

The problem of packing multidimensional spheres in a container defined by a hyperbolic surface is introduced. The objective is to minimize the height of the hyperbolic container under non-overlapping and containment conditions for the spheres, considering minimal allowable distances between them. To the best of our knowledge, no mathematical models addressing optimized packing spheres in hyperbolic containers have been proposed before. Our approach is based on a space dimensionality reduction transformation. This transformation relies on projecting a multidimensional hyperboloid into a lower-dimensional space sequentially up to two-dimensional case. Employing the phi-function technique, packing spheres in the hyperbolic container is formulated as a nonlinear programming problem. The latter is solved using a model-based heuristic combined with a decomposition approach. Numerical results are presented for a wide range of parameters, i.e., space dimension, number of spheres, and metric characteristics of the hyperbolic container. The results demonstrate efficiency of the proposed modeling and solution approach highlighting new opportunities for packing problems within non-traditional geometries.

1. Introduction

Sphere packing, i.e., arranging spherical objects in a larger container under specific conditions, is a well-established area of research with both theoretical and practical significance. Its versatility has led to applications across diverse fields. Packing problems are generally categorized into two classes: open dimension problems (ODPs) and knapsack problems [1]. The ODP focuses on optimizing the dimensions of the container, while the knapsack problem aims to maximize either the number of packed objects or the total packed volume. Continuous nonlinear programming (NLP) models are commonly employed for ODPs, while mixed-integer NLP models are typically used for knapsack problems.
Our focus on irregular containers is motivated by several key considerations. Sphere packing within irregular containers has important applications in materials science, nanotechnology, and additive manufacturing [2,3]. In materials science, sphere packing helps to understand the arrangement of atoms and molecules, influencing properties such as strength, density, and thermal conductivity [4]. In nanotechnology, it aids in the design and fabrication of nanostructures and nanoparticles, optimizing their arrangement for specific functions [5]. In 3D printing and additive manufacturing, sphere packing principles are used to enhance material efficiency and structural integrity. Furthermore, topology optimization enables the creation of products with improved mechanical performance and reduced material consumption through computational analysis of optimal material distribution [6,7].
A von Mises stress-driven circle packing algorithm for generating conformal lattice structures in additive manufacturing is studied in [8]. This approach optimizes lattice density by varying circle sizes based on stress intensity, resulting in Voronoi or Delaunay-based lattices that enhance stiffness. A simplified truss model reduces computational cost in finite element analysis, allowing efficient optimization using genetic algorithms, achieving up to 40% weight reduction in aerospace components while maintaining structural integrity.
Sphere packing for porous structure creation using the Voronoi tessellation method is considered in [9] focusing on modeling of porosity and mechanical properties relevant to biomedical applications. Disordered sphere packings of two different sizes are discussed in [10] showing that such arrangements can achieve densities comparable to ordered packings. This provides a theoretical foundation for improving particle density and flowability in metal powders used for additive manufacturing.
Sphere packing has also been applied to biomedical scaffolds. Macroporosity formation in bone scaffolds is modeled in [11] by packing of poly(lactide-co-glycolide) spheres. Sphere packing in mechano-regulation models, specifically the Pauwels model, is presented in [12]. Here an elementary sphere suspended in mesenchyme tissue is subjected to compression, tension, and shear forces, inducing cell formation of collagen fibrils. This modeling approach simulates the mechanical environment experienced by cells within scaffolds, aiding the design of structures that mimic natural skeletal tissue. Likewise, [13] uses sphere packing to model scaffold architecture with controlled porosity, enabling precise regulation of pore size and targeted drug release. These sphere-packed scaffolds mimic the extracellular matrix of bone, enhancing their effectiveness in bone defect repair.
While sphere packing in regular containers (rectangles, circles, etc.) has been extensively studied, especially for 2D objects like circles [14], ovals [15], and ellipses [16], the study of irregular containers remains a topic of significant interest [17]. Amore et al. [18] proposed an algorithm for dense packing configurations of congruent disks in arbitrary domains, such as rectangles, ellipses, crosses, and cardioids. Their introduction of “image” disks overcomes limitations of previous methods and suggests potential extensions to three-dimensional irregular containers.
A notable example of irregular containers is the hyperboloid structure, which offers advantages such as high strength, reduced material use, resistance to wind loads, and aesthetic appeal. These properties make hyperboloid geometries suitable for towers, cooling towers, and other industrial applications. In architecture, hyperbolic paraboloid roofs enable efficient material placement for structural stability and cost reduction. Similarly, hyperbolic geometries are used in designing components such as satellite dishes and other aerodynamic structures [19].
Various approaches have been proposed for solving sphere packing problems, including heuristic, nonlinear programming, probabilistic, and hybrid methods.
Heuristic methods provide approximate solutions to packing problems. Genetic algorithms, inspired by natural selection, have demonstrated high efficiency in solving circle packing problems [14]. Ant colony optimization, inspired by the foraging behavior of ants, employs probabilistic strategies to find efficient paths through solution spaces and has been successfully used for multiscale sphere packing [20]. The simulated annealing technique emulates the cooling process in metallurgy to approximate global optima and has been effectively applied to dense packing of spheres in cylindrical containers [21].
Probabilistic methods, such as Monte Carlo simulation, use random sampling to approximate solutions—particularly beneficial for high-dimensional packing problems [22]. Stochastic programming, which models uncertainty in sphere sizes or container dimensions, has also been applied to sphere packing optimization [23].
Nonlinear programming (NLP) techniques provide precise formulations for complex geometric challenges, particularly in irregular containers and variable object-size contexts [24,25].
Finally, hybrid methods combine the strengths of multiple approaches to enhance solution quality. The energy landscape paving and gradient descent algorithm integrates energy landscape mapping with adaptive-step gradient descent and has proven effective for both circle and sphere packing [26]. The combination of genetic algorithms with simulated annealing improves search performance over individual methods [27], while tabu search and particle swarm optimization effectively solve circle and sphere packing problems with high packing densities [28]. Another hybrid method, employing beam search, has shown promise in optimizing sphere packing configurations [29].
In this paper we develop a novel modeling and solution approach for packing spheres in a hyperbolic container, leveraging new modeling tools that address the geometric and computational challenges posed by the hyperbolic shape.
The main contributions of the paper are as follows:
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.
The rest of this paper is structured as follows: The problem formulation of packing spheres into a minimum-height hyperbolic container is presented in Section 2. Section 3 describes tools of mathematical modeling for the problem stated. A mathematical model of the problem and its basic characteristics are considered in Section 4. Solution schemes of packing spheres into a one-sheeted and two-sheeted parabolic containers are introduced in Section 5. Computational results are provided in Section 6. Section 7 concludes.

2. Problem Formulation

Placement objects. Let us consider a finite family of multidimensional spheres
S j ( v j ) = { x = ( x 1 , x 2 , , x n ) n : i = 1 n ( x i y j i ) 2 ( r j ) 2 0 } , j J = { 1 , 2 , , m } ,
where v j = ( y j 1 , y j 2 , , y j n ) is a vector of unknown centers of the spheres S j of radii r j , j J .
A vector of variable centers of spheres S j ( v j ) ,   j J , is denoted by v = ( v 1 , v 2 , , v m ) n m .
Containers. We further define two types of containers, formed by: (a) two-sheeted circular hyperbolic surfaces and (b) one-sheeted circular hyperbolic surfaces.
Let H n = { x n : i = 1 n 1 b 2 x i 2 + a 2 x n 2 a 2 b 2 0 } , n 2 be a convex subset of n bounded by the two-sheeted hyperboloid surface with given parameters a , b , while P ( h ) = { X n : x n h 0 , x n + b 0 } be a layer of n with variable parameter h > b , i.e.,
( h ) = { x n : i = 1 n 1 b 2 x i 2 + a 2 x n 2 a 2 b 2 0 ,   x n h 0 , x n + b 0 } .
We refer ( h ) = H n P ( h ) of variable h as the first type of container (Figure 1a).
Let H n = { x n : i = 1 n 1 b 2 x i 2 a 2 x n 2 a 2 b 2 0 } , n 2 be a convex subset of n bounded by the one-sheeted hyperboloid surface with given parameters a , b , while P ( h ) = { x n : x n h 0 , x n + h ¯ 0 } be a layer of n with a given parameter h 0 < 0 and variable parameter h > 0 , i.e.,
( h ) = { x n : i = 1 n 1 b 2 x i 2 a 2 x n 2 a 2 b 2 0 ,   x n h 0 , x n + h ¯ 0 } ,
We refer ( h ) = H n P ( h ) of variable height h as the second type of container (Figure 1b).
The feasibility conditions. Within this study the non-overlapping of each pair of spheres S j ( v j ) and S k ( v k ) , i.e.,
int S j ( v j ) int S k ( v k ) = for   all   j < k , j , k J ,
and the containment of each sphere S j ( v j ) within the container, i.e.,
S j ( v j ) ( h ) int S j ( v j ) ¯ ( h ) = for   all   j J , ¯ ( h ) = R n \ int ( h ) ,
are regarded as basic feasibility conditions. Here the notation int ( ) is used to denote the topological interior of the corresponding set ( ) [30].
In addition, distance conditions may be given: a minimal allowable distance ρ j k between each pair of spheres S j ( v j ) and S k ( v k ) , i.e.,
d i s t ( S j ( v j ) , S k ( v k ) ) ρ j k for   all   j < k , j , k J ,
as well as a minimal allowable distance ρ j between each sphere S j ( v j ) and the boundary of the container ( h ) , i.e.,
d i s t ( S j ( v j ) , ¯ ( h ) ) ρ j for   all   j J .
Let us formulate a packing problem in the following setting.
Packing Multidimensional Spheres in an Optimized Hyperbolic Container (PSH). Arrange a given family of multidimensional spheres in a minimum-height hyperbolic container considering the feasibility conditions (non-overlapping, containment and/or distance constraints).

3. Tools of Mathematical Modeling

The construction of the feasibility constraints presented in this work is a generalization of the phi-function approach described in [31], which extends the Minkowski sum of two objects to multidimensional space to define their feasible placements. In our case, the problem of packing a multidimensional sphere inside a hyperboloid is reduced to a two-dimensional setting using a so-called space dimensionality reduction transformation. This transformation yields a 2D hyperboloid and 2D sphere with transformed coordinates, for which we construct special classes of continuous functions to describe the containment condition. Multidimensional packing problems arise, e.g., in project management [32], where objects correspond to projects consuming various resources, while a container represents resource limitations. The general formulation is considered to highlight that the proposed algorithmic approach is suitable for any dimension. To the best of our knowledge, no mathematical models for packing spheres in a hyperbolic container were considered before.
Let us introduce a function
f ( x p ) = sgn ( x 1 ) x p for   p 2 ,
where sgn ( x ) = 1 if x 0 1 if x < 0 .
The function (3) relies on the Euclidean norm x p = i = 1 p x i 2 to project coordinates of vector x p into a lower-dimensional space.
Then, we define containment conditions S j ( v j ) ( h ) { ( h ) , ( h ) } , using transformation (3).

3.1. Modeling Containment Constraint: S j ( v j ) ( h )

Firstly, we consider the relation S j ( v j ) H n .
Let Π n be the hyperplane passing through axis O x n of H n and the center v j of the sphere S j ( v j ) .
In the sections Π n H n and Π n S j ( n ) ( v j ( n ) ) , using transformation (3), we obtain the (n−1)D-sphere S j ( n 1 ) ( v j ( n 1 ) ) centered at v j ( n 1 ) = ( z j 1 , y j 3 , , y j n ) with z j 1 = sgn ( y j 1 ) y j 1 2 + y j 2 2 and the (n−1)D-hyperboloid
H n 1 = { x n 1 : b 2 z 1 2 i = 3 n 1 b 2 x i 2 + a 2 x n 2 a 2 b 2 0 }
with z 1 = f ( x 2 ) = sgn ( x 1 ) x 1 2 + x 2 2 H n 1 .
Then, we construct the hyperplane Π n 1 passing through the axis O x n of H n 1 and the center v j ( n 1 ) of S j ( n 1 ) ( v j ( n 1 ) ) .
In the sections Π n 1 H n 1 and Π n 1 S j ( n 1 ) ( v j ( n 1 ) ) , using transformation (3), we obtain the (n − 2) D-sphere S j ( n 2 ) ( v j ( n 2 ) ) of radius r j centered at v j ( n 2 ) = ( z j 2 , y j 4 , , y j n ) with z j 2 = sgn ( y j 1 ) y j 1 2 + y j 2 2 + y j 3 2 and the hyperboloid
H n 2 = { x n 2 : b 2 z 2 2 i = 4 n 1 b 2 x i + a 2 x n 2 a 2 b 2 0 } ,
with z 2 = f ( x 3 ) = sgn ( x 1 ) x 1 2 + x 2 2 + x 3 2 H n 2 .
We continue the procedure until, in the sections Π 3 H 3 and Π 3 S j 3 ( z j 3 , y j 3 ) , we obtain the 2D sphere S j 2 ( z j ( n 2 ) , y j n ) of radius r j centered at ( z j ( n 2 ) , y j n ) with z j ( n 2 ) = sgn ( y j 1 ) i = 1 n 1 y j i 2 and the 2D hyperboloid H 2 = { X 2 : b 2 z n 1 2 + a 2 x n 2 a 2 b 2 0 } with z n 2 = f ( x n 1 ) = sgn ( x 1 ) i = 1 n 1 x i 2 .
To model the containment constraint, S j ( v j ) H n , we introduce an adjusted phi-function [31] for H ¯ n and S j ( v j ) where
H ¯ n = R n \ int H n = { x n : i = 1 n 1 b 2 x i 2 a 2 x n 2 + a 2 b 2 0 } ,
then S j ( v j ) H n int S j ( v j ) H ¯ n = .
An adjusted phi-function Φ j ( v j ) for S j ( v j ) and H ¯ n can be defined as follows:
Let us consider a function (see Appendix A for details)
φ j ( v j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j i 2 cos ξ j + y j n sin ξ j b 2 ( a 2 b 2 ) cos 2 ξ j
Denote an approximation of a local minimum to the problem
min ξ j [ β 1 , β 2 ] φ j ( v j , ξ j ) for   some   v j
as ( v j , ξ j * ) .
Then an adjusted phi-function Φ j ( v j ) can be derived in some neighborhood U ε ( v j ) of the point v j in the following form:
Φ j ( v j ) = φ j ( v j , ξ j * ) r j ρ j for   v j U ε ( v j )
Let us define [ β 1 , β 2 ] in (4). Denote the angle between two asymptotes of hyperbola H 2 as α = 2 arccos ( b / a 2 + b 2 ) . This means that two parallel tangents, γ 1 to the boundary of H 2 and γ 2 to the boundary of S j 2 ( z j ( n 1 ) , y j n ) , do exist if ξ j ( α / 2 ,   2 π α / 2 ) (Figure 2).
Hereinafter, in all figures the green lines show the tangents to the sphere/container corresponding to different values of the parameter ξ j . The blue lines represent asymptotes, while the red lines indicate rays from the sphere center to the extreme values of the search interval [ β 1 , β 2 ] for the parameter ξ j .
We consider the following four cases:
Case 1. If ( z j ( n 1 ) , y j n ) H 2 and z j ( n 2 ) 0 , then [ β 1 , β 2 ] = [ α / 2 , π / 2 ] .
Case 2. If ( z j ( n 1 ) , y j n ) H 2 and z j ( n 2 ) < 0 , then [ β 1 , β 2 ] = [ π / 2 , π α / 2 ] .
Case 3. If ( z j ( n 1 ) , y j n ) H 2 and z j ( n 2 ) 0 , then [ β 1 , β 2 ] = [ π + α / 2 , 3 π / 2 ] .
Case 4. If ( z j ( n 1 ) , y j n ) H 2 and z j ( n 2 ) < 0 , then [ β 1 , β 2 ] = [ 3 π / 2 , 2 π α / 2 ] .
Note that in (5)
φ j ( v j , ξ j ) = y j 1 cos ξ j + y j 2 sin ξ j b 2 ( a 2 b 2 ) cos 2 ξ j ,   if   n = 2 ,
and
φ j ( v j , ξ j ) = sgn ( y j 1 ) y j 1 2 + y j 2 2 cos ξ j + y j 3 sin ξ j b 2 ( a 2 + b 2 ) cos 2 ξ j ,   if   n = 3 .
Based on (1), (4), and (5), an adjusted phi-function for S j ( v j ) and ¯ ( h ) can be defined in the form
Ψ j ( v j , h ) = min { Φ j ( v j ) ,   y j n b ,   h y j n r j ρ j }
Therefore, Ψ j ( v j , h ) 0 holds a given minimal allowable distance ρ between a sphere S j ( v j ) and the boundary of the container ( h ) .
Note that the inequality min { Φ j ( v j ) ,   y j n b ,   h y j n r j ρ j } 0 is equivalent to the inequality system
Φ j ( v j ) 0   y j n b 0 h y j n r j ρ j 0 .

3.2. Modeling Containment Constraint: S j ( v j ) ( h )

Let there be a hyperboloid H n (2) and a sphere S j ( v j ) (Figure 3). Then the complement of the hyperboloid H n to the whole space n has the form
H ¯ n = n / int H n = { x n : i = 1 n 1 b 2 x i 2 + a 2 x n 2 + a 2 b 2 0 } .
A normalized phi-function for S j ( v j ) and H ¯ n using the approach applied in Section 3.1 (see Appendix B for details) takes the form
Φ j ( v j , ξ j ) = min { ψ 1 j ( v j , ξ j ) r j ,   y j 1 , sin ξ j + a / a 2 + b 2 , sin ξ j + a / a 2 + b 2 }   if   y j 1 0 min { ψ 2 j ( v j , ξ j ) r j , y j 1 , sin ξ j + a / a 2 + b 2 , sin ξ j + a / a 2 + b 2 }   if   y j 1 < 0 ,
where
ψ 1 j ( v j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j i 2 cos ξ j + y j n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j , ψ 2 j ( v j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j i 2 cos ξ j + y j n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j
See Appendix B for details.
Note that in (7)
ψ 1 j ( v j , ξ j ) = y j 1 cos ξ j + y j 2 sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j , ψ 2 j ( v j , ξ j ) = y j 1 cos ξ j + y j 2 sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j
if n = 2, and
ψ 1 j ( v j , ξ j ) = sgn ( y j 1 ) y j 1 2 + y j 2 2 cos ξ j + y j 3 sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j , ψ 2 j ( v j , ξ j ) = sgn ( y j 1 ) y j 1 2 + y j 2 2 cos ξ j + y j 3 sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j , if n = 3 .
Based on (2) and (7), the normalized phi-function for S j ( v j ) and ¯ ( h ) (see Figure 2) can be presented as follows:
Ψ j ( v j , h , ξ j ) = min { Φ j ( v j , ξ j ) , h 0 + y j n r j ,   h y j n r j }
Therefore, Ψ j ( v j , h , ξ j ) ρ j holds a given minimal allowable distance ρ j between a sphere S j ( v j ) and the boundary of the container ( h ) .
Note that the inequality
Ψ j ( v j , h , ξ j ) = min { Φ j ( v j , ξ j ) , h 0 + y j n r j ,   h y j n r j } ρ j
is equivalent to the following inequality system
Φ j ( v j , ξ j ) ρ j 0 h 0 + y j n r j ρ j 0   h y j n r j ρ j 0 .

3.3. Modeling Non-Overlapping Constraint for Two Spheres S j ( v j ) and S k ( v k )

An adjusted phi-function for two multidimensional spheres S j ( v j ) and S k ( v k ) has the form
ϕ j k ( v j , v k ) = v j v k 2 ( r j + r k + ρ j k ) 2 0 ,   j < k , j , k J .
Note that ϕ j k ( v j , v k ) 0 provides the distance constraint d i s t ( S j ( v j ) , S k ( v k ) ) ρ j k .
In particular, ϕ j k ( v j , v k ) 0 int S j ( v j ) int S k ( v k ) = for ρ j k = 0 .

4. Mathematical Models

A mathematical model of the PSH problem for ( h ) can be formulated as the following optimization problem:
min ( v , h ) W n m + 1 h ,
where
W = { ( v , h ) :   ϕ j k ( v j , v k ) 0 ,   j < k , j , k J , Ψ j ( v j , h ) 0 , j J , h 0 } ,
where inequality ϕ j k ( v j , v k ) 0 holds allowable distance ρ j k between each pair of spheres S j ( v j ) and S k ( v k ) , while inequality Ψ j ( v j , h ) 0 ensures an arrangement of each sphere S j ( v j ) inside the container ( h ) considering allowable distance ρ j .
The number of inequalities that form the feasible region W (10) is 0.5 m ( m 1 ) + 3 m + 1 , while the number of the problem variables is n m + 1 .
A mathematical model of the PSH problem for ( h ) can be stated as the following optimization problem:
min ( v , h , ξ ) W ( n + 1 ) m + 1 h ,
where
W = { ( v , h , ξ ) :   ϕ j k ( v j , v k ) 0 ,   j < k , j , k J , Ψ j ( v j , h , ξ j ) ρ j 0 , j J , h 0 } ,
where ξ = ( ξ 1 , , ξ m ) , inequality ϕ j k ( v j , v k ) 0 holds allowable distance ρ j k between each pair of spheres S j ( v j ) and S k ( v k ) , while inequality Ψ j ( v j , h , ξ j ) ρ j 0 ensures an arrangement of a sphere S j ( v j ) in the container ( h ) considering allowable distance ρ j .
The number of inequalities that form the feasible region W (12) is 0.5 m ( m 1 ) + 3 m + 1 , while the number of the problem variables is ( n + 1 ) m + 1 .
We describe model-based solution approaches for both problems (9)–(10) and (11)–(12) in the next section.

5. Solution Algorithms

5.1. Packing Spheres into the ( h ) Container

The following solution approach to the problem (9) and (10) is proposed.
Firstly, we provide the container height h = h ( 0 ) guaranteeing a placement of all spheres S j ( v j ) , j J , fully inside the container ( h ) subject to feasibility conditions. Then, we use Algorithm A1 (see Appendix C) to generate the sphere centers v j ( 0 ) ( h ( 0 ) ) ,   j J , ensuring the minimal allowable distances ρ k j between each pair of spheres S j and S k , as well as the minimal allowable distance ρ j between each sphere S j and the boundary of the container ( h ) .
Further, we apply the feasible direction method combined with the ε-active inequalities strategy [33,34], using the iterative procedure
Z ( τ + 1 ) : = Z ( τ ) + t ( τ + 1 ) Δ ( τ + 1 ) ,
where Z ( τ ) = ( v ( τ ) , h ( τ ) ) W such that F ( Z ( τ + 1 ) ) < F ( Z ( τ ) ) , τ = 0 , 1 , 2 , .
Here, Δ ( τ + 1 ) is the search direction at the iteration τ + 1 . It is computed based on the feasible direction method as a solution of a linear programming problem and provides a direction in which the objective function decreases while maintaining feasibility with respect to the ε-active constraints. The value of t ( τ + 1 ) is the step size along the direction Δ ( τ + 1 ) . It is chosen to ensure feasibility preservation, meaning the new point must remain within the feasible region defined by all constraints, ensuring that no inequality is violated during the update. This guarantees that the movement of each sphere respects both non-overlap and containment conditions throughout the optimization process. The point Z ( 0 ) is generated meeting feasibility of the problem (9) and (10), using Algorithm A1 (see Appendix C).
The core steps of our approach to solving the PSH problem for ( h ) are presented below.
Step 1. Take h : = h ( 0 ) , τ : = 0 .
Step 2. Use Algorithm A1 to generate the sphere centers v j ( 0 ) ,   j J , ensuring v j ( 0 ) ( h ( 0 ) ) ,   j J , and feasibility conditions of the problem (9) and (10).
Step 3. Calculate the value of the adjusted phi-function Φ j ( v j ( τ ) ) (5) by solving the corresponding optimization problem (4), using a bisection search, i.e., Φ j ( v j ( τ ) ) = φ ( v j ( τ ) , ξ j * ) r j , for all j J .
Step 4. Construct a set W ε ( τ ) of ε-active inequalities in (10) of the form Ψ j ( v j ( τ ) , h ( τ ) ) ρ j ε , y n j ( τ ) b ρ j ε ,   h ( τ ) y n j ( τ ) r j ρ j ε for j J and ϕ j k ( v j ( τ ) , v k ( τ ) ) ε for j < k , j , k J .
Step 5. Calculate a feasible descent vector Δ ( τ + 1 ) for the problem
min ( v , h ) W ε ( τ ) h ,
using an approach described in [34].
Step 6. Set t ( τ + 1 ) : = 1 .
Step 7. Set Z ( τ + 1 ) : = Z ( τ ) + t ( τ + 1 ) Δ ( τ + 1 ) .
Step 8. If Z ( τ + 1 ) W , then set t ( τ + 1 ) : = t ( τ + 1 ) / 2   and go to Step 7; otherwise, go to Step 9.
Step 9. If Z ( τ + 1 ) Z ( τ ) < 10 5 , then stop the algorithm; otherwise, set τ : = τ + 1 , and go to Step 3.

5.2. Packing Spheres into the ( h ) Container

Let us consider a solution strategy for the problem (11) and (12) for ( h ) = ( h ) .
Firstly, we set sufficiently large h = h ( 0 ) so that all spheres S j ( v j ) ,   j J , can fit the container ( h ) keeping feasibility conditions.
Taking Z ( 0 ) = ( v ( 0 ) , h ( 0 ) , ξ ( 0 ) ) with ξ j ( 0 )   a / a 2 + b 2 , a / a 2 + b 2 as a feasible starting point to the problem (11) and (12), we derive functions Φ j ( v j , ξ j ) , j J , defined in (7). Then, we apply an iterative decomposition technique [35] to solve the problem (11) and (12). At each iteration τ only a subset of the solution space (12) is considered. This subset includes feasibility constraints only for those pairs of spheres that are arranged no farther than a predefined distance from each other, as well as between the spheres and the boundary of the container, subject to the restriction that the movement of each sphere is limited to a local neighborhood. This localized movement control preserves feasibility and allows the algorithm to efficiently explore the solution space.
To accomplish this, a sequence of the following nonlinear programming problems is solved:
min Y = ( v , h , ξ ) W ( τ ) h ,   τ = 0 , 1 , 2 , ,
where
W ( τ ) = { Y = ( v , h , ξ ) ( n + 1 ) m + 1 :   ϕ j k ( v j , v k ) 0 ,   ( k , j ) J ( τ ) , Ψ j ( v j , h , ξ j ) ρ j 0 ,   j I ( τ ) , h 0 ,   v j v j ( τ ) d ( τ ) ,   y j 1 0   ( or   y j 1 > 0 ) ,   j J } .
In (14),
J ( τ ) = { J × J | k < j | v j ( τ ) v k ( τ ) 2 d ( τ ) + ρ } , I ( τ ) = { j J | Ψ j ( v j ( τ ) , h ( τ ) , ξ j ( τ ) ) d ( τ ) + ρ } ,
d ( τ ) = max i J r i > 0 is a decomposition parameter, which serves as a balance between the number of NLP subproblems to be solved and the number of nonlinear inequalities involved in a feasible set of each of the NLP subproblems.
Each constraint for variable y j 1 is either y j 1 0 or y j 1 > 0 depending on Φ j ( v j , ξ j ) defined in (7). The choice between these two inequalities depends on the value of y j 1 ( τ ) . If y j 1 ( τ ) > 0 , then the constraint y j 1 0 is applied. If y j 1 ( τ ) < 0 , then the constraint y j 1 > 0 is chosen. If y j 1 ( τ ) = 0 , then the constraint is reversed compared to the previous step to allow switching between the two opposite inequalities.
A starting point Y ( 0 ) = ( v ( 0 ) , h ( 0 ) , ξ ( 0 ) ) is generated meeting feasibility conditions of the problem (11) and (12), using Algorithm A2 (see Appendix C).
Then a local minimum point Y * ( τ ) = ( v * ( τ ) , h * ( τ ) , ξ * ( τ ) ) of the problem (13) and (14) is computed, using an algorithm, presented below.
The core steps of our algorithm to solve the PSH problem for ( h ) are as follows.
Step 1. Take h : = h ( 0 ) , τ : = 0 .
Step 2. If τ = 0 , then go to Step 4; otherwise, go to Step 3.
Step 3. Derive Φ j ( v j , ξ j ) , j J defined by (7).
Step 4. Generate the spheres’ centers v j ( 0 ) ( h ( 0 ) ) , j J , using Algorithm A2 Step 5. Solve the problem (13) and (14) starting from the point Y ( τ ) = ( v ( τ ) , h ( τ ) , ξ ( τ ) ) and compute a local minimum point Y * ( τ ) = ( v * ( τ ) , h * ( τ ) , ξ * ( τ ) ) using the local solver IPOPT [36].
Step 6. If Y ( τ ) * Y ( τ ) < 10 5 , then stop the algorithm with Y * ( τ ) = ( v * ( τ ) , h * ( τ ) , ξ * ( τ ) ) ; otherwise, set Y ( τ + 1 ) : = Y ( τ ) * , τ : = τ + 1 and return to Step 5.

6. Numerical Examples

The computational experiment was conducted on a personal computer with the following technical specifications: Intel® Core™ i5-5300U CPU @ 2.30 GHz, 8.00 GB RAM, x64-based processor. The implementation was carried out using the C++ programming language with OpenGL 4.6 for 3D graphics rendering.
We consider two groups of instances to solve the PSH problem for packing different number m of n-dimensional spheres, with varying dimensions n, into (a) the ( h ) container and (b) the ( h ) container. Input and output data are provided in Table 1 and Table 2. For each problem instance the tables indicate input data: dimension n of the problem, parameters a , b , h ¯ of the container, the total number m of spheres and their radii r i , and values of the distance parameters ρ j k , ρ j (where applicable). The tables also present an output of the algorithm: the best value of the container’s height h * and a corresponding total CPU time.
To the best of our knowledge, there are no computational results on optimized packing spheres in a hyperbolic container. We sincerely hope that the solutions presented here to illustrate the proposed algorithmic approach can serve as a benchmark for future research.
To characterize computational time savings achieved by decomposition, several problem instances were solved with/without using the decomposition approach for the value of the decomposition parameter d = 1.5. The following number of spheres, m = 50, 100, 200, 300, and dimensions n = 3, 4, 5 were considered. For each problem instance the CPU time savings are defined as (CPU time without decomposition)/(CPU time with decomposition) and indicated in parentheses after the number of spheres. Notation ( ) indicates that the solution of the corresponding instance without decomposition was not obtained within the three-hour CPU time limit. The results can be summarized as follows: n = 3, m = 50(4), 100(10), 200(50), 300(200); n = 4, m = 50(3), 100(9), 200(40), 300( ); and n = 5, m = 50(2.5), 100(8), 200(3.5), 300( ). We can see that the effect of the decomposition approach for n = 3 significantly increases with the number of spheres. However, for higher dimensions n = 4,5 decomposition savings are not so high. We can expect that the reason is that the kissing number [37] is increased for higher dimensions, thus increasing the number of active constraints in pairwise restrictions of nonoverlapping and complicating the local optimization.

7. Conclusions

A novel modeling and solution approach for packing multidimensional spheres in a minimum-height hyperbolic container is proposed. The most challenging part of the corresponding mathematical model is formulating containment conditions for spheres in an n-dimensional hyperboloid. Using the phi-function approach these conditions are defined explicitly, and a corresponding large-scale nonlinear programming problem is formulated. To cope with large dimensions, a decomposition approach is used in combination with a nonlinear optimization technique. Numerical results demonstrate efficiency of the proposed approach for different problem parameters.
The proposed solution approach is focused on obtaining a local solution of the main model. Using optimization techniques to enhance solutions, such as a multistart strategy, a jump algorithm, or a lattice-based algorithm (see, e.g., [34,38]), is a challenging area for future research. Note that the main mathematical models (9), (10) and (11), (12) are exact in the sense that they contain all optimal solutions of the corresponding problems. However, the proposed solution approach, being universal and serving for any dimension of the problem, is in fact a model-based heuristic aimed at obtaining reasonable feasible solutions. Thus, constructing more efficient exact and heuristic solution approaches for the main models is an interesting direction for future research. Solutions obtained by the proposed technique can serve for benchmarking and comparison. Since global optimality of the solutions is not guaranteed, deriving lower bounds for the optimal height h * is critical to estimate suboptimality. Some results in this direction are on the way.
The assumption that all objects have spherical shapes is rather restrictive and is not fulfilled in many real-world applications. Revising the main models to consider polyhedral objects is necessary to make the models more realistic.
Although the main models are valid for any parameters a, b of the hyperbolic container, it would be interesting to analyze sensitivity of the proposed solution approach to these parameters, e.g., in terms of computational time and the quality of solutions.
It is interesting to explore the optimized packing of spheres, defined by arbitrary norms [39], and irregular objects composed of a union of spheres [40]. Thus, packing more general shapes [41,42,43,44] can be studied without significant changes in the original model. Some results in this direction are on the way.
In many applications the objects must be arranged as distant from each other as possible, thus giving rise to the concept of the sparsest packing [45]. This is especially important when the packing problem corresponds to designing hollowing structures, e.g., in additive manufacturing. Incorporating these sparsest packing conditions in the general model is an interesting area for future research.

Author Contributions

Conceptualization, Y.S. and G.Y.; methodology, T.R. and I.L.; software, Y.E.S., J.M.V.C. and M.L.A.; resources, G.Y. and J.M.V.C.; writing—original draft, Y.S., T.R. and I.L.; writing—review and editing, Y.S., T.R. and I.L.; visualization, G.Y.; project administration, J.M.V.C. and M.L.A.; funding acquisition, T.R. and J.M.V.C. All authors have read and agreed to the published version of the manuscript.

Funding

The third author is supported by the British Academy (Grant No. 100072), the European Union Assistance Instrument for the Fulfillment of Ukraine’s Commitments under the Horizon 2020 Framework Program for Research and Innovation (Research Project No. 0124U004371), and by the Ministry of Education and Science of Ukraine (Research Projects No. 0125U001556), while the last two authors were partially supported by the Technological Institute of Sonora (ITSON), Mexico through the Research Promotion and Support Program (PROFAPI: 2025-0426).

Data Availability Statement

The original contributions presented in this study are included in this article. Further inquiries can be directed to the corresponding authors.

Acknowledgments

The authors would like to thank three anonymous referees for carefully reading this paper and constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Basic Definitions of Phi-Functions

Let us consider two objects A n and B n of the given shapes and sizes.
Definition A1 
([31]). A continuous and everywhere defined function Φ A B ( u A , u B )  is called a phi-function for objects  A ( u A )  and  B ( u B )  if
  • Φ A B ( u A , u B )  is positive for cases when objects   A  and   B  do not intersect,   A ( u A ) B ( u B ) = ,
  • Φ A B ( u A , u B )  is 0 for cases when objects   A  and   B  touch,   int A ( u A ) int B ( u B ) =  and   f r A ( u A ) f r B ( u B ) , Φ A B ( u A , u B )  is negative for cases when objects   A  and   B  have common interior points,   int A ( u A ) int B ( u B ) .
Here  u A , u B  are the appropriate variable motion vectors of   A  and   B .
Minimal allowable distance   ρ  between two objects   A  and   B  is given.
Definition A2 
([31]). A phi-function Φ ˜ A B ( u A , u B )  is called a normalized phi-function for objects   A ( u A )  and   B ( u B )  if the values of   Φ ˜ A B ( u A , u B )  coincide with the Euclidean distances between the objects subject to   int A ( u A ) int B ( u B ) = .
Definition A3 
([31]). A continuous and everywhere defined function Φ A B ( u A , u B )  is called an adjusted phi-function for objects   A ( u A )  and   B ( u B )  if
  • Φ A B ( u A , u B )  is positive for cases when the Euclidean distance between objects   A  and   B  is greater than   ρ ,
  • Φ A B ( u A , u B )  is 0 for cases when the Euclidean distance between objects   A  and   B  is equal to   ρ ,
  • Φ A B ( u A , u B )  is negative for cases when the Euclidean distance between objects   A  and   B  is less than   ρ .
Denote a given container by   Ω n . The basic placement conditions in a packing problem are as follows:
  • non-overlapping condition:   A  and   B  do not intersect but can touch each other, i.e.,   int A int B = ;
  • containment condition:   A  is arranged fully inside the container   Ω  , i.e.,   A Ω int A int Ω * =  , where   Ω * = n \ int Ω .
This can be stated as follows:
  • Φ A B ( u A , u B ) 0 int A ( u A ) int B ( u B ) =  (non-overlapping condition).
  • Φ A Ω * ( u A , u B ) 0 int A ( u A ) int Ω * =  (containment condition).
  • Φ ˜ A B ( u A , u B ) ρ d i s t (   A ( u A ) , B ( u B ) ) ρ  for   ρ 0   (distant condition).
  • Φ ˜ A Ω * ( u A ) ρ d i s t (   A ( u A ) , Ω * ) ρ   (distant condition).
  • Φ A B ( u A , u B ) 0 d i s t (   A ( u A ) , B ( u B ) ) ρ  for   ρ 0   (distant condition).
  • Φ A Ω * ( u A ) 0 d i s t (   A ( u A ) , Ω * ) ρ   (distant condition).
More details on phi-functions can be found in, e.g., [31] and [43] (chapter 15).

Appendix B. Constructing Phi-Functions for Containment Conditions

Let us consider container ( h ) . Constructing the adjusted phi-function (4) and (5) reduces to deriving an adjusted phi-function for H ¯ 2 and 2D sphere S j 2 ( z j ( n 2 ) , y j n ) = { x 2 : ( z n 2 z j ( n 2 ) ) 2 + ( x n y j n ) 2 r j 2 0 } .
Figure A1 illustrates a family of feasible contact positions of S j 2 ( z j ( n 2 ) , y j n ) and H ¯ 2 , which corresponds to the Minkowski sum of S j 2 ( z j ( n 2 ) , y j n ) and H ¯ 2 .
Figure A1. Illustration of construction of the containment condition S j 2 ( z j ( n 2 ) , y j n ) H 2 .
Figure A1. Illustration of construction of the containment condition S j 2 ( z j ( n 2 ) , y j n ) H 2 .
Mathematics 13 03747 g0a1
Let us define the equation of tangent γ 1 to the boundary of H 2 at a point ( ω , γ ) and the equation of tangent γ 2 to the boundary of S j 2 ( z j ( n 2 ) , y j n ) using a rotation parameter ξ j , as follows:
b 2 z n 2 ω + a 2 x n γ a 2 b 2 = 0 ,
z n 2 cos ξ j x n sin ξ j r j = 0 .
Tangents γ 1 and γ 2 are parallel; therefore,
b 2 ω cos ξ j = a 2 γ sin ξ j , b 2 ω sin ξ j = a 2 γ cos ξ j , γ = b 2 ω sin ξ j a 2 cos ξ j .
Since ( z n 2 , x n ) = ( ω , γ ) , then b 2 ω 2 = a 2 γ 2 b 2 a 2 , and
b 2 ω 2 = a 2 b 2 ω sin ξ j a 2 cos ξ j 2 b 2 a 2 , ω 2 = b ω sin ξ j a cos ξ j 2 a 2 ,
ω 2 a 2 cos 2 ξ j = ω 2 b 2 sin 2 ξ j a 4 cos 2 ξ j , ω 2 ( b 2 sin 2 ξ j a 2 cos 2 ξ j ) = a 4 cos 2 ξ j ,
ω = a 2 cos ξ j b 2 sin 2 ξ j a 2 cos 2 ξ j ,   γ = b 2 sin ξ j b 2 sin 2 ξ j a 2 cos 2 ξ j .
Substituting (A2) in (A1), we obtain the following equation:
z n 2 cos ξ j b 2 sin 2 ξ j a 2 cos 2 ξ j + x n sin ξ j b 2 sin 2 ξ j a 2 cos 2 ξ j 1 = 0 ,
which can be rewritten in the normalized form
z n 2 cos ξ j + x n sin ξ j b 2 ( a 2 b 2 ) cos 2 ξ j = 0 .
Since z n 2 = sgn ( x 1 ) i = 1 n 1 x i 2 , we have
φ j ( x , ξ j ) = sgn ( x 1 ) i = 1 n 1 x i 2 cos ξ j + x n sin ξ j b 2 ( a 2 b 2 ) cos 2 ξ j = 0
or
φ j ( y j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j i 2 cos ξ j + y j n sin ξ j b 2 ( a 2 b 2 ) cos 2 ξ j = 0 .
Let us consider container ( h ) . We construct a normalized phi-function for 2D sphere
S j 2 ( z j ( n 2 ) , y j n ) = { x 2 : ( z n 2 z j ( n 2 ) ) 2 + ( x n y j n ) 2 r j 2 0 }
and the complement to the 2D hyperboloid H 2 denoted as H ¯ 2 = { x 2 :   b 2 z n 2 2 + a 2 x n 2 + a 2 b 2 0 } .
We define both the equation of a tangent γ 1 to f r H ¯ 2 at a point ( A , B ) and the equation of a tangent γ 2 to the boundary of the sphere S j 2 ( z j ( n 2 ) , y j n ) , respectively (Figure A2),
b 2 z n 2 A + a 2 x n B + a 2 b 2 = 0 ,   x cos ξ j y sin ξ j r j = 0 .
Figure A2. Illustration of construction of the containment condition S j 2 ( z j ( n 2 ) , y j n ) H 2 .
Figure A2. Illustration of construction of the containment condition S j 2 ( z j ( n 2 ) , y j n ) H 2 .
Mathematics 13 03747 g0a2
Since the tangents γ 1 and γ 2 are parallel, then
b 2 A cos ξ j = a 2 B sin ξ j , b 2 A sin ξ j = a 2 B cos ξ j ,   B = b 2 A sin ξ j a 2 cos ξ j ,   b 2 A 2 = a 2 B 2 + b 2 a 2 ,
b 2 A 2 = a 2 ( b 2 A sin ξ j a 2 cos ξ j ) 2 + b 2 a 2 , A 2 = ( b A sin ξ j a cos ξ j ) 2 + a 2 ,
A = a 2 cos ξ j a 2 cos 2 ξ j b 2 sin 2 ξ j ,   B = b 2 sin ξ j a 2 cos 2 ξ j b 2 sin 2 ξ j .
The boundary of H ¯ 2 consists of two branches; therefore, we generate two tangents defined by the following equations, respectively:
ψ 1 j ( z n 2 , x n , ξ j ) = z n 2 cos ξ j + x n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j = 0 , ψ 2 j ( z n 2 , x n , ξ j ) = z n 2 cos ξ j + x n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j = 0
or
ψ 1 j ( v j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j 1 2 cos ξ j + y j n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j = 0 , ψ 2 j ( v j , ξ j ) = sgn ( y j 1 ) i = 1 n 1 y j 1 2 cos ξ j + y j n sin ξ j + a 2 ( a 2 + b 2 ) sin 2 ξ j = 0 .

Appendix C. Algorithm for Generating Feasible Starting Points for the PSH Problem

Algorithm A1: Container ( h )
Step 1. Set h : = h ( 0 ) ( h ( 0 ) > 2 j = 1 m r j ), j : = 1 .
Step 2. Set y j i ( 0 ) : = random ( a b ( h ( 0 ) ) 2 a 2 + r j , a b ( h ( 0 ) ) 2 a 2 r j ) ,   i = 1 , , n 1 , y j n ( 0 ) : = random ( b + r j , b r j ) ,
Step 3. Calculate ξ j ( 0 ) and Φ j ( v j ( 0 ) ) = φ ( v j ( 0 ) , ξ j ( 0 ) ) r j as a result of solving the problem (4).
Step 4. If Ψ j ( v j ( 0 ) , h ) ρ j 0 , then go to Step 5; otherwise go to Step 2.
Step 5. Set j : = j + 1 .
Step 6. If j > m , then stop algorithm with h ( 0 ) , v j = ( y j 1 ( 0 ) , y j 2 ( 0 ) , , y j n ( 0 ) ) , Ψ j ( v j ( 0 ) , h ) , j J .
Step 7. Set y j i ( 0 ) : = random ( a b ( h ( 0 ) ) 2 a 2 + r j , a b ( h ( 0 ) ) 2 a 2 r j ) ,   i = 1 , , n 1 , y j n ( 0 ) : = random ( b + r j , b r j ) ,
Step 8. Calculate ξ j ( 0 ) and Φ j ( v j ( 0 ) ) = φ ( v j ( 0 ) , ξ j ( 0 ) ) r j as a result of solving the problem (4).
Step 9. If Ψ j ( v j ( 0 ) , h ) ρ j < 0 , then go to Step 7, otherwise go to Step 10.
Step 10. Set k : = j 1 .
Step 11. If ϕ k j ( v k ( 0 ) , v j ( 0 ) ) < 0 , then go to Step 7, otherwise go to Step 12.
Step 12. Set k : = k 1 .
Step 13. If k = 0 then go to Step 5, otherwise go to Step 10.
Algorithm A2: Container ( h )

Step 1. Set h : = h ( 0 ) ( h ( 0 ) > 2 j = 1 m r j ), j : = 1 .
Step 2. Set s : = max ( ( a h ) 2 + ( a b ) 2 / b , ( a h ¯ ) 2 + ( a b ) 2 / b ) .
Step 3. Set y j i ( 0 ) : = random ( s + r j , s r j ) ,   i = 1 , 2 , , n 1 ,
y j n ( 0 ) : = random ( h ¯ + r j , h r j ) ,
Step 4. If Ψ j ( v j ( 0 ) , h , ξ j ( 0 ) ) ρ j 0 ( ξ j ( 0 ) [ π / 2 , π / 2 ] ) then go to Step 5; otherwise go to Step 3.
Step 5. Set j : = j + 1 .
Step 6. If j > m , then stop algorithm with h ( 0 ) , v j = ( y j 1 ( 0 ) , y j 2 ( 0 ) , , y j n ( 0 ) ) , Ψ j ( v j ( 0 ) , h ) , j J .
Step 7. Set y j i ( 0 ) : = random ( s + r j , s r j ) ,   i = 1 , 2 , , n 1 ,
y j n ( 0 ) : = random ( h ¯ + r j , h r j ) .
Step 9. If Ψ j ( v j ( 0 ) , h , ξ j ( 0 ) ) ρ j < 0 ( ξ j ( 0 ) [ π / 2 , π / 2 ] ), then go to Step 7, otherwise go to Step 10.
Step 10. Set k : = j 1 .
Step 11. If ϕ k j ( v k ( 0 ) , v j ( 0 ) ) < 0 , then go to Step 7, otherwise go to Step 12.
Step 12. Set k : = k 1 .
Step 13. If k = 0 then go to Step 5, otherwise go to Step 10.

References

  1. Waescher, G.; Hausner, H. An improved typology of cutting and packing problems. Eur. J. Oper. Res. 2007, 183, 1109–1130. [Google Scholar] [CrossRef]
  2. 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]
  3. Lachmayer, R.; Lippert, R.B. Additive Manufacturing. Quantifiziert–Visionäre Anwendungen und Stand der Technik; Springer: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
  4. 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]
  5. 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]
  6. 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]
  7. 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]
  8. 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]
  9. 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]
  10. Hopkins, A.B.; Stillinger, F.H.; Torquato, S. Densest binary sphere packings. Phys. Rev. E 2012, 85, 021130. [Google Scholar] [CrossRef]
  11. 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]
  12. 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]
  13. 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]
  14. 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]
  15. 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]
  16. Kampas, F.J.; Castillo, I.; Pintér, J.D. Optimized ellipse packings in regular polygons. Optim. Lett. 2019, 13, 1583–1613. [Google Scholar] [CrossRef]
  17. 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]
  18. 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]
  19. Kolli, U.C. Hyperbolic Geometry and Its Applications. Int. J. Res. Anal. Rev. 2017, 4, 54. [Google Scholar]
  20. Hu, N.; Fish, J. Enhanced ant colony optimization for multiscale problems. Comput. Mech. 2016, 57, 447–463. [Google Scholar] [CrossRef]
  21. 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]
  22. 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]
  23. 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]
  24. 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]
  25. 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]
  26. 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]
  27. 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]
  28. 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]
  29. Hifi, M.; Yousef, L. A dichotomous search-based heuristic for the three-dimensional sphere packing problem. Cogent Eng. 2015, 2, 994257. [Google Scholar] [CrossRef]
  30. Kelley, J.L. General Topology; Springer: Berlin/Heidelberg, Germany, 1975. [Google Scholar]
  31. Chernov, N.; Stoyan, Y.; Romanova, T. Mathematical model and efficient algorithms for object packing problem. Comput. Geom. 2010, 43, 535–553. [Google Scholar] [CrossRef]
  32. Fasano, G. Solving Non-Standard Packing Problems by Global Optimization and Heuristics; Springer: Cham, Switzerland, 2014. [Google Scholar]
  33. 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]
  34. 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]
  35. 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]
  36. IPOPT: Documentation. Available online: https://coin-or.github.io/Ipopt/ (accessed on 7 April 2025).
  37. 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]
  38. 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]
  39. 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]
  40. Pankratov, A.; Romanova, T.; Litvinchev, I.; Marmolejo-Saucedo, J.A. An Optimized Covering Spheroids by Spheres. Appl. Sci. 2020, 10, 1846. [Google Scholar] [CrossRef]
  41. Pankratov, A.; Romanova, T.; Litvinchev, I. Packing Oblique 3D Objects. Mathematics 2020, 8, 1130. [Google Scholar] [CrossRef]
  42. Kallrath, J. Packing ellipsoids into volume-minimizing rectangular boxes. J. Glob. Optim. 2017, 67, 151–185. [Google Scholar] [CrossRef]
  43. Kallrath, J. Business Optimization Using Mathematical Programming; Springer: Berlin/Heidelberg, Germany, 2021; ISBN 978-3-030-73237-0. [Google Scholar]
  44. 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]
  45. 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]
Figure 1. Hyperbolic containers of two types: (a) the first type container ( h ) ; (b) the second type container ( h ) .
Figure 1. Hyperbolic containers of two types: (a) the first type container ( h ) ; (b) the second type container ( h ) .
Mathematics 13 03747 g001
Figure 2. Definition of [ β 1 , β 2 ] , case 1.
Figure 2. Definition of [ β 1 , β 2 ] , case 1.
Mathematics 13 03747 g002
Figure 3. Definition of [ β 1 , β 2 ] , case 2.
Figure 3. Definition of [ β 1 , β 2 ] , case 2.
Mathematics 13 03747 g003
Table 1. Input and output data for ( h ) .
Table 1. Input and output data for ( h ) .
Instance #1 input n = 2 a = 3 b = 6 m = 300 Mathematics 13 03747 i001
r j = 0.592 ,   j = 1 , , 12 r j = 0.612 ,   j = 13 , , 60
r j = 0.68 ,   j = 61 , , 108 ,   r j = 0.747 j = 109 , , 156 ,
r j = 0.76 j = 157 , , 204 r j = 0.807 j = 205 , , 252 ,
r j = 0.845 j = 253 , , 300
Instance #1 output h * =   37.007 time 814 sOptimized packing
Instance #2 input n = 2 a = 3 b = 6 m = 100 Mathematics 13 03747 i002
ρ j k = 1 , 1 j < k 100 ,   ρ j = 0.5 ,   j = 1 , , 100
r j = 0.527 ,   j = 1 , , 10 r j = 0.564 ,   j = 11 , , 20
r j = 0.566 ,   j = 21 , , 30 ,   r j = 0.592 j = 31 , , 40 ,
r j = 0.612 j = 41 , , 50 r j = 0.680 j = 51 , , 60 ,
r j = 0.747 j = 61 , , 70 r j = 0.760 j = 71 , , 80
r j = 0.807 j = 81 , , 90 r j = 0.845 j = 91 , , 100
Instance #2 output h * =   34.5592 time 157 sOptimized packing
Instance #3 input n = 2 a = 3 b = 6 m = 100 Mathematics 13 03747 i003
ρ j = r max r j ,   ρ j k = r max r j + 0.01 k
r j = 0.7 ,   j = 1 , , 25 r j = 1 ,   j = 26 , , 50
r j = 1.2 ,   j = 51 , , 75 ,   r j = 1.5 ,   j = 76 , , 100 .
where r max = max { r 1 , r 2 , , r m }
Instance #3 output h * =   50.1068 time 35 sOptimized packing
Instance #4 input n = 3 a = 2 b = 5 m = 200 Mathematics 13 03747 i004
r j = 0.564 j = 1 , , 8 r j = 0.566 j = 9 , , 32 r j = 0.592 ,   j = 33 , , 56 r j = 0.612
j = 57 , , 80 r j = 0.68 j = 81 , , 104
r j = 0.747 j = 105 , , 128 r j = 0.76 j = 129 , , 152
r j = 0.807 j = 153 , , 176 r j = 0.845 j = 177 , , 200
Instance #4 output h * = 16.1158 time 924 sOptimized packing
Instance #5 input n = 4 a = 2 b = 5 m = 200
r j = 0.564 ,   j = 1 , , 8 r j = 0.566 j = 9 , , 32
r j = 0.592 j = 33 , , 56 r j = 0.612 j = 57 , , 80
r j = 0.68 j = 81 , , 104
r j = 0.747 j = 105 , , 128 r j = 0.76 j = 129 , , 152
r j = 0.807 j = 153 , , 176 r j = 0.845 j = 177 , , 200
Instance #5 output h * =   15.3686 time 1478 s
Table 2. Input and output data for ( h ) .
Table 2. Input and output data for ( h ) .
Instance #6 input n = 4 a = 2 b = 5 h 0 = 3 m = 200 Mathematics 13 03747 i005
r j = 0.627 j = 1 , , 40   r j = 0.664 j = 41 , , 61 r j = 0.666 j = 62 , , 84 r j = 0.712
j = 85 , , 104 r j = 0.7612 j = 105 , , 123
r j = 0.766 j = 124 , , 139 r j = 0.784 j = 140 , , 162
r j = 1.04 j = 163 , , 183 r j = 1.1 j = 184 , 200
Instance #6 output h * =   22.1659 time 480 sOptimized packing
Instance #7 input n = 3 a = 3 b = 4.5 h 0 = 5 m = 300 Mathematics 13 03747 i006
r j = 0.527 j = 1 , , 60 r j = 0.566 j = 61 , , 120
r j = 0.892 j = 121 , , 180
r j = 0.9612 j = 181 , , 240 r j = 0.964 j = 241 , , 300
Instance #7 output h * =   11.5952 time 1490 sOptimized packing
Instance #8 input n = 3 a = 4 b = 5 h 0 = 3 m = 100 Mathematics 13 03747 i007
ρ j k = 0.4 , 1 j < k 100 ,   ρ j = 0.2 ,   j = 1 , , 100
r j = 0.527 j = 1 , , 18 r j = 0.566 j = 19 , , 36 r 37 = 0.8566 r 38 = 0.866
r 39 = 0.872 r j = 0.892 j = 40 , , 57 r 58 = 0.920 r j = 0.9612 j = 59 , , 77 r j = 0.964
j = 78 , , 95 r 96 = 0.97 r 97 = 1.12 r 98 = 1.15 r 99 = 1.27 r 100 = 1.4
Instance #8 output h * =   8.0642 time 397 sOptimized packing
Instance #9 input n = 3 a = 4 b = 5 h 0 = 3   m = 100 Mathematics 13 03747 i008
ρ j = 0.1 r j ( ( j + 1 ) mod 5 )   ρ j k = 0.1 r j ( ( j + k + 1 ) mod 5 )
r j = 0.527 ,   j = 1 , , 18 r j = 0.566 ,   j = 19 , , 36
r j = 0.892 ,   j = 37 , , 54 ,   r j = 0.9612 ,   j = 55 , , 73 ,
r j = 0.964 ,   j = 74 , , 91 ,   r 92 = 0.97 ,   r 93 = 0.92 ,
r 94 = 0.872 ,   r 95 = 0.8566 ,   r 96 = 0.872 ,   r 97 = 1.12 ,
r 98 = 1.15 ,   r 99 = 1.27 ,   r 100 = 1.4 .
Instance #9 output h * =   6.5382 time 64 sOptimized packing
Instance #10 input n = 5 a = 2 b = 3 h 0 = 2 m = 50
r j = 0.527 j = 1 , , 8 r j = 0.566 j = 9 , , 16 r 17 = 0.856
r 18 = 0.866 r 19 = 0.872 r j = 0.892 j = 20 , , 27 r 28 = 0.92
r j = 0.9612 j = 29 , , 37 r j = 0.964 j = 38 , , 45 r 46 = 0.97 r 47 = 1.12 r 48 = 1.15
r 49 = 1.27 r 50 = 1.4
Instance #10 output h * =   4.6199 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.

Share and Cite

MDPI and ACS Style

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

AMA Style

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 Style

Stoyan, 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 Style

Stoyan, 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

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop