Learning and control in a changing economic environment