Continuous optimization and adaptation