Skip to content

Commit 65fc178

Browse files
committed
add seed kwarg
1 parent aca104e commit 65fc178

File tree

1 file changed

+2
-1
lines changed
  • examples/hotelling_law/hotelling_law

1 file changed

+2
-1
lines changed

examples/hotelling_law/hotelling_law/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ def __init__(
7676
consumer_preferences="default",
7777
environment_type="grid",
7878
mobility_rate=80,
79+
seed = None
7980
):
8081
# Initialize the model with parameters for number of agents,
8182
# grid size, mode of operation,environment type,
8283
# and mobility rate.
83-
super().__init__()
84+
super().__init__(seed=seed)
8485
# Total number of store agents in the model.
8586
self.num_agents = N_stores
8687
# Total number of consumers

0 commit comments

Comments
 (0)