Activity: Carts Between Stations

Advanced Modeling Activities

Author

Manuel D. Rossetti, PhD P.E.

We change this model together: the instructor types the code, and you type along. Before each run, write down a prediction; then run and check it.

The situation. In the production system of the process view activities, parts moved from station to station in no time. In fact the stations are apart, and a part rides a cart from preparation to its build line, and from the build line to packaging. The distances, in feet, from the station in each row to the station in each column are:

From Line 1 Line 2 Packaging
Preparation 100 150 200
Line 1 60 120
Line 2 80

The distances are the same in both directions. A cart travels at 150 feet per minute, loaded or empty, and loading or unloading a part takes 0.5 minutes. The carts start at preparation, and after a delivery a cart waits where it dropped the part until it is called. Parts arrive every 5 minutes on average, and the stations are as before. Simulate 30 replications of 30 days. How many carts are needed, and what do they cost the parts in time?

Setup. Get the starter file CartsBetweenStations.kt from the code/ folder beside this activity. Put it in src/main/kotlin/student/activities in your KSL project, the package the file declares; create the folder if you do not have it. It holds the production system, the distances (a DistancesModel), and a pool of carts (MovableResourcePoolWithQ). Run its main: the parts move between the stations in no time, as before. The two places marked TODO in the part’s process are what we write. Write down the time in the system.

1. Predict

  1. A part goes to line 1 with probability 0.3 and to line 2 with 0.7. What is the average loaded distance a part rides, from preparation to packaging, and the average time it spends riding?

  2. Each part makes two cart trips. Count the minutes of cart work per part that you can compute from the data: loading, riding, and unloading. With a part every 5 minutes, how many carts, at least, are busy on average?

  3. What cart work does 1b leave out?

2. Moving without carts

  1. The two TODOs. If there were always a cart waiting, a part would only ride. At each TODO, we move the part with moveTo(), at the carts’ speed: to buildLine, and then to pack. Run, and write down the time in the system. How does it compare with the starter’s run and with 1a?

3. Two carts

  1. We change the two moves to cart trips with transportWith(): the pool sends a cart to the part, the cart is loaded, carries the part, and is unloaded. With numCarts at 2, run. How busy is each cart, and how does that compare with 1b?

  2. Each cart reports FracTimeTransporting and FracTimeMovingEmpty. Compare them. Why is the empty travel so large?

  3. The time in the system rose from the run in part 2. Account for the increase.

4. One cart, three carts

  1. Predict the time in the system with one cart, then run. What happens, and why?

  2. Run with three carts. Is the third cart worth it?