The aim of this project is the development, analysis, and demonstration in case studies of controller design for networked CPS based on optimal control (OC). The task on dyamic programminng based OC problems derives Hamilton-Jacobi type conditions for systems with fast and slow dynamics and sampled control systems. The task on algorithms on distributed OC combines approximated solutions of the necessary conditions of optimality with methods of distributed optimization.The task on distributed model based predictive control (MPC) for networked CPS uses theoretical tools from MPC of networked CPS. It adresses distributed MPC for coordinated output regulation in multiagent systems and cloud-based MPC of networked CPS. Finally, there are two applied tasks: energy management with multiple renewable sources, and multiple vehicle control and coordination.