Can the multirun button on the GUI display multiple runs? It seems to
run in batch only. I would like to display multiple runs continuously
(ah, yes, I am trying to debug something that occurs only on special
occasions). Is that possible?
TIA,
myriam

The HBNoGui example won't work here. Although it does not actually show the
display, it still contains some code in the model that assumes the potential
creation of a property panel. That code is:
BooleanPropertyDescriptor bd = new BooleanPropertyDescriptor("BDExample",
false);
descriptors.put("BDExample", bd);
With this in there, HBNoGui cannot be run headless.
Nick
-----Original Message-----
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Duncan
Robertson
Sent: Monday, January 30, 2006 12:00 PM
To: repast-interest@...
Subject: [Repast-interest] X11 problems
Hello everyone
I am having a bit of a problem with running my model for the first time on a
remote computer (my desktop PC was overheating, so I thought it was about
time).
I am attempting to run my model in batch mode using java -b. However, I am
getting javax errors, even though (as far as I am aware), no GUI windows
should be opened by the model. I attempted to run the HeatBugs model to see
whether it was just my model that was giving problems, but came up with the
same errors.
The error first comes up in this example (on line 89) is the same for my
model -- something to do with the Property Descriptors -- although quite
they are throwing javax errors I have no idea.
I am running my model using PBS to submit to a queue on a supercomputer, so
don't want to have to keep my PC logged on just so it can open an X11
terminal on my desktop for no windows to be displayed on it. I realise the
DISPLAY variable is wrong in the example below, but is there a way of
changing the way the model is run so that there is no need to open an
X11 connection and therefore not require the $DISPLAY to be set at all?
Thanks for your help,
Duncan
---
For example:
/users/bsseai/java/j2sdk1.4.2_10/bin/java -cp
.:/users/bsseai/repast/Repast-3.1/RepastJ/repast.jar:/users/bsseai/simulatio
ns/HeatBugs
uchicago.src.sim.engine.SimInit -b heatBugs.HBNoGui
[bsseai@... bsseai]$ /users/bsseai/java/j2sdk1.4.2_10/bin/java -cp
.:/users/bsseai/repast/Repast-3.1/RepastJ/repast.jar:/users/bsseai/simulatio
ns/HeatBugs
uchicago.src.sim.engine.SimInit -b heatBugs.HBNoGui
Run: 1
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at
javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTh
eme.java:195)
at
javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
at
javax.swing.plaf.metal.DefaultMetalTheme.getControlTextFont(DefaultMetalThem
e.java:129)
at
javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLoo
kAndFeel.java:1399)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:201)
at javax.swing.UIDefaults.get(UIDefaults.java:131)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getFont(UIDefaults.java:351)
at javax.swing.UIManager.getFont(UIManager.java:491)
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)
at
javax.swing.plaf.basic.BasicButtonUI.installDefaults(BasicButtonUI.java:124)
at
javax.swing.plaf.basic.BasicRadioButtonUI.installDefaults(BasicRadioButtonUI
.java:50)
at
javax.swing.plaf.metal.MetalRadioButtonUI.installDefaults(MetalRadioButtonUI
.java:57)
at
javax.swing.plaf.metal.MetalCheckBoxUI.installDefaults(MetalCheckBoxUI.java:
62)
at
javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:60)
at javax.swing.JComponent.setUI(JComponent.java:449)
at javax.swing.AbstractButton.setUI(AbstractButton.java:1616)
at javax.swing.JCheckBox.updateUI(JCheckBox.java:199)
at javax.swing.AbstractButton.init(AbstractButton.java:1952)
at javax.swing.JToggleButton.<init>(JToggleButton.java:149)
at javax.swing.JCheckBox.<init>(JCheckBox.java:147)
at javax.swing.JCheckBox.<init>(JCheckBox.java:69)
at uchicago.src.reflector.PropertyCheckBox.<init>(Unknown Source)
at
uchicago.src.reflector.BooleanPropertyDescriptor.<init>(Unknown Source)
*** at heatBugs.HeatBug.<init>(HeatBug.java:89)
*** at heatBugs.HBNoGui.buildModel(HBNoGui.java:89)
*** at heatBugs.HBNoGui.begin(HBNoGui.java:129)
at uchicago.src.sim.engine.BaseController.beginModel(Unknown Source)
at uchicago.src.sim.engine.BaseController.startSim(Unknown Source)
at uchicago.src.sim.engine.BatchController.start(Unknown Source)
at uchicago.src.sim.engine.BatchController$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Where heatBugs.HeatBug:89 =BooleanPropertyDescriptor bd = new
BooleanPropertyDescriptor("BDExample", false);
90 descriptors.put("BDExample", bd);
75 public HeatBug(HeatSpace space, Object2DTorus world, int x,
76 int y, int idealTemp, int outputHeat, float randomMoveProb)
77 {
78 this.x = x;
79 this.y = y;
80 this.idealTemp = idealTemp;
81 this.outputHeat = outputHeat;
82 this.randomMoveProb = randomMoveProb;
83 this.space = space;
84 this.world = world;
85 worldSize = world.getSize();
86 xSize = worldSize.width;
87 ySize = worldSize.height;
88
89*
91
92 }
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Hello everyone
I am having a bit of a problem with running my model for the first time
on a remote computer (my desktop PC was overheating, so I thought it was
about time).
I am attempting to run my model in batch mode using java -b. However, I
am getting javax errors, even though (as far as I am aware), no GUI
windows should be opened by the model. I attempted to run the HeatBugs
model to see whether it was just my model that was giving problems, but
came up with the same errors.
The error first comes up in this example (on line 89) is the same for my
model -- something to do with the Property Descriptors -- although quite
they are throwing javax errors I have no idea.
I am running my model using PBS to submit to a queue on a supercomputer,
so don't want to have to keep my PC logged on just so it can open an X11
terminal on my desktop for no windows to be displayed on it. I realise
the DISPLAY variable is wrong in the example below, but is there a way
of changing the way the model is run so that there is no need to open an
X11 connection and therefore not require the $DISPLAY to be set at all?
Thanks for your help,
Duncan
---
For example:
/users/bsseai/java/j2sdk1.4.2_10/bin/java -cp
.:/users/bsseai/repast/Repast-3.1/RepastJ/repast.jar:/users/bsseai/simulations/HeatBugs
uchicago.src.sim.engine.SimInit -b heatBugs.HBNoGui
[bsseai@... bsseai]$ /users/bsseai/java/j2sdk1.4.2_10/bin/java -cp
.:/users/bsseai/repast/Repast-3.1/RepastJ/repast.jar:/users/bsseai/simulations/HeatBugs
uchicago.src.sim.engine.SimInit -b heatBugs.HBNoGui
Run: 1
java.lang.InternalError: Can't connect to X11 window server using ':0.0'
as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at
javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMetalTheme.java:195)
at
javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:153)
at
javax.swing.plaf.metal.DefaultMetalTheme.getControlTextFont(DefaultMetalTheme.java:129)
at
javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(MetalLookAndFeel.java:1399)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:201)
at javax.swing.UIDefaults.get(UIDefaults.java:131)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getFont(UIDefaults.java:351)
at javax.swing.UIManager.getFont(UIManager.java:491)
at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)
at
javax.swing.plaf.basic.BasicButtonUI.installDefaults(BasicButtonUI.java:124)
at
javax.swing.plaf.basic.BasicRadioButtonUI.installDefaults(BasicRadioButtonUI.java:50)
at
javax.swing.plaf.metal.MetalRadioButtonUI.installDefaults(MetalRadioButtonUI.java:57)
at
javax.swing.plaf.metal.MetalCheckBoxUI.installDefaults(MetalCheckBoxUI.java:62)
at
javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:60)
at javax.swing.JComponent.setUI(JComponent.java:449)
at javax.swing.AbstractButton.setUI(AbstractButton.java:1616)
at javax.swing.JCheckBox.updateUI(JCheckBox.java:199)
at javax.swing.AbstractButton.init(AbstractButton.java:1952)
at javax.swing.JToggleButton.<init>(JToggleButton.java:149)
at javax.swing.JCheckBox.<init>(JCheckBox.java:147)
at javax.swing.JCheckBox.<init>(JCheckBox.java:69)
at uchicago.src.reflector.PropertyCheckBox.<init>(Unknown Source)
at
uchicago.src.reflector.BooleanPropertyDescriptor.<init>(Unknown Source)
*** at heatBugs.HeatBug.<init>(HeatBug.java:89)
*** at heatBugs.HBNoGui.buildModel(HBNoGui.java:89)
*** at heatBugs.HBNoGui.begin(HBNoGui.java:129)
at uchicago.src.sim.engine.BaseController.beginModel(Unknown Source)
at uchicago.src.sim.engine.BaseController.startSim(Unknown Source)
at uchicago.src.sim.engine.BatchController.start(Unknown Source)
at uchicago.src.sim.engine.BatchController$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Where heatBugs.HeatBug:89 =
75 public HeatBug(HeatSpace space, Object2DTorus world, int x,
76 int y, int idealTemp, int outputHeat, float randomMoveProb)
77 {
78 this.x = x;
79 this.y = y;
80 this.idealTemp = idealTemp;
81 this.outputHeat = outputHeat;
82 this.randomMoveProb = randomMoveProb;
83 this.space = space;
84 this.world = world;
85 worldSize = world.getSize();
86 xSize = worldSize.width;
87 ySize = worldSize.height;
88
89* BooleanPropertyDescriptor bd = new
BooleanPropertyDescriptor("BDExample", false);
90 descriptors.put("BDExample", bd);
91
92 }

