Optimization through AI algorithms