Design and self-management of wireless networked systems with model-driven optimization