Optimization through artificial intelligence