Supply-and-demand mismatches for semiconductors have generated production headaches across industries. Forward-looking companies are using artificial intelligence to optimize short-term procurement.