The only official examples are the few that are distributed with repasty.
Anyone else should feel free to share though.
Nick
-----Original Message-----
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Andreas
Nickenig
Sent: Saturday, January 28, 2006 5:16 AM
To: repast-interest@...
Subject: [Repast-interest] Hello
We are students of Information Managment at the University Koblenz-Landau
(Germany).
We are looking for RepastPy Source Codes. Have you got any examples for us?
Thx alot.
Andreas
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

I've been looking at a simulation software called AnyLogic produced by a
XJTech (www.xjtek.com/anylogic/). It seems to make model simulation simple=
,
yet flexible. Has anyone ever looked into building a tool or extension to
load GIS data by creating a Java library or anything of the sort?
I see a benefit in it, as agent analyst is difficult to maneuvre in for a
beginner, never mind those who've worked in RePast for a while. Writing
code fto build models simply takes too much time and energy. With AnyLogic=
,
the agent-building process seems to take dramatically less time. If one
were able to build a Java extension that easily brings GIS data into
AnyLogic, the benefits would greatly outweigh the negatives. It would also
improve dramatically on the current system for using spatial information
that AnyLogic users employ - basically rebuilding the geographic data over
the top of AnyLogic's gui. Any opinions on whether this would be worth the
time?
--
a citizen of no ordinary city. Acts 21:39

