Reputation: 25
I am a beginner in anylogic and I am modeling production process in which there are several different raw materials (defined as agents e.g. metal sheet A, metal sheet B, etc.) they are going through the process and create several types of final products… therefor I have to inject the materials based on production plan and store them in warehouse and then get them out of the warehouse according to the production plan and BOM of the product.
Let’s say that the situation is that Any logic should check the production plan hourly and inject the agents to the model according to that production plan. Here is a part of injection plan according to my monthly production plan. (I have this plan for 1 month and I want to simulate it.)
My question is that how can I set this production plan for anylogic to inject the materials to the model.
Upvotes: 1
Views: 198
Reputation: 3930
Good questions. This is typically where I would suggest making use the AnyLogic database and using a Dynamic event to inject the right amount of units at the time specified.
I start by setting up an Excel sheet with the schedule data and importing it into the AnyLogic DB
Then you need a Dynamic event with code similar to the one below that will inject the correct amount of units at the right time for the right source.
And then on the model start-up you call a function that creates all these dynamic events for you from the entries in the DB
Should be very simple and this approach is very flexible able to handle any schedule and any amount of units
Upvotes: 1