Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiating time #79

Open
shahab-valaei opened this issue Feb 23, 2020 · 1 comment
Open

Instantiating time #79

shahab-valaei opened this issue Feb 23, 2020 · 1 comment

Comments

@shahab-valaei
Copy link

  • SPADE version: 3.1.4
  • Python version: 3.8
  • Operating System: Windows 10

Description

I'm trying to create a multi-agent system for disaster response using SPADE. I want to use a huge number of agents around 10000 or more. Do you think SPADE is a good choice for this simulation with this number of agents?

What I Did

I created a simple model using SPADE which contains about 20 agents, but each time it takes about 1 minute to instantiate agents and after that running process starts. I think if I use large number of agents, the instantiation time will increase a lot. Is there any solution to this problem?

@javipalanca
Copy link
Owner

Every agent you create needs to make a connection to an XMPP server. Handling lots of connections made at the same time may be a problem for both the client (who needs to open a lot of sockets) and even for the XMPP server, who may not be powerful enough to support thousands of connections made at the same time. This does not mean that you can have thousands of agents connected to a server, but the problem is making the connections at the same time.

In the meantime I'm preparing a plugin for SPADE that allows to have standalone agents that are not connected to the XMPP server, so it allows to have lots of agents in the same process, but they can only communicate with agents in the same process. Maybe this is a good solution to simulations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants