Cyber-Physical Systems (CPS) are an instance of hybrid systems that combine physical components governed by time-driven dynamics and computer-based components with event-driven dynamics. We will outline the differences between these two types of systems from a modeling, control, and optimization standpoint and discuss examples of CPS and related technical challenges. We will also try to place CPS-related problems in a unifying multi-agent network system framework.