Adaptation Planning as a Learning Process