Managing Supply and Demand Balance Through Machine Learning