Buildings overlapping
I have an area with 950×950 within 50 buildings will randomly placed. But for some reason there are always buildings overlapping, which should not happen.
Furthermore, people running over the buildings and not around them. buildings should be an obstacle for a certain type of agent.
and by the way… my choosen name is reality. started with anylogic three days ago, so please… be kind.
Usage of storage from material handling library causes NullPointerException problem
I have been trying to to the storage object from the material handling library in my process simulation, but whenever my agent (forklift) puts in one pallet of cargo into my storage, i get this error:
Random spwaning TargetLine in a Square
I want a TargetLine in a square to appear at a new position in a square every time I start it.
I am failing with the code…
With the help of ChatGPT I was able to write a code but I still get error messages when executing it
at _1_try.Main.spawnTargetLineRandomly(Main.java:246)
How can I optimise my cost objective function while limiting total time taken for the whole process?
For context, I just started using AnyLogic a week ago and am quite new at this. I am trying to make a simple process model of a specific logistics process and I want to be able to find the optimal total cost of the process (which is calculated by the time taken of each sub process multiplied by the cost of each worker used) by limitng the total amount of the time the whole process takes.
How to use the code type in anylogic databases to change the state of the simulation?
I have a tasklist, which I write into an Anylogic Database. Each row in that table represents one task and includes information such as part, required resources, location, etc. For each task, there are multiple subtasks as well as multiple “on finished” tasks to do. My idea was to write these subtasks and “on finished” tasks as functioncalls directly into the table in one column each, allowing me to have an overview of all of the tasks in one place, instead of writing them into the model logic directly, mainly due to the amount of tasks I have to perform.
How to access ResourcePool of higher level agent?
I have 7 Agents instances in my Main agent. (Lets call them Production_Line) In each of the agent instances, there are machines. (Lets call them Glass_Former) Each Glass_Former needs to be oiled once every 20 minutes. This requires a “Worker” (Resource). There are 2 Workers in the Factory, who need to do the oiling on […]
Separation of agents from their population
I really need help with a problem of mine. I have a population of 100 agents (cows) and i want to separate the 8 of them at some point at the main.
How to loop trough all agents?
I am currently developing a simulation model in Anylogic. I have encountered a challenge where I would like to send a message to specific amount of agents (not the whole population). In order to do so I would like to loop through all agents with a cyclic event and radomly selct agents and than send a message to them to trigger a transition.
How to transition states of a specif amount of agents periodically in AnyLogic?
I am currently working on a simulation model in AnyLogic, where I have implemented a statechart with two states: “normal” and “active”. The primary challenge I am facing is controlling the transition between these states. Specifically, I want the transitions to occur periodically for a specif amount of agents (at random) at a fixed time each day, precisely at midnight.
Release of agents at the same time
Helloo to everyone. I really need help at an Anylogic project as i am new to it. I have a population of agents and they arrive at a queue block and after they enter a delay block. The agents enter the queue block at different times. I want to leave from the delay block all together but because they enter at different times some agents leave earlier than others.