Get Percent Utilization over Interval
Returns percentage utilization during a time interval, accounting for availability changes. The returned value is a value between 0 and 100.
Simulation Object: a Resource
Start Time: start time of period to obtain result. Measured in elapsed simulation time since the start of the run
End Time: end time of period to obtain result. Measured in elapsed simulation time since the start of the run
Returned Percentage Working: Global Data Item that receives the percentage result
Call at any time (but most likely used for reporting on End Run)
Requires interval results to be switched on for the Resource: Resource Properties > Results. This is made optional because collecting the data can slow down the simulation.
Get Percent Utilization over Interval Resource 1 , 0 , Simulation Time , lcl_utilization
This example code explains how the utilization of Resource 1 can be determined from the start of the run (simulation time = 0). This information is stored in the numerical variable lcl_utilization.