Pātuhitia tēnei: Advanced Modeling and Research in Hybrid Microgrid Control and Optimization