Maneesh,
The only agents you can plot on the gui window at the moment are the vector
agents.
Nick
_____
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Maneesh
Kumar
Sent: Wednesday, January 18, 2006 11:33 PM
To: repast-interest@...
Cc: Nick Collier
Subject: Re: [Repast-interest] GISModel in REPAST Py
Nick,
I am trying to integrate a Agent Based Model with a GIS, so the idea is to
have a set of Vector Agents...read their attributes..pass them to the
generic agents then do certain calculations using this data and generic
agents behavior rules...and based on the result of those calculations plot
the generic agents on to the GIS GUI window.
Is something like this possible...
regards
Maneesh
On 1/16/06, Nick Collier <nick.collier@...> wrote:
Maneesh,
Generic agents aren't set up to be feed data from a shapefile and plotted.
Vector agents are created using shapefile data, and given that they map
directly to the shapefile data, can be easily plotted. Can you say more
about why you want to use generic agents rather than vector agents here?
thanks,
Nick
_____
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Maneesh
Kumar
Sent: Monday, January 16, 2006 7:17 AM
To: repast-interest@...
<mailto:repast-interest@...>
Subject: [Repast-interest] GISModel in REPAST Py
Hi ppl,
Am trying to put togather a GIS Model in REPAST Py, there are a few pointer
i needed in that regard
1. How do i read data from the shape files and pass it to the generic agents
in the model
2. Is there a way to plot generic agents into ArcGIS/OpenMap using lat long
co-ordinates
It would be great if someone could help me with this.
Best
Maneesh

