@gargron first world problems! And also there was no AC, right?

How would you solve this problem? What predictive optimization problems would you came up to solve such an issue?