Pātuhitia tēnei: Cost and optimization engineering