Skip to main content

Simulation

Microstat uses a discrete-event simulation (DES) engine written in Rust to simulate how work items flow through your process model.

Running a simulation

  1. Open a scenario in the canvas editor.
  2. Click Run in the header.
  3. Choose simulation parameters:
    • Mode: simulate until a certain number of units complete (units) or until a time limit is reached (time).
    • Value: the target unit count or time limit.
    • Time unit: min, hr, day, etc.
    • Reps: number of independent simulation runs (more reps = more stable statistics).
  4. Click Run. Results appear in the results panel.

Distributions

Set the service time distribution for each Task node, and the arrival distribution for the Start node, in the simulation panel (click the sim icon on a node, or press I).

DistributionParametersExample use
constantvalueFixed processing time (e.g. always 5 min)
normalmean, stdNormally distributed service time
exponentialrateMemoryless arrivals (classic queuing)
uniformlow, highAny value equally likely in a range
poissonrateCount-based arrival process
lognormalmean, sigmaRight-skewed service times
gammashape, scaleFlexible positive-value distribution
weibullscale, shapeWear-out or reliability modeling
triangularlow, mode, highThree-point estimate

Output metrics

After each run, Microstat reports:

MetricDescription
Units completedTotal work items that reached an End node
ThroughputUnits completed per time unit
Avg cycle timeMean time from arrival to completion
Avg queue depthMean number of items waiting at each Queue node
Avg resource utilizationFraction of time each resource was in use

When you run multiple reps, results are averaged across reps. Individual rep results are also available.

Resources

Resources model shared constraints — a person, machine, or license that can only be used by one task at a time (or a limited number).

Add resources in Manage Resources (M), then assign them to Task nodes via the node's resource panel. A task will block until the required resource is available.

See Resources for details.