Optimal Decision Making via Stochastic Modeling and Machine Learning: Applications to Resource Allocation Problems and Sequential Decision Problems