Αποστολή με SMS: Distributed Optimization-Based Control of Multi-Agent Networks in Complex Environments