FEALPy.OPT: A Multi-Backend Tensor Computing Framework for Metaheuristic Optimization on CPU and GPU Platforms
Abstract
Metaheuristic algorithms (MAs) are widely used to solve complex optimization problems, but their computational costs can become substantial as population size and problem dimensionality increase. This paper presents FEALPy.OPT, an open-source Python framework for metaheuristic optimization built on the FEALPy computational infrastructure. It integrates a unified optimizer abstraction with multi-backend tensor computation, supporting NumPy and PyTorch backends on CPU and GPU platforms. To evaluate its computational performance, five metaheuristic algorithms are tested on ten benchmark functions under three problem scales, with population sizes ranging from 100 to 10,000 and dimensions from 30 to 100. The results show that NumPy/CPU achieves the shortest average runtime for small-scale problems, whereas PyTorch/GPU becomes increasingly advantageous as the problem scale grows. For large-scale problems, PyTorch/GPU is approximately 9.50 times faster than PyTorch/CPU and 32.96 times faster than NumPy/CPU. These findings demonstrate the value of multi-backend and multi-platform support for improving the computational flexibility and efficiency of metaheuristic optimization.
Create a lesson
Metadata
- Comments
- 15 pages, 2 figures
Related papers
Learning-Enhanced Reduce-Repair-Refine-Optimize Framework for Real-Time Train Platforming
Shared title terminologymath.OCMd Tabish Haque, Sebastian Sehmisch, Christopher Szymula et al.
Fast Gradient-Based Framework for Spatial and Length Optimization of Geothermal Borehole Fields
Shared title terminologymath.OCOliver Heinzel, Smajil Halilovic, Thomas Hamacher et al.
The dimension of optimal plans in multi-marginal optimal transport
Shared title terminologymath.OCCamilla Brizzi, Gero Friesecke
A Unified Bregman Projection Framework for Solving Multi-Split Multiple-Set Implicit Convex Feasibility Problems
Shared title terminologymath.OCSoumitra Dey, Aviv Gibali, Simeon Reich
Optimal Scheduling of Multi-Site AI Data Centers in Day-Ahead Markets
Shared title terminologymath.OCXinyang Zhou, Guido Cavraro
When Suspicion Adds Up: A Stochastic Framework for Optimizing Honeypot-Based Insider-Threat Detection
Shared title terminologymath.OCSaharnaz Mehrani, Lujia Zhan, Mohsen Emadikhiav et al.