Adaptation of a non-linear controller based on Reinforcement Learning