Multi-agent market equilibria: mathematical models and empirical analyses