Planning under Resource Constraints