Skip to content

Agent & Network #25

Answered by jofmi
Thomas-Paul-Fr asked this question in Q&A
Jul 1, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @Thomas-Paul-Fr! Your thesis sounds very interesting! Both of your questions should be possible, but there is no example for it yet in the model library (maybe your model could be added later on if you are interested).

Regarding question 1, if you look at the reference of Network.add_agents(), you can see that you can add multiple agents to the same AgentNode in the network. You can access these nodes via Network.nodes, each being a set from which you can select agents.

Regarding question 2, you can use Network.add_agents() at every time-step, so it should be easy to add agents as you go.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Thomas-Paul-Fr
Comment options

Answer selected by jofmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants