Batch Run Dialog Box

15 views
Skip to first unread message

Rupinder Paul

unread,
Jan 20, 2010, 7:12:23 PM1/20/10
to SPARK Users Group
hi,

I am trying to run batch simulation. But in the latest SPARK build
1.1a the Batch Run dialog box has several new properties section such
as Parameters and Data-Analysis , can you please specify their usage
in detail. I wasn't find anything related to it in User docs.

thank you in advance
Rupen

Alexey

unread,
Jan 21, 2010, 1:21:54 PM1/21/10
to SPARK Users Group
Hi Rupen,

The Batch Run feature is not completely implemented yet, that's why
there is no detailed explanation of it. Here is a brief description of
functions that are available now.

In the 'General parameters' section you may specify the number of
ticks you want to have in each simulation; the number of repetitions
of each simulation with the same values of parameters; the prefix of
names of files in which data will be saved (actual file names are like
[prefix][simulation-number]-[repetition-number].csv, all files are
stored in their own folder named by the current date and time); also
it is possible to turn off automatic data saving by deselecting the
'Save data' check box.

The 'Parameters' section allows automatically change values of
parameters during a batch run process. Select a parameter which you
want to change during a batch run process and specify its initial
value, final value, and a value of step.

The 'Data Analysis' section is not completely implemented. Later, it
will be possible to fit an experimental data of a batch run process to
an actual experimental data automatically.

Alexey

Rupinder Paul

unread,
Jan 21, 2010, 6:37:27 PM1/21/10
to SPARK Users Group

Hi ,

thank you for the detailed info, I wanted to inquire more about the
Parameters section:

When I ran a batch of 6 runs by checking all parameters for
ToyInfection model and with default values. Following the same
intuition as you mentioned. But what I observed that process ran
continuously for more than 6 runs. What is happening in this case-- Is
it running the process in batches of 6 runs individually for each
parameter. Although I ran this experiment only once , so I could be
wrong. Can you explain why this would be happening?

Can we modify batch parameters from source code..or configure the
batch processing from code?

regards
Rupen

Alexey

unread,
Jan 22, 2010, 5:34:46 PM1/22/10
to SPARK Users Group
Hi Rupen,

First of all, it is impossible to control batch run process from a
source code. The only thing you can do is to stop a simulation as I
explained in the previous post.

The number of repetitions which you specify in the Batch Run dialog is
not the total number of runs. It specifies how many times a simulation
with fixed values of parameters should be repeated. If you don't vary
parameters (do not select any parameters in the dialog), then the
number of repetitions equals to the number of runs. But if you select
some parameters, then the number of simulations will be a multiple of
the number of repetitions. That is, for each distinct values of
parameters, there will be R simulations where R is the number of
repetitions.

To clarify this, consider an example. Suppose you have two parameters
A and B. Assume that the initial value of A is 1, the initial value of
B is 2, the final value of A is 3, the final value of B is 3. Also
suppose that the step values are 1 for both parameters. There are 3
possible values of the parameter A (1, 2, 3), and 2 possible values of
the parameter B (2, 3). In total, there are 3 * 2 = 6 different values
of parameters ((A = 1, B = 2), (A = 2, B = 2), (A = 3, B = 2), (A = 1,
B = 3), (A = 2, B = 3), (A = 3, B = 3)). Suppose, that the number of
repetitions is 4, then there will be 4 * 6 = 24 simulations during the
batch run: for each possible values of parameters (6) there will be 4
runs.

Best,
Alexey

Rupinder Paul

unread,
Jan 22, 2010, 6:05:38 PM1/22/10
to SPARK Users Group
I see it now... thank you Alexey!

-rupen

Reply all
Reply to author
Forward
0 new messages