Pātuhitia tēnei: Stochastic reliability modeling, optimization and applications