Online learning with dynamics: A minimax perspective