Digital transformation permeates all areas of our society and leads to the emergence of sociotechnical cyber-physical systems, such as in the domain of Industry 4.0. Software components, machinery, transportation vehicles, and intelligent objects are increasingly autonomous and possess self-organization capabilities, allowing them to dynamically coordinate and collaborate with humans. In order to cope with the complexity of engineering such systems, methodologies to secure and optimize heterogeneous human-machine teams need to be developed.