question

Hao Zhou avatar image
0 Likes"
Hao Zhou asked Adrian Haws edited

Experimenter only works properly for the first batch of child process

I have a model that makes experimenter only works properly for the first batch of child processes. There are totally 81 scenarios in the model. For example, my computer has 12 cores. If I set 1 replication per scenario, then during experimentation, scenario 13 replication 1 and all following replications gives me weird results. If I set 2 replications per scenario, then during experimentation, scenario 7 replication 1 and all following replications gives me weird results.

I did checked the model by specified scenario and replication number, it works properly for single run.

Could you help to provide ideas about the reason for this?

Thanks, Hao

FlexSim 16.1.0
experimenterchild processrestore original state after each replication
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Adrian Haws avatar image Adrian Haws commented ·

@Hao Zhou Would you be able to send your model so we can try to replicate the issue?

0 Likes 0 ·
Hao Zhou avatar image Hao Zhou Adrian Haws commented ·

Hi Adrian,

Thanks for the reply. See attached model and a module that the model relies on.

When you run the experimenter, you can look at a PFM called "GATaktTime(secs)". This value should return a number around 160 since this is the return value of single run. However, depending on how many cores you have in your computer, it returns a number around 130 from the first replication of the second batch of child processes.

Thanks, Hao

model.zip

0 Likes 0 ·
model.zip (2.5 MiB)

1 Answer

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered

I'm trying to replicate the issue, sorry it takes a while on my machine. I'm not entirely sure what you mean by "weird results" could you specify? Also have you tried checking the "Restore original state after each replication" box up on the right side? That might be part of the issue.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Hao Zhou avatar image Hao Zhou commented ·

Hi @Sam Stubbs,

By saying "weird results" I mean it is a wrong result. As I mentioned in the above comment, it should return a value 160 instead of 130.

I did tried "Restore original state after each replication". It makes experimenter work properly. This checkbox makes the model tree reload for each replication. Does this means I did not reset the model properly? I will double check to see if I do it right or not.

Thank you very much! I really appreciate it.

Hao

0 Likes 0 ·