View Full Version : Custom Block Assignments
Jamie Santa Ana
12-14-2009, 11:45 AM
Hello,
I need some help on what exactly to input in the "custom" field under block assignments in the yard planner.
I have one wheeled block and one yard block. Both blocks will hold the same container type. 75% of the containers will go to the wheeled block and the remaining 25% will go to the yard block.
Thanks for any help!
Anthony Johnson
12-15-2009, 06:49 AM
You should have two rules in the rules table. Designate the first rule to send the container to the yard block, and the second to the wheeled block. In the custom field of the first rule, add: bernoulli(25,1,0). Leave the custom field of the second rule blank.
Jamie Santa Ana
02-17-2010, 02:54 PM
Is there also a way to send containers to different blocks based on more than 2 percentages?
ex: Say I have 2 wheeled blocks and a yard block, how would I send 45% to wheeled block 1, 35% to wheeled block 2 and the remaining 20% to the yard block?
Appreciate any help
Phil BoBo
02-18-2010, 07:58 AM
You should have three rules in the rules table. Designate the first rule to send the container to the yard block, and the second and third to each wheeled block. In the custom field of the first rule, add: bernoulli(25,1,0). In the custom field of the second rule, add: bernoulli(56.25,1,0) because 56.25% of the remaining 80% is 45% of the original total. Leave the custom field of the third rule blank.
It goes down the table in order trying to find a block to use. So 20% would return true in the first row. The 80% that return false in the first row would move on to checking the second row. The 56.25% of those 80% would return true on the second row. Any containers left (about 35% of the total) would return true on the last row because it always returns true.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.