Abstract
This paper introduces a mathematical formulation for the problem of determining the optimal position for a three-dimensional item inside a convex container, where its scale can be increased the most and thus its volume maximised. Until now, no methods have been presented that guarantee optimal solutions to this volume maximisation problem while considering continuous free rotation of the item, with approaches relying on heuristics, approximations or enforcing a discrete number of rotations. We aim to find optimal solutions when considering continuous rotation, represented using quaternions. This enables modelling rotation through quadratic constraints. The resulting quadratically constrained problem can be solved to optimality by mathematical solvers. To keep the required computation time within reasonable limits, various improvements to the model such as symmetry breaking are introduced. Experiments show that the majority of our benchmark instances can be solved to optimality within minutes. The expansion to concave containers is also explored, but proves to be more challenging as the required number of quadratic constraints quickly becomes prohibitive.












Similar content being viewed by others
Data availability
The source code used to perform the experiments described in this paper can be found at https://github.com/JonasTollenaere/svmp-quaternion-qcp. All instance files can be found in our repository at https://gitlab.kuleuven.be/codes/datasets/3d-irregular-data-sets.
Notes
This repository can be found at https://gitlab.kuleuven.be/codes/datasets/3d-irregular-data-sets.
References
Cherri LH, Cherri AC, Soler EM (2018) Mixed integer quadratically-constrained programming model to solve the irregular strip packing problem with continuous rotations. J Global Optim 72:89–107
Godot (2024) Advanced vector math
Gottschalk SA (2000) Collision queries using oriented bounding boxes. The University of North Carolina at Chapel Hill
Lamas-Fernandez C, Bennell JA, Martinez-Sykora A (2023) Voxel-based solution approaches to the three-dimensional irregular packing problem. Oper Res 71(4):1298–1317
Leao AA, Toledo FM, Oliveira JF, Carravilla MA, Alvarez-Valdés R (2020) Irregular packing problems: a review of mathematical models. Eur J Oper Res 282(3):803–822
Pantoja-Benavides G, Álvarez-Martínez D, Parreño Torres F (2024) The normalized direct trigonometry model for the two-dimensional irregular strip packing problem. Mathematics 12(15):2414
Romanova T, Bennell J, Stoyan Y, Pankratov A (2018) Packing of concave polyhedra with continuous rotations using nonlinear optimisation. Eur J Oper Res 268(1):37–53
Silva EF, Çalık H, Vancroonenburg W, Leao AAS, Wauters T (2021) Extracting maximal objects from three-dimensional solid materials. Comput Oper Res 132:105290
Stoyan Y, Pankratov A, Romanova T (2016) Quasi-phi-functions and optimal packing of ellipses. J Glob Optim 65(2):283–307
The CGAL Project (2024) CGAL User and Reference Manual. CGAL Editorial Board, 5.6.2 edition
Tollenaere J, Çalık H, Wauters T (2024) Efficient use of collision detection for volume maximization problems. Eur J Oper Res 319(3):967–982
Vince J (2011) Quaternions for computer graphics. Springer
Funding
This contribution was supported by the KU Leuven Internal Funding C2E/23/013 project. Editorial feedback and review was provided by Luke Connolly.
Author information
Authors and Affiliations
Contributions
J. Tollenaere: Conceptualization, Methodology, Software, Formal analysis and investigation, Writing. T. Wauters: Supervision, Funding acquisition, Writing—review.
Corresponding author
Ethics declarations
Conflict of interest
The authors have no competing interests to declare.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendices
Appendix A: Datasets
1.1 Appendix A1: Experiments with convex containers
See Fig. 13.
1.2 Appendix A2: Experiments with concave containers
See Fig. 14.
All instances can be found in our repository at: https://gitlab.kuleuven.be/codes/datasets/3d-irregular-data-sets.
Appendix B: Detailed convex container results
Tables 11 and 12 provide a detailed overview of the computation times for the 80 instances in the convex container benchmark. Meanwhile, Tables 13 and 14 provide a detailed overview of the experiments where Gurobi and SCIP are compared.
The experiments were executed with Gurobi 11.0.0 and SCIP 9.1.0. To show the impact of a different number of available threads, the experiments with Gurobi were executed with 1, 12, and 64 threads. 12 threads is the default configuration for the M2 Pro CPU used in the experiments.
Appendix C: Convex container benchmarks compared to other approaches
This appendix provides detailed results comparing the solution quality and computation times against the heuristics introduced in Silva et al. (2021) and Tollenaere et al. (2024). This shows that the heuristic solution can be slightly worse than the optimal ones.
Appendix D: Detailed concave container results
Table 17 provides the individual results for the concave container benchmark. A scale of 0 and dash in the gap column indicates that no feasible solution was found by the solver in the 1 h time limit. The LA Rel. column shows the relative scale found by the late acceptance heuristic (Tollenaere et al. 2024) compared to the optimal scale.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Tollenaere, J., Wauters, T. Quaternion-based formulations for volume maximisation problems. J Comb Optim 50, 22 (2025). https://doi.org/10.1007/s10878-025-01351-x
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1007/s10878-025-01351-x



