Dynamic Optimization and Rebalancing