Modern maintenance scheduling is a complex optimization problem that combines resource constraints, uncertain environments, and critical times. In this research, the maintenance life of logistics tools within an agricultural product supply chain is optimized. Like any other supply chain, an agricultural supply chain is a network of organizations working together in various processes and activities to bring products and services to the market, aiming to meet customer demands. This study focuses on increasing the maintenance life of trucks and reducing transportation costs by optimizing the periodic repair time of trucks in the chicken meat distribution network, specifically from the slaughterhouse in Rasht to retailers in Tehran, Iran. The designed optimization problem was simulated and solved using a gradient-based method and the concept of nonlinear programming in the MATLAB software environment. By using this method, the simulation results indicate a 16% reduction in maintenance costs.