Adaptive Policy Optimization