Build and analyze simulation models using AnyLogic. Use for tasks involving discrete-event, agent-based, and system dynamics modeling, or any combination of these paradigms. Triggers on mentions of AnyLogic, simulation modeling, DES, ABM, or SD.
This skill provides the knowledge and workflows required to build, analyze, and understand AnyLogic simulation models. It is based on an analysis of over 400 official AnyLogic example models.
When tasked with an AnyLogic modeling problem, follow these sequential steps:
Before writing any code, you MUST determine which paradigm(s) to use. Consult the paradigms reference guide for detailed descriptions.
/home/ubuntu/skills/anylogic-modeler/references/paradigms.mdUse the following table to guide your decision based on the user's request:
| If the user wants to model... | Primary Paradigm | Key Indicators |
|---|---|---|
| A process with queues, resources, and entities flowing through | Discrete-Event | "Queues", "process flow", "service time", "throughput" |
| Aggregate system behavior with feedback loops | System Dynamics | "Feedback loops", "stocks and flows", "accumulations" |
| Interacting, autonomous individuals with emergent behavior | Agent-Based | "Individual behavior", "interactions", "emergent patterns" |
| A combination of the above (e.g., agents in a process) | Multimethod | Features from multiple paradigms are present. |
If the user's request is ambiguous, ask clarifying questions to determine the correct paradigm.
Once the paradigm is identified, outline the model's structure:
Main agent that typically contains the core logic and other agents.Customer, Vehicle, Patient).SimulationExperiment. For optimization tasks, use the OptimizationExperiment.With the structure defined, implement the model's logic using the appropriate AnyLogic libraries. These reference guides provide details on the most commonly used blocks.
/home/ubuntu/skills/anylogic-modeler/references/process_modeling_library.md/home/ubuntu/skills/anylogic-modeler/references/material_handling_library.md/home/ubuntu/skills/anylogic-modeler/references/other_libraries.mdAfter building the model, run the simulation experiment and collect data. Present the results to the user in a clear and understandable format, using charts, plots, and statistics. The analysis and file tools are well-suited for this.