Skip to content

Hybrid Benchmarks

flowcean.hybrid.benchmarks is the canonical facade for reusable hybrid-system benchmark factories, their input streams, and registry metadata. Import a factory or use registry() to discover the available systems.

benchmarks

Hybrid system benchmark suite.

Attributes

Classes

BenchmarkSpec dataclass

BenchmarkSpec(name: str, factory: Callable[[], HybridSystem], tags: tuple[str, ...], description: str, t_span: tuple[float, float], input_stream: InputStream | None = None)

Metadata and factory for a benchmark system.

Attributes
name instance-attribute
name: str
factory instance-attribute
factory: Callable[[], HybridSystem]
tags instance-attribute
tags: tuple[str, ...]
description instance-attribute
description: str
t_span instance-attribute
t_span: tuple[float, float]
input_stream class-attribute instance-attribute
input_stream: InputStream | None = None

Functions:

impact_input_stream

impact_input_stream(t: float) -> ndarray

thermostat_target_stream

thermostat_target_stream(t: float) -> ndarray

time_varying_input_stream

time_varying_input_stream(t: float) -> ndarray

registry

registry() -> dict[str, BenchmarkSpec]

Return the benchmark registry keyed by name.

all_specs

all_specs() -> Sequence[BenchmarkSpec]

Return all benchmarks in deterministic order.