Questions tagged [repast4py]
12 questions
1
vote
0 answers
Synchronization problem when moving agents in a context with UndirectedSharedNetwork and SharedCSpace projections
I am building on the rumor model (from the repast4py tutorial) to create a model in which agents can move in a 2-dimensional continuous space, and whose actions will depend on the states of nearby agents and some distant agents (according to a given…

smr
- 11
- 3
1
vote
1 answer
How to create ghost agents based on agents from another rank in repast4py?
I am trying to create an OrderBook agent that can be shared across all ranks. I can share the agent using mpi4py send and receive operations. But based on the documentation here I am assuming self.context.synchronize(restore_orderbook) will create…

Vinay
- 1,149
- 3
- 16
- 28
1
vote
1 answer
How do we start using Repast4Py
I am pretty new to using Ubuntu, so I am not really sure how to start using Repast4py after downloading it. I've ran it before in repast simphony already and that worked fine, but how do I do it in python?

Melonchollie
- 21
- 3
0
votes
0 answers
Can we run Repast4py in Databricks?
I am experimenting with repast4py library to build a supply chain simulation model and it involves large amount of data. My guess is to run this at scale I will require at least 20 cores and 200 GB RAM. The cost of a single virtual machine with this…

Vinay
- 1,149
- 3
- 16
- 28
0
votes
0 answers
Adding new edges between agents from different ranks
I have two agent ids from two different ranks (lets say (1,0,1) and (1,0,2)) and I want to add an edge between these two agents.
I tried to use DirectedSharedNetwork.add_edge() and SharedNetwork.graph.add_edge() but for doing that I must have the…

Ak2495
- 1
0
votes
1 answer
How to get the attribute of an agent from different ranks?
In one part of my agent-based model, I collect all agents with the same type from different ranks by using MPI.COMM_WORLD.gather. Then I'm trying to send the gathered agents to a function that needs to perform some computations on the gathered…

Ak2495
- 1
0
votes
1 answer
How to simulate an order queue in repast across multiple ranks(processor cores )?
I am just beginning with repast python. I want to simulate a small order handling process with multiple steps.
Let's say there are 1000 orders with different order placement timestamps. There are 3 steps after the order is received, picking(10 - 15…

Vinay
- 1,149
- 3
- 16
- 28
0
votes
1 answer
Is there a way to access the weight of an edge using Repast4Py's network module?
The Repast4py API documentation states there are ways to add edges with weights in a network. Similarly, it states ways to access the number of edges a given vertex has. However, it doesn't seem there is a way to access the weight of a given vertex.…

Zuddas98
- 25
- 4
0
votes
0 answers
Repast4py random walk example wit RDMAV_FORK_SAFE error
I run the randomwalk example, but it showed the RDMAV_FORK_SAFE error, "A process has executed an operation involving a call to the fork() system call to create a child process."
someone could helps, thanks a lot.

Juzet
- 1
0
votes
0 answers
use of designated initializers requires at least '/std:c++20' and cannot mix designated-initializers with non-designated-initializers
I want to install repast4py in windows 10, and I enter 'pip install repast4py' in cmd, but It displays errors
'src/repast4py/coremodule.cpp(342): error C7556: cannot mix designated-initializers with non-designated-initializers' and
'error C7555: use…

Hamed
- 1
0
votes
0 answers
Could not build wheels for repast4py, which is required to install pyproject.toml-based projects
I want to install repast4py in windows with pip. I enter the 'pip install repast4py' in cmd, but this error displays:Could not build wheels for repast4py, which is required to install pyproject.toml-based projects (Building wheel for repast4py…

Hamed
- 1
0
votes
0 answers
I want to install repast4py, how to install repast4py in windows 10?
I want to install repast4py in windows10, But when I enter 'pip install repast4py' in cmd, It displays the error "MPI compiler is not specified. Please specify the MPI compiler using the 'cc' environment variable"
Thanks for the Answer.
cmd…

Hamed
- 1