Adaptive tuning of Majorana fermions in a quantum dot chain