Optimization of the locomotion of YAMOR structures