diff --git a/tutorials/robot-marbles-part-7/robot-marbles-part-7.ipynb b/tutorials/robot-marbles-part-7/robot-marbles-part-7.ipynb index f57effc..9d56c4d 100644 --- a/tutorials/robot-marbles-part-7/robot-marbles-part-7.ipynb +++ b/tutorials/robot-marbles-part-7/robot-marbles-part-7.ipynb @@ -39,7 +39,7 @@ "\n", "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # \n", "# List of all the state variables in the system and their initial values\n", - "initial_conditions = {\n", + "genesis_states = {\n", " 'box_A': 10, # as per the description of the example, box_A starts out with 10 marbles in it\n", " 'box_B': 0 # as per the description of the example, box_B starts out empty\n", "}\n", @@ -53,7 +53,7 @@ "# `N` is the number of times the simulation will be run (Monte Carlo runs)\n", "# In this example, we'll run the simulation once (N=1) and its duration will be of 10 timesteps\n", "# We'll cover the `M` key in a future article. For now, let's leave it empty\n", - "simulation_parameters = {\n", + "sim_config_dict = {\n", " 'T': range(10),\n", " 'N': 50, # We'll run the same simulation 50 times; the random events in each simulation are independent\n", " #'M': {}\n", @@ -62,7 +62,7 @@ "\n", "# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # \n", "# We specify the robot arm's logic in a Policy Function\n", - "def robot_arm(params, step, sL, s, capacity=1):\n", + "def robot_arm(params, step, sH, s, capacity=1):\n", " add_to_A = 0\n", " if (s['box_A'] > s['box_B']):\n", " add_to_A = -capacity\n", @@ -72,17 +72,17 @@ " \n", "robots_probabilities = [0.5,1/3] # Robot 1 acts with a 50% probability; Robot 2, 33.33%\n", "\n", - "def robot_arm_1(params, step, sL, s):\n", + "def robot_arm_1(params, step, sH, s):\n", " _robotId = 1\n", " if rand()