Reconciling white-box and black-box perspectives on behavioural self-adaptation