Questions tagged [repast-simphony]

Repast Simphony is a cross platform Java-based modeling system that runs under Microsoft Windows, Apple Mac OS X, and Linux. It supports the development of extremely flexible models of interacting agents for use on workstations and small computing clusters.

Repast Simphony is a tightly integrated, richly interactive, cross platform Java-based modeling system that runs under Microsoft Windows, Apple Mac OS X, and Linux. It supports the development of extremely flexible models of interacting agents for use on workstations and small computing clusters.

Repast Simphony models can be developed in several different forms including the ReLogo dialect of Logo, point-and-click flowcharts, Groovy, or Java, all of which can be fluidly interleaved. NetLogo models can also be imported.

119 questions
1
vote
1 answer

Repast - eliminate/delete agents permanently

The model I have contains huge number of agents. However, I wish to partially delete/elminate some agents who have done their job during the run-time, in order to release computing memory, speed up model execution and avoid OOM. Is context.remove()…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast - Exchange information between batch runs

Batch runs in Repast are independent runs without interactions. However, in my model I have a need to enable such interaction. E.g. run-2 needs to get some data from run-1 in order to run completely. Is there a way to exchange information between…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast: how to add and set a new parameter directly from the code instead of GUI

I want to create a parameter that contains a list of string (list of hub codes). This list of string is created by reading an external csv file (this list could contain the different codes depending on the hub codes in the CSV file) What I want is…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

EXCEPTION_ACCESS_VIOLATION in Repast

I have installed Repast on my windows 10 computer, but if I try to run one of the demo codes I get an error. Error loading EGL entry points. A fatal error has been detected by the Java Runtime Environment: EXCEPTION_ACCESS_VIOLATION (0xc0000005)…
1
vote
0 answers

Repast: Batch run cause UTF-8 corrupted characters

My model has a DataWriter class to ouput a csv file which contains some UTF-8 characters in the headerline. It's showing properly in the output csv file when I run the model in GUI mode. However, when I run it in batch mode, the headerline UTF-8…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
0 answers

Dynamic modification of a shapefile display in a Python simulation program

I would like to be able to use a GIS-based shapefile in a Python simulation program in a way that its display can be dynamically changed as time progresses in the simulation (that's it, at every simulation tick, certain facets of the shapefile…
ama
  • 35
  • 4
1
vote
1 answer

Repast: how to overwrite the existing file rather than auto-create a new file in text sink

I wonder how to overwrite the existing file rather than auto-create a new file in text sink. for instance, if I run the model two times it creates two files. The second file is created using the same defined file name but with a new number behind…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
0 answers

Repast - PropertyGreaterThanEquals/PropertyLessThanEquals cause slow running speed

I found that using the query methods “PropertyGreaterThanEquals” or "PropertyLessThanEquals" runs very much slower than using the method “PropertyEquals”. below is a simple example about query a suitable dock for truck to unload goods. public…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast: query an agent set and count the number of agents in while loop

I want to achieve a logic like this: while (count loading_docks with [status == "free"] > 0 and trucks with [status == "free" and type == "20'" and capacity < 1000] > 0) { match a truck satisfying above 3 condidtions to a free dock for unloading…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast: cannot call method from another class in Context Builder

I dont know why I get NullPointerException: ERROR [AWT-EventQueue-0] 18:21:05,864 repast.simphony.ui.RSApplication - Error while initializing simulation java.lang.NullPointerException at…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast Simphony Projection customisation

I read in a book that a projection in Repast Simphony can be any user implementation of the Projection interface. I would like to create a custom projection but it looks more complicated that I expected. Have any of you ever tried to create their…
Eulalie
  • 99
  • 7
1
vote
1 answer

Repast: unknown errors reported

Issue 1: Below is the error I received but I have no idea where is wrong. Caused by: java.lang.NullPointerException at repast.simphony.visualizationOGL2D.DisplayOGL2D.getSpatialForObject(DisplayOGL2D.java:535) at…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast: how to get a particular agent set based on multiple conditions?

There is an answer about how to get the desired agent set with only one condition: Repast: how to get a particular agent set based on the specific conditions? How does such thing work for multiple conditions? (e.g. ask rich_people with [wealth >…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

Repast Java: how to run model directly in Eclipse without GUI and how to run it in headless mode without even Eclipse

I am wondering how to 1) how to run model directly in Eclipse without GUI - just run the model like run other java codes in Eclipse and print out something i am interested. 2) how to run it in headless mode without even Eclipse - I plan to deploy…
Jack
  • 1,131
  • 1
  • 8
  • 17
1
vote
1 answer

How to fix the error generated by repast.simphony.runtime.RepastMain?

i have tried to programmatically start Repast-simphony using repast.simphony.runtime.RepastMain. So when i lunch it the saf.core.runtime.Boot class give this type error : "ERROR [AWT-EventQueue-0] 14:43:38,880 saf.core.runtime.Boot -…