How to enter a 3th channel in Send to

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Jordivank
Posts: 5
Joined: Friday 17 January, 2014 - 11:39

How to enter a 3th channel in Send to

Post by Jordivank »

Hello,

I have got another question.
When I select the 5th option in the Send to section of a source (By percentage). I can only select 1 percentage and 2 channels. Is it possible to enter 2 different percentages and 3 channels. This because I want to split my source over 3 different sealocks (servers).

Example:
5. By percentage: 30% of products go to channel 1, 40% of products go to channel 2,the remaining percentage go to channel 3.
(Is this possible?)

best regards,
Jordi
marlies
Posts: 301
Joined: Monday 17 January, 2011 - 09:28

Re: How to enter a 3th channel in Send to

Post by marlies »

Hi Jordi,

Yes, you can do that using the atom empirical distribution. This atom can be used to draw a number from a distribution with more than 2 classes.

Just use the distribution's name to draw a number from the distribution. Note that the chances need to be defined cumulative.

See attached for a small example.

Regards, Marlies
Attachments
ExampleSendTo.mod
(16.69 KiB) Downloaded 410 times
Jordivank
Posts: 5
Joined: Friday 17 January, 2014 - 11:39

Re: How to enter a 3th channel in Send to

Post by Jordivank »

Thank you I will start trying to implement this!
Post Reply