Reinforcement learning in netlogo

342 Views Asked by At

I'm trying to do a model of reinforcement learning but I can't get my turtles to hatch correctly. Here's how the program is meant to work.

To start, a state is chosen at random. This is the state-class. Then a turtle with this state-class is chosen at random. Next a turtle with an act-class that is the same breed as the previous turtle is chosen. The value of the act-class is compared to the value of the state-class to determine the payoff. Finally hatch payoff many turtles of the first kind and payoff many turtles of the second kind.

My problem is that an arbitrary number of turtles of random kinds are being hatched. Any idea what's wrong with my code?

0

There are 0 best solutions below