Statistics for High-level control of agent-based crowds by means of general constraints