Skip to contents

A generic method for iterating a learning model, setting the current behavior and fitness to be whatever was identified as the next behavior and fitness.

Usage

iterate_learning_model(model)

Value

NULL Operates in-place to update all agent's behavior if necessary.

Examples

net <- make_regular_lattice(10, 4)
model <- AgentBasedModel$new(network = net)
output <- run(model, 10, interact = frequency_bias_interact, 
              iterate_model = iterate_learning_model)