This 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.
Custom Code Container Placement - Random Wheeled (265.1 KB)
Author:
Phil BoBo)
Date Added:
10-15-2009
Downloads:
2703
Grade:
Not Rated
Description
This is a simple sample CT 2.0 model that shows an example of using a Custom Search in the Yard Planner's Container Placement strategies.
There is a "RandomWheeledBlock" custom search strategy that is used with the wheeled blocks area to choose a random block to put the container. The code loops through each block in the area with the assumption that every block in the area is a wheeled block.
There is also a "RandomBlock" weighted search that is used with the yard blocks area to choose a random block to put containers there.
In this model, imports are discharged from ships, stored in the yard blocks, and then leave through the gate. Exports are brought in through the gate, stored in wheeled blocks, and then are loaded onto ships.