Dynamic Cost Adjustment and Intertemporal Optimization