1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! [`Reach`](crate::Reach) models on `polyzonotope-reach`: validated reachable sets of
//! continuous-time dynamics. Needs the `reach` feature.
//!
//! [`Linear`] propagates `x' = A x + B u`, [`Nonlinear`] any
//! [`Dynamics`](polyzonotope_reach::Dynamics) `x' = f(x, u)`. Both take one input set per
//! time step as the control of an edge: the system may follow any integrable input signal
//! with values in that set during the step, so nominal inputs, input errors and
//! disturbances (as extra input columns) all go into it.
//!
//! Each time step yields two sets. The time-interval set holds every state during the step
//! and becomes one cover set of the edge. The time-point set holds every state at the end
//! of the step and starts the next one; the last becomes the edge's end set.
//!
//! ```mermaid
//! graph LR
//! Start["initial set"] --> Step["step under input set k"]
//! Step -->|time interval| Cover["cover set k"]
//! Step -->|time point| Next{"more input sets?"}
//! Next -->|yes| Step
//! Next -->|no| End["end set"]
//! Step -->|refused| None["None: Indeterminate"]
//! ```
//!
//! Steering is separate: pair a model with a function that picks the input sets through
//! [`WithSteering`](crate::WithSteering).
pub use Linear;
pub use Nonlinear;
use ;
use Step;
/// Chains one `step` per input set from `initial`, in order.
///
/// Pushes each step's time-interval set to `cover` and starts the next step from its
/// time-point set. Returns the last time-point set, or `initial` itself for no input sets
/// (with nothing pushed, which [`check_edge`](crate::check_edge) answers `Indeterminate`).
/// Returns `None` as soon as `step` refuses one, leaving the sets of the steps before it in
/// `cover`.