Learn inverse kinematic model by variation, perturbation