Cimba Python
Cimba Python is a process-oriented discrete event simulation package backed by the Cimba C engine. It gives Python models native Cimba processes, queues, resources, random distributions, and time-weighted statistics while keeping the model code in Python.
If you are new to Cimba, start with Cimba in 10 Minutes. If you already know the basics, the Tutorial: Modeling with Cimba Python, Topical Guides, Examples, and API Reference sections are usually the shortest route to an answer.
A small example
import cimba
def clock(name):
while True:
cimba.hold(1.0)
print(f"{cimba.time():.0f}: {name}")
with cimba.Simulation(seed=123) as sim:
cimba.Process("Clock", clock, "tick").start()
sim.stop_at(3.0)
sim.execute()
This creates a simulation, starts a process, advances simulated time with
cimba.hold(), and stops at an absolute simulation time.