Tutorial ARENA (6/12)
Client Arrival and Demand Generation
Client Arrival Module
- The process begins with a "create" module that generates client arrivals, which occur uniformly between 3 to 7 hours.
- A variable named "total number of clients" is introduced to keep track of the cumulative count as new clients arrive.
Demand Generation
- An "asing" module is utilized to generate demand for each client, set uniformly between 50 and 100 units.
- The system allows for decimal values in demand rather than restricting it to integers.
Inventory Check and Demand Fulfillment
Checking Inventory
- A decision-making module checks if inventory meets or exceeds the client's demand, determining whether fulfillment is possible.
Handling Sufficient Inventory
- If inventory suffices (true), it updates the inventory by subtracting the fulfilled demand.
- It then checks if the remaining inventory falls below a reorder point, triggering production if necessary.
Handling Insufficient Inventory
- If there isn't enough inventory (false), the client is removed from consideration using a disposal method.
Lost Clients and Statistics Tracking
Managing Lost Demand
- When demand cannot be fully satisfied, a variable tracks lost clients, incrementing by one for each unsatisfied request.
- Another variable records the quantity lost (demand minus available inventory), resetting available inventory to zero after fulfilling what was possible.
Recording Statistics