Discovering Artificial Economics: How Agents Learn and Economies Evolve