Conference paperStochastic optimal control for a general class of dynamic resource allocation problems