Pātuhitia tēnei: Network optimization: continuous and discrete models