Robust Hybrid Systems For Control, Learning, And Optimization In Networked Dynamical Systems