Ngā tūemi rite: Application of Machine Learning and Optimization Methods in Engineering Mathematics