Cooperative and Competitive Multi-Agent Systems: From Optimization to Games | Synapse