Adaptive Logistics Management and Optimization through Artificial Intelligence