OR methods for routing, budgeting, scheduling, and topology design in multi-agent and test-time scaling systems