Pātuhitia tēnei: Methods of dynamic and nonsmooth optimization