Dynamic Resource Allocation: A Flexible and Tractable Modeling Framework