System reference
A switched system is the input to every problem. See Systems and problems for the concepts.
PathCompleteCertificates.PathCompleteCertificates — Module
PathCompleteCertificatesCertificates for switched linear systems built on path-complete graphs: a labelled graph, a node function from a template at each node, and one edge inequality per edge.
Systems
PathCompleteCertificates.dual — Method
dual(system)The system with every mode matrix transposed. Throws on a system with an input.
PathCompleteCertificates.has_input — Method
has_input(system) -> BoolWhether system has an input, x⁺ = A_σ x + B_σ u.
PathCompleteCertificates.input_matrices — Method
input_matrices(system)The input matrices B, indexed by mode. Throws if the system has no input.
PathCompleteCertificates.n_modes — Method
n_modes(system)The number of modes of system. Throws on a system whose automaton restricts the switching: constrained switching is not supported.
PathCompleteCertificates.product — Method
product(system, word)The product $A_{i_k} ⋯ A_{i_1}$ of the state matrices along a word (i_1, …, i_k).
PathCompleteCertificates.state_matrices — Method
state_matrices(system)The state matrices A, indexed by mode.
PathCompleteCertificates.switched_system — Function
switched_system(A)
switched_system(A, B)The discrete-time switched linear system x⁺ = A_σ x or x⁺ = A_σ x + B_σ u, with A and B indexed by mode, under arbitrary switching.
Trajectories and simulation
PathCompleteCertificates.Trajectory — Type
TrajectoryOne run of a switched system: the states visited, the switching sequence taken and the inputs applied, nothing if there were none. Its length is the number of steps.
PathCompleteCertificates.has_input — Method
has_input(trajectory) -> BoolWhether the run applied an input.
PathCompleteCertificates.inputs — Method
inputs(trajectory)The inputs applied, one per step, or nothing for an open-loop run.
PathCompleteCertificates.states — Method
states(trajectory)The states visited, oldest first, one more than the steps.
PathCompleteCertificates.switching — Method
switching(trajectory)The modes taken: entry k carried states(trajectory)[k] to states(trajectory)[k + 1].
PathCompleteCertificates.simulate — Method
simulate(system, x0, modes; u = nothing)
simulate(system, x0, horizon::Integer; u = nothing, rng = Random.default_rng())Run system from x0 along modes, or along horizon modes drawn uniformly at random, and return a Trajectory. u, a vector of inputs or a feedback law u(x), is required exactly when has_input(system), and simulate throws otherwise.