Create network by code

Let’s go through this simple example that will allow an agent to move through a network, avoiding the use of deprecated constructors in AnyLogic 8.4. Create the network. This network will be necessary for an agent to follow the proper paths from point A to point B. All these functions can be run on startup of Main. […]



Some Road Traffic Library Tricks

The road traffic library doesn’t have too many elements to work with so it’s quite easy to learn the basics fast, nevertheless it is not so easy to work with those sneaky cars that do what they want using an internal algorithm you can’t really control. I posted a while ago using AnyLogic 8.2 a couple of[…]



Use in Flowchart as… what?

There is something beginner AnyLogic users take for granted when they build a model. For instance, when using the Process Modeling Library, they use the Agent Type. On the other hand, when they build a model using the Pedestrian Library, they use a pedestrian type. Why? Because it’s there, naturally as part of the whole library. But[…]



Link to Agents vs Variables and Collections

Relationships between agents is a typical thing to generate when you create agent-based models, but how do you do it? On this video I show you the bad practice and the good practice. Even though this is not part of the lectures, you will learn this and much more in the AnyLogic courses available at https://www.noorjax.com/courses. If[…]



Send vs Deliver vs Fire Event

In one of the lectures of the AnyLogic course for discrete events and agent based modeling, I explain the different ways that exist in AnyLogic to send messages between agents. Concepts that are generally not well understood by a typical AnyLogic user. Now you can get an extract of this course by watching one of the hundred[…]



Discrete Events Simulation Models – Creativity Exercise

Wether you use AnyLogic, Arena, Simio, FlexSim or any other simulations Software in the market, when you develop a  model using the discrete-events paradigm, you will get access to a number of blocks that you can connect with each other to generate a flow with agents or entities flowing from one block to the next. In AnyLogic[…]



Push vs Pull Protocols

You are developing your discrete events model, and you see your agents moving from one block to the next. Simple right? But have you stopped for a moment to ask yourself why they are even moving? What is that thing that makes them move? If you ask a beginner, the answer will come from pure intuition: “Well,[…]



Test your model!!!

You just built a model, everything works perfectly well and suddenly you have a request for a change (minor or major). You make the change; run the model and things look good. But how can you be sure that the model is working well in all possible cases? The larger the model, the more difficult it is[…]



An example on the use of Classes vs Agents in AnyLogic

When you are a JAVA developer, it is common to use classes to work with objects. But AnyLogic provides Agents, that are basically predefined classes with several built-in functionalities to work with entities in a simulation model. A beginner user will always use agents because with them it is very easy to define everything graphically. But sometimes[…]