Storages

Updated: 2025-09-15

STORAGE resources are a special type of resource. Unlike FACILITY, which manage entities individually, a STORAGE manages variable quantities that an entity can put in or take out.

For example, an entity can represent a truck that drops 10 units into a depot. Therefore, the system does not analyze how many entities went through the storage, but how many units were stored and for how long.

What is measured?

Two types of statistics are collected:

  • EQ_BIN_*: Time each unit remains in storage (occupancy time per unit).

  • RQ_BIN_*: Storage occupancy level at each moment (by quantity).

This behavior is enabled the same way as with other resources, but using the EQ_BIN_* and RQ_BIN_* parameters to configure the table intervals.

A practical example

The following code shows a storage (STORAGE) with a capacity of 14 units. Incoming entities occupy a random amount (between 1 and 5 units). The resulting statistics will indicate how long those units stayed stored and how the storage occupancy level varied over time:

STORAGE {NAME:almacen1,X:377,Y:362,capacity:14,
         EQ_BIN_START:18,EQ_BIN_SIZE:1,EQ_BIN_COUNT:14,
         RQ_BIN_START:0, RQ_BIN_SIZE:1, RQ_BIN_COUNT:18}

GENERATE 8,0,0,0
    ADVANCE 10 {TO:almacen1}
    ENTER almacen1,(RANDOM*5)+1
    ADVANCE 20,10
    LEAVE almacen1
    ADVANCE 10 {TO:pos1}
ENDGENERATE 1

What to look at?

In the report, you will see two different tables:

  • One with the ranges of time per stored unit (EQ), which tells you whether units stayed for a short or long time in the storage.

  • Another with the storage occupancy levels (RQ), where you can see how many units were simultaneously present at each moment.

This type of analysis is essential in logistics, inventory, or any system with variable storage.

 

 

Example

/*

  	 	Storages
 
*/
SYSTEM {TYPE:OPTIONS,Speed:7}
POSITION {NAME:POS1,X:620,Y:360}
STORAGE {NAME:almacen1,X:377,Y:362,capacity:14
	,EQ_BIN_START:18,EQ_BIN_SIZE:1,EQ_BIN_COUNT:14 
    ,RQ_BIN_START:0,RQ_BIN_SIZE:1,RQ_BIN_COUNT:18
    }
START 200

;*****************************************************
GENERATE 8,0,0,0 {NAME:GEN1,X:111,Y:366}
ADVANCE 10 {TO:almacen1}

ENTER almacen1,(RANDOM*5)+1
ADVANCE 20,10
LEAVE almacen1

ADVANCE 10 {TO:POS1}
ENDGENERATE 1