independentvariable
independentvariable

Reputation: 328

AnyLogic - how to model boxes with products

I am using AnyLogic to simulate a process. I find it hard to model the following. Imagine the arrival of boxes with products inside. The products (say pens) have different sizes. I have hundreds of these boxes in CSV files. I would like to bring them to the system as boxes, then I would like to split them within simulation based on their sizes.

Do I need to create these pens one by one and then use the 'batch' module to put them in boxes? Or can I easily read a csv with boxes where each box has a lot of pens?

Upvotes: 0

Views: 140

Answers (1)

Benjamin
Benjamin

Reputation: 12793

You can just create Box agents with a parameter "numPens" (type integer). Create your boxes from the csv and fill the numPens value.

Later, when it comes to unboxing, you can use the "Split" object from the process library and split 1 box agents into numPens pen agents.

Upvotes: 1

Related Questions