Adaptation is the capacity for a system to change its state in response to some change within its environment, this is done by selecting from a set of internal states to the system that will best respond to the external perturbation and thus optimize the system’s state within its environment.