Applications of simulation to social sciences