A Formal Model for Adaptive Free Choice in Complex Systems