Set the state for each agent in a population
an external pointer to a population, for example,
one returned by newPopulation()
either a list holding the states (one for each agent), or a function
If states
is a function then it takes a single argument
i
, specifying the index of the agent (starting from 1), and returns
a state.