This tutorial will dive deeper into FlexTerm's functionality and explore different options available in building your model, such as Container Placement strategies. It assumes that you have worked through the [Simple Terminal](Lesson1.html) tutorial for many of the basics and does not go into as much detail for concepts that were discussed in that tutorial.
The First Steps: Model Units and Container Types
- Start a new model by clicking the New button on Toolbar.
- Select Feet for the Length Units and press OK.
![](https://box.kancloud.cn/b5010ebd0b1ed5f496304ca6f0a0b19c_278x408.png)
- Open the [Container Types](Container_Types.html) window using the main menu option Container Terminal > Container Types.
- Use the + button to add a second container type.
- Name the container types as Empty and Laden.
- Change the Dwell Time for each type to triangular(1,7,2).
- Close the window.
![](https://box.kancloud.cn/e9e53341b51f563ebdc9ce802b03ab74_609x358.png)
Set up the Berth Planner
- Using the [Berth Planner](Berth_Planner_Overview.html), set up a schedule for ships to arrive into the model. Below is an example of possible settings for the berth.
![](https://box.kancloud.cn/20733961387436eb78364a1ee5b2a620_869x600.png)
![](https://box.kancloud.cn/bed11058e2e6f3e494243987afa84e51_855x337.png)
Note: The 2 in the Combine column on the 4th row combines the Laden Discharge step with the Laden Load step immediately following. This allows the crane to load and discharge from the ship at the same time, potentially allowing dual-cycling. For more information, see the [Hatch Profiles](Hatch_Profiles.html#HatchOperationsTable) page.
![](https://box.kancloud.cn/97ee2f17750da81948fbd91612a344ae_769x501.png)
![](https://box.kancloud.cn/db58b16b42d4e1990a44dd67654d5ae0_820x600.png)
Set up the Yard
- Drag three yard blocks into the model.
- Arrange them parallel to the berth as shown below.
- Double-click each block to bring up its Properties window and make the following changes:
- Rename the blocks ExportsBlock, ImportsBlock, and EmptyBlock. This example will have the ExportsBlock be closest to the berth and the EmptyBlock be furthest from the berth.
- Change the size of the blocks by setting the Number of 20 ft Bays to 30 and Number of Cells to 8. Change the Maximum Bay Capacity to 35.
![](https://box.kancloud.cn/e7b1f70feb0b2c09fdc72e2e7f90e45c_497x453.png)
![](https://box.kancloud.cn/f48bdb54b7b14888aadc6b05bd59ae25_869x614.png)
- Go to the main menu option Container Terminal > Yard Planner.
- On the [Container Placement](Container_Placement.html) tab, press the Add Strategy button in the bottom left corner.
- Add Empty cell to the Search order by selecting it and pushing the ![](https://box.kancloud.cn/1cf9b2e6345c2e796140e9da10ae0c09_20x18.jpg) button.
- Add Least full cell to the Search order by selecting it and pushing the ![](https://box.kancloud.cn/1cf9b2e6345c2e796140e9da10ae0c09_20x18.jpg) button.
- This new strategy will be used for the ImportsBlock so that containers will stack as evenly as possible in that block.
![](https://box.kancloud.cn/fc187bd1adf4dea87b7e5468f4b321e7_681x453.png)
- Move to the [Block Assignments](Block_Assignments.html) tab.
- Using the Add Rule button and entering information into the table, set up your block assignments as shown below.
- Click Apply and Close.
![](https://box.kancloud.cn/c2fc7d20591392439a0ce7dfc992e61f_725x431.png)
Viewing the output
- Reset and Run the model.
- You can also change the way the containers are displayed in the yard on the [Miscellaneous](Miscellaneous.html) tab of the Yard Planner. Try other options from the Draw Containers By drop-down list to see what it looks like.
![](https://box.kancloud.cn/78a5e88d44a07f1c1cef4e065c3ef135_725x345.png)
Adding a Weighted Search
- Add another yard block to the model and position it next to the ImportsBlock.
- In the [Blocks](Blocks.html) tab of the [Yard Planner](Yard_Planner_Overview.html), rename the new block ImportsBlock2 and set its size and capacity as shown below (20 Bays, 8 Cells, 5 Tiers High, and 35 Maximum Bay Capacity).
- The Blocks tab allows you to quickly modify the properties of blocks without having to double-click each of them.
![](https://box.kancloud.cn/f1a425dcd416363f0c9f096942f65432_754x361.png)
- Move to the [Areas](Areas.html) tab.
- Add an area using the Add Area button in the bottom left corner.
- Rename the area ImportsArea.
- Add ImportsBlock and ImportsBlock2 to the area using the ![](https://box.kancloud.cn/1cf9b2e6345c2e796140e9da10ae0c09_20x18.jpg) button.
![](https://box.kancloud.cn/c89ba9525374477e614f2e832c8d6cc1_681x543.png)
- Move to the [Container Placement](Container_Placement.html) tab.
- Add another strategy using the Add Strategy button and name it ImportStrategy.
- Press the Add Weighted Search button to add a new [weighted search](Container_Placement.html#weightedsearch) to the list of Available Searches.
- Enter the value -0.5 for the Number of Containers by Cell, as shown below. This will place containers in cells with the least number of containers already in that cell.
- Enter the value 1 for the Random by Block, as shown below. This will result in randomness in choosing which import block to send to.
- Press Apply and Close on the Weighted Search window.
![](https://box.kancloud.cn/df2b94231f29ad49025ed6ba2735b262_380x454.png)
- Weighted Search 1 will now be in the list of Available Searches.
- Select it and press the ![](https://box.kancloud.cn/1cf9b2e6345c2e796140e9da10ae0c09_20x18.jpg) button to add it to the ImportStrategy.
![](https://box.kancloud.cn/55a84b9b751287eb9fd213785a2dd5d9_681x507.png)
- Move to the [Block Assignments](Block_Assignments.html) tab.
- Change the ImportsBlock to ImportsArea.
- Select ImportStrategy for the Placement Strategy on the ImportsArea.
- Click Apply and Close.
![](https://box.kancloud.cn/37e8024d564c5da9a60874a354185419_734x301.png)
Viewing the output
- Reset and Runthe model. In larger models, you may have more advanced search strategies and weighted searches. For more information about other available options, refer to the [Container Placement](Container_Placement.html) topic of the Yard Planner.
![](https://box.kancloud.cn/fc6dd00f50fc2f96671685db48e0569d_869x614.png)
- FlexTerm
- Welcome To FlexTerm
- Getting Started
- Installing FlexTerm
- Introduction to FlexSim
- Introduction to FlexTerm
- FlexTerm Modeling Paradigm
- Step-by-Step Procedures
- Step-by-Step Berth Planner
- Step-by-Step Yard Planner
- Step-by-Step Gate Planner
- Step-by-Step Rail Planner
- Tutorials
- A Simple Terminal
- Adding a Gate
- Yard Container Placement
- Planners
- Berth Planner
- Step-by-Step Berth Planner
- Berth Layout
- Hatch Profiles
- Services
- Ship Schedule
- Miscellaneous
- Create Road Wizard
- Hatch Position Editor
- Speed Tags
- Gate Planner
- Step-by-Step Gate Planner
- Arrival Patterns
- Arrivals
- General
- Yard Planner
- Step-by-Step Yard Planner
- Blocks
- Areas
- Container Placement
- Block Assignments
- Resource Assignments
- Resource Priorities
- Yard Moves
- Miscellaneous
- Rail Planner
- Step-by-Step Rail Planner
- Car Profiles
- Trains
- Train Schedule
- Tracks
- Work Strategies
- Object Library
- Introduction
- Background
- Berth Planner
- Chassis Pool
- Crane
- Dual Trolley Crane
- Gantry Crane
- Gate Planner
- Gate Process
- Gate Queue
- Gate Road
- Gate Sink
- Gate To Yard
- Network Node
- Rail Block
- Resource Group
- Straddle Carrier
- Strad Gang
- Top Loader
- Traffic Control
- Transfer Area
- Truck
- Truck Gang
- Wheeled Block
- Yard Block
- Yard To Gate
- Miscellaneous
- Container Terminal Menu
- Container Types
- Crane Allocation Algorithm
- CT Standard Performance Measures
- Import Model Data
- Model Views
- Model Units
- Networks
- Standard FlexSim Users Manual
- Switch to Standard FlexSim Library
- Statistics
- Warmup Time