maxkw / evolution

0 stars 0 forks source link

Rewrap the utility loop in the agent utility function #2

Closed maxkw closed 8 years ago

maxkw commented 8 years ago

Move the loop over agents from the decide_likelihood function to the agent utility function.

polyguo commented 8 years ago

renamed all existing utility functions to "utility(payoff,id)" and just defined utility in Agent class to "return map(self.utility,zip(payoffs,agent_ids))"