question

Ksenia F avatar image
0 Likes"
Ksenia F asked Jason Lightfoot commented

Error in the model

Hello! I can't understand why the error comes out when starting the model. The model continues to work correctly, but the error still pops up. Could you help me figure it out? And how can you make the children 50/50 boys and girls.

Thanks in advance! Model attached

Kids.fsm

FlexSim 20.2.0
healthcareflexsim 20.2.0
kids.fsm (364.1 KiB)
5 |100000

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

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

It's because at line 6 of the Random Appearance for the children arrivals you have a reference to token.Person and there is no label Person on the token.

The easiest way to do 50/50 is probably like this:

Where the decide condition is bernoulli(50,0,1).

Updated model attached.

kids-jl2.fsm


1605612835498.png (22.6 KiB)
kids-jl2.fsm (365.7 KiB)
· 3
5 |100000

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