Before revision:  The optimal control is obtained as  a diffusion process reflected at a non-constant free boundary.
After revision:  The optimal control is obtained as the local time of a diffusion process reflected at a non-constant free boundary.