Class representing an Agent object for dictating policy through time and storing value function (that maps states of the model to actions).
See Simulation
for examples.
new()
Agent$new(verbose = FALSE)
verbose
Log verbosity.
start_simulation()
Initialize the Agent object for the start of a simulation/
Agent$start_simulation(state)
state
Initial state.
An action.
step()
Method called at the start of each simulation
Agent$step(state)
state
New state.
Should return an action (current an empty dict).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.