In this paper, we compare three well-known swarm algorithms on optimal regime based on our mathematical optimization model introduced recently. Different parameters of this latter are estimated based on 176 foods and on who’s the nutrients values are calculated for 100 g. The daily nutrients needs are estimated based on the expert’s knowledge. Different experimentations are realized for different configurations of the considered swarm algorithms. Compared to Stochastic Fractal Search (SFS) and Particle Swarm Optimization Algorithm (PSO), the Firefly Algorithm (FA) produces the main suitable regimes.