02

Jul

Dynamic batches

Here’s a little trick I use to generate dynamic batches, which are batches that are of dynamic size and where products that need to be batched come in a disorganized fashion. Let’s say for instance that we have to batch products in boxes, and each product has a label with the client and each box can contain […]

07

Apr

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.[…]

15

Mar

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[…]

09

Mar

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[…]

03

Mar

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[…]

03

Mar

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[…]

01

Mar

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[…]

27

Feb

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,[…]

17

Nov

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[…]

12

Nov

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[…]