mode_cycle
Scalable location-cycle benchmark with clock resets.
mode_cycle(modes=4, dimension=4, dwell_time=0.5, initial_state=None)
Create a scalable hybrid system that cycles through locations.
The system has modes locations, each with linear dynamics active for
dwell_time.
A clock state is appended and reset on each transition, making the number
of locations and state dimension scalable for benchmarking.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
modes
|
int
|
Number of locations in the cycle. |
4
|
dimension
|
int
|
Dimension of the continuous state (excluding the clock). |
4
|
dwell_time
|
float
|
Time to stay in each location. |
0.5
|
initial_state
|
ndarray | None
|
Optional initial state (length dimension + 1). |
None
|
Returns:
| Type | Description |
|---|---|
HybridSystem
|
HybridSystem cycling through multiple linear locations. |
Source code in src/flowcean/hybrid/benchmarks/mode_cycle.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |