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

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

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

18

Oct

Complex configuration before running the simulation

Have you ever been in a situation where you want to generate a complex scenario in the simulation experiment but you have no idea how to do it? There are features in AnyLogic that require the simulation model to be on runtime mode in order to work and will not be available in the simulation experiment configuration[…]