Nick,
I am trying to integrate a Agent Based Model with a GIS, so the idea is to
have a set of Vector Agents...read their attributes..pass them to the
generic agents then do certain calculations using this data and generic
agents behavior rules...and based on the result of those calculations plot
the generic agents on to the GIS GUI window.
Is something like this possible...
regards
Maneesh
On 1/16/06, Nick Collier <nick.collier@...> wrote:
>
> Maneesh,
>
> Generic agents aren't set up to be feed data from a shapefile and plotted=
.
> Vector agents are created using shapefile data, and given that they map
> directly to the shapefile data, can be easily plotted. Can you say more
> about why you want to use generic agents rather than vector agents here?
>
> thanks,
>
> Nick
>
> ------------------------------
> *From:* repast-interest-admin@... [mailto:
> repast-interest-admin@...] *On Behalf Of *Maneesh Kumar
> *Sent:* Monday, January 16, 2006 7:17 AM
> *To:* repast-interest@...
> *Subject:* [Repast-interest] GISModel in REPAST Py
>
>
> Hi ppl,
>
> Am trying to put togather a GIS Model in REPAST Py, there are a few
> pointer i needed in that regard
>
> 1. How do i read data from the shape files and pass it to the generic
> agents in the model
>
> 2. Is there a way to plot generic agents into ArcGIS/OpenMap using lat
> long co-ordinates
>
> It would be great if someone could help me with this.
>
> Best
> Maneesh
>
>

Dear Laszlo Gulyas,
thanks for the suggestion, but I'm just using System.gc()
to call
the garbage collector during the phase when we free the
memory.
We print and check also the amount of free memory before
and after calling
System.gc() using the Runtime.getRuntime().freeMemory()
method.
Althought some memory is freed, there is always an
increase in the
total memory available!!
Best,
-Giuseppe
On Wed, 18 Jan 2006 10:25:38 +0100 (CET)
"Laszlo Gulyas" <lgulyas@...> wrote:
> Just an idea: maybe an explicit call to System.gc()
>helps, in case the
> memory increase is due to the garbage collector being
>lazy.
>
> -- g
> --
> Gulyas Laszlo | Laszlo Gulyas
> kut.ig. | dir. of research
> AITIA Rt. | AITIA Inc.
>
> <quote who="Giuseppe Narzisi">
>> Dear all,
>>
>> We have the following problem in using repast in batch
>> mode:
>> each time a new run starts there is an increase in the
>> memory (RAM) usage of the system.
>> Of course this problem stops us of doing a large number
>>of
>> simulations.
>> We have checked quite all the variables in the code and
>> added code for checking and
>> freeing the memory both at the beginning and at the end
>>of
>> each single run.
>> Has anybody ever faced this kind of problem?
>> Is it possible that the problem resides inside Repast?
>> Does anybody have a suggestion on of to solve it?
>>
>> Thanks in advance for the availability,
>> -Giuseppe
>>
>> ----------------------------------------
>> Giuseppe Narzisi
>> NYU Bioinformatics Group
>> 715 Broadway, Rm 1010
>> New York, NY 10003
>> Tel: 212.998.3199
>> ----------------------------------------
>>
>>
>> -------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Do you
>>grep through log
>> files
>> for problems? Stop! Download the new AJAX search
>>engine that makes
>> searching your log files as easy as surfing the web.
>> DOWNLOAD SPLUNK!
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>> _______________________________________________
>> Repast-interest mailing list
>> Repast-interest@...
>> https://lists.sourceforge.net/lists/listinfo/repast-interest
>>
>
>
----------------------------------------
Giuseppe Narzisi
NYU Bioinformatics Group
715 Broadway, Rm 1010
New York, NY 10003
Tel: 212.998.3199
----------------------------------------

