Resource usage

Updated: 2025-09-15

We now move on to statistics focused on the usage of a resource, that is, how much time it has been occupied by one or more entities.

If previously we measured the time an entity (E) remains in the resource using the E_BIN_* parameters, now, to observe how busy the resource has been at each moment, we use R_BIN_*.

The table created with R_BIN_* indicates, for each occupancy level (0, 1, 2, ...), how long the resource has been exactly at that level of usage.

In the following example, entities are generated at a constant rate, and the FACILITY tends to have between 4 and 6 units occupied, which will appear as a peak in that range in the automatically generated chart.

Of course, nothing prevents you from using both E_BIN_* and R_BIN_* on the same resource if you want a view from both perspectives: the entity’s and the resource’s.

 

Example

/*

  	 	Resource usage
 
*/
SYSTEM {TYPE:OPTIONS,Speed:7}
POSITION {NAME:POS1,X:620,Y:360}
Facility {NAME:ventanilla1,X:377,Y:362,capacity:10,R_BIN_START:0,R_BIN_SIZE:1,R_BIN_COUNT:11}
START 200

;*****************************************************
GENERATE 5,3,0,0 {NAME:GEN1,X:111,Y:366}
ADVANCE 10 {TO:ventanilla1}

seize ventanilla1
ADVANCE 20,10
release ventanilla1

ADVANCE 10 {TO:POS1}
ENDGENERATE 1