ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Custom Block Assignments
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! |
The Following User Says Thank You to Jamie Santa Ana For This Useful Post: | ||
zhang xin (12-14-2009) |
#2
|
||||
|
||||
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.
|
The Following 2 Users Say Thank You to Anthony Johnson For This Useful Post: | ||
zhang xin (12-15-2009) |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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. |
The Following User Says Thank You to Phil BoBo For This Useful Post: | ||
Jamie Santa Ana (02-18-2010) |
Thread | Thread Starter | Forum | Replies | Last Post |
What's the inializing mechnism of yard block? | zhang xin | Container Terminal (CT) Library | 6 | 11-27-2009 08:47 PM |
A simple question about “block” | Vic Li | Q&A | 10 | 08-27-2009 11:20 AM |
block a source ? | juan alberto | Q&A | 4 | 07-13-2009 02:50 AM |
Setting Custom State | Francois Perron | Q&A | 1 | 04-06-2009 02:37 AM |
New custom commands in Downloads link | Cliff King | Q&A | 0 | 09-24-2007 05:46 PM |