A Unified Treatment of Derivative Pricing and Forward Decision Problems within the HJM Framework