Glossary

Batch

The trials of many candidates run by one call to the native runner.

Canonical path

A label such as network.facilities[2].demand identifying an instance or field. Used in messages, descriptions, native names and stream identity; never used for addressing.

Capture

Keeping the raw history of an entity, enabled with entity.capture() before the run.

Collection

A list[M] (owned children) or list[cb.Ref[M]] (references) field.

Common random numbers

CRN. The default seeding, where replication r uses the same seed at every design point, so comparisons between points are paired.

Decision

A range of allowed values for a Param, assigned with cb.decision. Each decision object is one dimension of an optimization search.

Design point

One configuration: a combination of sweep values in an experiment or one candidate’s decision values in an optimization batch.

Dynamic instance

A model instance created during a trial with cb.spawn and removed with cb.release. It can hold values, references, inputs and behavior, but no entities or children.

Entity

A native synchronization object: Container, FractionalContainer, Store, PriorityStore, Resource, Condition or Dataset.

Estimation seeds

Seeds used only to estimate the chosen answer, so the reported estimate isn’t flattered by the search’s luck.

Event

A @cb.event method run once at a time scheduled with cb.schedule.

Exhaustion policy

What happens when a finite source runs out: fail, wrap, end_trial or extend.

Field

A typed, per-instance value declared by an annotation on a model class. A plain float, int or bool field (on_hand: float = 0.0) starts from its value in every trial and compiled code may change it.

Finalist

One of the best candidates of a search, re-run on fresh seeds before the answer is chosen.

Function

A @cb.function method with annotated parameters, callable from compiled code like a method. Subclasses may override it; the model’s actual class decides which implementation runs.

Generation

One round of differential evolution: a challenger for every population member, evaluated together as one batch.

Hook

A method decorated with @cb.on_start (before processes) or @cb.on_end (after the event loop). Static hooks run bottom-up.

Host

The ordinary Python process where you configure models and analyze results, as opposed to the compiled trial code.

Input

cb.Input[T]: a sequence of real-world values consumed with next(). Its source is configured, not coded.

Input stream

The independent random stream one input uses in one trial, derived from the trial seed and the input’s path or tag.

Model

A subclass of cimba.Model describing one part of the system: its fields and its behavior. The model passed to an experiment is the root; models contain other models.

Model sweep

A sweep of a child model field over several model objects. Each option gets its own model tree, and each design point’s trials contain only its option. Used to compare policies.

Objective

The function an optimization scores each trial with. The study minimizes or maximizes its expected value.

Output

cb.Output[T]: a field whose value at the end of each trial is collected as Samples.

Param

cb.Param[T]: a value fixed for a trial. It can be swept or optimized.

Predicate

A @cb.predicate method returning a bool, used with Condition.wait_until.

Prefix stability

The property that a source generating 2n values from a stream yields the same first n values as generating n. It makes transparent extension exact.

Process

A method decorated with @cb.process, running as a stackful coroutine in simulated time. It can block anywhere.

Provenance

The describe() record of which source produced an input’s values: method, parameters and data fingerprints. Stored in the results.

Ref

cb.Ref[M]: a reference to another model instance in the tree.

Replication

One independent repetition of a design point, with its own seed.

Results

cimba.Results: the immutable outcome of a run, indexed by model object.

Samples

cimba.Samples: one output across the design, a read-only (points, replications) array.

Series

cb.Series[T]: time-indexed real-world values in fixed-width buckets, read with now() or at(t).

Signal

(1) The integer a blocking call returns to explain why the process resumed: 0 success, -1 preempted, -2 interrupted, positive values user-defined. (2) cimba.Signal, the result object for a captured entity.

Source

What feeds an input: a distribution (inputs.dist), a recorded trace (inputs.trace), a bootstrap resample (inputs.bootstrap) or a fitted time-series model (inputs.fitted). Immutable, with provenance.

Static instance

A model instance that is part of the tree built before the experiment. It exists for the whole trial.

Sweep

A design axis created with cb.sweep (independent) or cb.sweeps (linked), assigned to a Param, a distribution parameter, an input or a child model.

Trial

One design point × one replication: a complete, independent simulation run and the unit of parallel work.

Window

cimba.Window: warmup, measurement duration and cooldown, or run-until-idle.