The Branch block has two things you need to do. You've done one which is the NextComponentList. The bit that remains missing is the Choice. This needs to result in a number (1, 2, etc) which picks which of the components in NextComponentList the entity is sent to. So your expression should be [UniformDistribution1].Value>0.85?2:1]. If random number is > 0.85, it evaluates to 2. Given the order of the components in NextComponentList a result of two will pick the second item, which you have as EntitySink1.
Regards
John
--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/jaamsim-users/91F6B8CE-CA74-47D3-B41C-D58317E0BBDE%40pentabind.com.
On 3 Jul 2025, at 13:16, Cristiano Silva <cristi...@gmail.com> wrote:
I have an explanation here in my video:
https://www.youtube.com/watch?v=iJBgi3JmhWY&list=PLRvwRusArl39IYHrsQRj89onSVvFeWIIP&index=10
It has English subtitles, the explanation is at 9:00 minutes. It may be useful.Atenciosamente,Cristiano Luís Turbino de França e Silva==============================GNU / Linux
, , / .-.
/ \ / (e e)
((__-^^-,-^^-__)) / _.`V'._
`-_---' `---_-' / //~~W~~\\
<__|o ` 'o|__> / //, ,\\
\ ` / / // | | \\
): :( / \) | | (/
:o_o: / \ /
"-" / `w - w'
On Wed, Jul 2, 2025 at 2:22 PM Vinith Gollapudi <vinith.g...@pentabind.com> wrote:
Hi all,I have simple syntax issue when using the UniformDistribution and Branch icons.I am trying to say that 85% of time the entity should travel to one branch, then 15% of time it should travel to the other. I have tried multiple different ways of writing this but cant seem to figure it. Could someone help and give the correct syntax/formula for this case please?Best wishes,Vinith
<PastedGraphic-1.png>
--Vinith GollapudiSenior Operations Associate, PentaBind"PentaBind has been shortlisted as New Startup of the Year by Cancer Research Horizons, and also as Deep Tech Investment of the Year by the UK Business Angels Association, a prestigious award sponsored by the Royal Academy of Engineering"