Towards a generic optimal co-design of hardware architecture and control configuration for interacting subsystems. (November 2019)