OK.=20
1. For a single column for each agent, you can create a custom =
DataSource
that returns a String. That String is a series of commaa (or whatever =
your
delimiter is) delimited values where each value is the value from an =
agent.
Something like the following should work:
public class MyDataSource implements DataSource {
List agents;
=09
public MyDataSource(List agent) {
this.agents =3D agents;
}
=09
public Object execute() {
StringBuffer buf =3D new StringBuffer();
// do the first outside the loop so we can
// gracefully add the ","
Agent agent =3D (Agent)agents.get(0);
buf.append(agent.getValue());
for (int i =3D 1, n =3D agents.size(); i < n; i++) {
buf.append(",");
agent =3D (Agent)agents.get(i);
buf.append(agent.getValue());
}
return buf.toString();
=09
}
}
Normal practice is that a single data sources matches a single column, =
and
that the name you add the data source to the data recorder with becomes =
the
column header. So, in this case you'll have to add this data source with =
a
name that is the column header that you want (e.g. "agent1, agent2, =
agent3,
...". Note that this may not work as you want because it assumes that =
the
order of the agents in the list doesn't not change. Probably better to =
try,=20
2. Alternatively, and I'm not sure that this will work, but I am =
optimistic,
you could try:
public class MyDataSource implements DataSource {
List agents;
IController controller;
=09
public MyDataSource(List agent, IController controller) {
this.agents =3D agents;
this.controller =3D controller;
}
=09
public Object execute() {
StringBuffer buf =3D new StringBuffer();
Agent agent =3D (Agent)agents.get(0);
buf.append(agent.getValue());
for (int i =3D 1, n =3D agents.size(); i < n; i++) {
buf.append("\n");
buf.append(controller.getCurrentTime());
buf.append(",");
agent =3D (Agent)agents.get(i);
buf.append(agent.getValue());
}
return buf.toString();
=09
}
}
This will create row per agent. By default, the data recorder adds the
current time to each row, but here we are creating our own rows and so =
for
the rows after the first we have to add the time. Of course, you can add
more values for each agent in each row by doing additional combinations =
of
buf.append(","); buf.append(agent.get*());. As above you have to provide =
a
name for the data source that matches the column headings (e.g "value,
value2,..."). You can get a reference to the Icontroller by calling
getController on your model.
Note that I haven't compiled this code, so there may be typos etc.
Nick
-----Original Message-----
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Jos =
Elkink
Sent: Wednesday, January 18, 2006 9:09 AM
To: Nick Collier; repast-interest@...
Subject: Re: [Repast-interest] storing data on multiple agents
> When you say you want info about each agent, do you mean a single row=20
> per tick and a column for each agent, or a single row for each agent?
I meant a single row for each agent ...
If that would be the only solution, it would of course be possible to
transform a table with a column for each agent into a table with a row =
per
agent afterwards - that should be easy to program or to do in a =
statistical
package (outside the simulation, using the data file). But it would be
easier if the simulation program handled that.
Jos
> -----Original Message-----
> From: repast-interest-admin@...
> [mailto:repast-interest-admin@...] On Behalf Of Jos=20
> Elkink
> Sent: Wednesday, January 18, 2006 7:59 AM
> To: repast-interest@...
> Subject: [Repast-interest] storing data on multiple agents
>
> Hi all,
>
> In my agent-based model in RePast I managed to create a data file and=20
> store global information (e.g. average values over all agents), but I=20
> would like to have a second datafile which stores each iteration=20
> information about each agent (much like a dataset of panel data). Is=20
> there any way to do this in RePast? Any tips where to look?
>
> What does the ListDataSource do? Looking at the source of it (there is =
> little documentation) it doesn't seem to have much to do with lists,=20
> unlike AverageDataSource, which takes a list and calculates an average =
> value, so I must be misunderstanding something ...
>
> Thanks in advance for any help!
>
> Jos
>
> --
> Jos Elkink Postgraduate Student
> jelkink@... Dept of Political Science
> http://jaeweb.cantr.net Trinity College Dublin, Ireland
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
> files for problems? Stop! Download the new AJAX search engine that=20
> makes searching your log files as easy as surfing the web. DOWNLOAD
SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642
> _______________________________________________
> Repast-interest mailing list
> Repast-interest@...
> https://lists.sourceforge.net/lists/listinfo/repast-interest
>
>
--
Jos Elkink Postgraduate Student
jelkink@... Dept of Political Science
http://jaeweb.cantr.net Trinity College Dublin, Ireland
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

> When you say you want info about each agent, do you mean a single row per
> tick and a column for each agent, or a single row for each agent?
I meant a single row for each agent ...
If that would be the only solution, it would of course be possible to
transform a table with a column for each agent into a table with a row
per agent afterwards - that should be easy to program or to do in a
statistical package (outside the simulation, using the data file). But
it would be easier if the simulation program handled that.
Jos
> -----Original Message-----
> From: repast-interest-admin@...
> [mailto:repast-interest-admin@...] On Behalf Of Jos Elk=
ink
> Sent: Wednesday, January 18, 2006 7:59 AM
> To: repast-interest@...
> Subject: [Repast-interest] storing data on multiple agents
>
> Hi all,
>
> In my agent-based model in RePast I managed to create a data file and sto=
re
> global information (e.g. average values over all agents), but I would lik=
e
> to have a second datafile which stores each iteration information about e=
ach
> agent (much like a dataset of panel data). Is there any way to do this in
> RePast? Any tips where to look?
>
> What does the ListDataSource do? Looking at the source of it (there is
> little documentation) it doesn't seem to have much to do with lists, unli=
ke
> AverageDataSource, which takes a list and calculates an average value, so=
I
> must be misunderstanding something ...
>
> Thanks in advance for any help!
>
> Jos
>
> --
> Jos Elkink Postgraduate Student
> jelkink@... Dept of Political Science
> http://jaeweb.cantr.net Trinity College Dublin, Ireland
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642
> _______________________________________________
> Repast-interest mailing list
> Repast-interest@...
> https://lists.sourceforge.net/lists/listinfo/repast-interest
>
>
--
Jos Elkink Postgraduate Student
jelkink@... Dept of Political Science
http://jaeweb.cantr.net Trinity College Dublin, Ireland

Jos,
When you say you want info about each agent, do you mean a single row =
per
tick and a column for each agent, or a single row for each agent?
Nick=20
-----Original Message-----
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Jos =
Elkink
Sent: Wednesday, January 18, 2006 7:59 AM
To: repast-interest@...
Subject: [Repast-interest] storing data on multiple agents
Hi all,
In my agent-based model in RePast I managed to create a data file and =
store
global information (e.g. average values over all agents), but I would =
like
to have a second datafile which stores each iteration information about =
each
agent (much like a dataset of panel data). Is there any way to do this =
in
RePast? Any tips where to look?
What does the ListDataSource do? Looking at the source of it (there is
little documentation) it doesn't seem to have much to do with lists, =
unlike
AverageDataSource, which takes a list and calculates an average value, =
so I
must be misunderstanding something ...
Thanks in advance for any help!
Jos
--
Jos Elkink Postgraduate Student
jelkink@... Dept of Political Science
http://jaeweb.cantr.net Trinity College Dublin, Ireland
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log =
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=103432&bid#0486&dat=121642
_______________________________________________
Repast-interest mailing list
Repast-interest@...
https://lists.sourceforge.net/lists/listinfo/repast-interest

Hi all,
In my agent-based model in RePast I managed to create a data file and
store global information (e.g. average values over all agents), but I
would like to have a second datafile which stores each iteration
information about each agent (much like a dataset of panel data). Is
there any way to do this in RePast? Any tips where to look?
What does the ListDataSource do? Looking at the source of it (there is
little documentation) it doesn't seem to have much to do with lists,
unlike AverageDataSource, which takes a list and calculates an average
value, so I must be misunderstanding something ...
Thanks in advance for any help!
Jos
--
Jos Elkink Postgraduate Student
jelkink@... Dept of Political Science
http://jaeweb.cantr.net Trinity College Dublin, Ireland

Dear all,
We have the following problem in using repast in batch
mode:
each time a new run starts there is an increase in the
memory (RAM) usage of the system.
Of course this problem stops us of doing a large number of
simulations.
We have checked quite all the variables in the code and
added code for checking and
freeing the memory both at the beginning and at the end of
each single run.
Has anybody ever faced this kind of problem?
Is it possible that the problem resides inside Repast?
Does anybody have a suggestion on of to solve it?
Thanks in advance for the availability,
-Giuseppe
----------------------------------------
Giuseppe Narzisi
NYU Bioinformatics Group
715 Broadway, Rm 1010
New York, NY 10003
Tel: 212.998.3199
----------------------------------------

Maneesh,
Generic agents aren't set up to be feed data from a shapefile and plotted.
Vector agents are created using shapefile data, and given that they map
directly to the shapefile data, can be easily plotted. Can you say more
about why you want to use generic agents rather than vector agents here?
thanks,
Nick
_____
From: repast-interest-admin@...
[mailto:repast-interest-admin@...] On Behalf Of Maneesh
Kumar
Sent: Monday, January 16, 2006 7:17 AM
To: repast-interest@...
Subject: [Repast-interest] GISModel in REPAST Py
Hi ppl,
Am trying to put togather a GIS Model in REPAST Py, there are a few pointer
i needed in that regard
1. How do i read data from the shape files and pass it to the generic agents
in the model
2. Is there a way to plot generic agents into ArcGIS/OpenMap using lat long
co-ordinates
It would be great if someone could help me with this.
Best
Maneesh

Hi ppl,
Am trying to put togather a GIS Model in REPAST Py, there are a few pointer
i needed in that regard
1. How do i read data from the shape files and pass it to the generic agent=
s
in the model
2. Is there a way to plot generic agents into ArcGIS/OpenMap using lat long
co-ordinates
It would be great if someone could help me with this.
Best
Maneesh

Jeff Brantingham wrote:
> Hi All:
>
> Does anybody have a quick tip on how to return the run number when
> running in batch mode? It looks like I would have to create an
> instance of BatchController and use getRunCount(). Are there some
> potential problems that could result from doing this?
To do this you have to use the current controller being used to run the
model. If you did new BatchController(...) you'd get a new batch
controller, but that wouldn't relate at all to your model, it would just
return 1 (or 0, not sure how it's setup) for the run count all the time.
To get the controller for a model you do getController() from inside
your model class. So you could do from inside your model class:
IController controller = getController();
and controller will be the controller running your model. In batch mode
this controller will be a BatchController (don't like IController
confuse you, that's just the generic name given to any controller).
So therefore the controller.getRunCount() method should return the
current run number you're looking for.
Jerry