We want to allow Nelder-Mead optimization in the smoothest path problem, as currenlty implemented in eventstudyr