MASON-INTEREST-L Archives

June 2015

MASON-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Axel Kowald <[log in to unmask]>
Reply To:
MASON Multiagent Simulation Toolkit <[log in to unmask]>
Date:
Fri, 19 Jun 2015 23:56:29 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Hello Everybody,

I have a question about the internal working of the doLoop() method
together with the -repeat option.

The manual (e.g. 4.2.1) seems to say that only once an instance of my
model is created and then the repetitions are done inside a loop that
repeatedly calls state.start() and state.finish(). However, when I run
my simulation it seems that in reality for each repetition a new
instance is created (i.e. the constructor is called) that is run until
the end !?
I would like to do multiple runs and collect information from each run,
which are then analysed at the end. But if each time a new instance is
created the variables that hold my data are reset...

I also noticed that the doLoop() never returns.
Does this mean that the program is actually terminated (after the last
repetition) inside the doLoop() ??
That also makes it impossible to perform calculations on collected data
at the end of the simulation !?

Any idea what I'm doing wrong?

Many thanks,
    Axel

ATOM RSS1 RSS2