Automat

This block provides the facility to construct hybrid automata such as a hybrid system whose discrete part is defined via modes and transitions between modes, and the continuous-time part is defined via DAE, Differential Algebraic Equations.

    Automat

Library

Hybrid

Description

The Automat block provides a facility to construct hybrid automata such as a hybrid system whose discrete part is defined by modes and transitions between modes, and the continuous part is defined via DAE (Differential Algebraic Equations).

The Automat block provides a switching mechanism between subsystems corresponding to control modes of an automaton. Subsystems are constructed in such a way that they have the state vector as input (coming from the automaton's second output port) and compute the flow and jump functions (zero-crossing) and pass them back to the automaton block. The state variables are defined in the automaton block and the subsystems are static memory-less functions.

Suppose that a hybrid automaton consists of M control modes. The continuous-time dynamics in mode i is defined with DAE :

Automat_equation5

where i is in [1...M] and the dimension of x is N for any i in [1...M]. Suppose that in control mode i, there are Z_i jump conditions indicating jumps toward other modes. The jump conditions are defined by functions :

Automat_equation6

where j is in [1...Z_i]. When a jump function changes sign and becomes positive, a mode transition will happen. When k-th transition function becomes positive, a transition from mode "i" to mode "k" happens and state vector x is reset to :

Automat_equation7

In order to develop an automaton containing a mode with multiple reset functions, the value of the current and previous active modes might be useful. These values are available at the first output port of the block.

Parameters

Automat_0

NameLabelDescriptionData TypeValid Values

NMode

Number of modes

Number of modes used in state-chart defined by the automaton.

Number

jumps

Jump vectors

list of possible destination modes for each individual mode.

Structure

jumps/tmodev

Target mode vectors

orderd list of destination modes for a given mode. For example if in mode "i" (i-th line of this block parameter) the list is composed of [j,k,m], if the seconf zero-crossing of the i'th subsystem corsses the zero in negative to positive direction, there will be a transition from mode "i" to " k"

Cell of vectors

Minitial

Initial mode

Active mode at the initial time.

Scalar

X0

Initial value of continuous-time states

State values at the initial time.

Vector

outevent

Generate events at mode transitions

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

Input vector for the subsystem of the mode 1.

The automaton block has M vector input ports corresponding to M modes or subsystems of the automaton. Each input defines the dynamic behavior in the control each mode as well as the reset functions and the transition functions. The input port i which is the output of the i-th subsystem is a vector of size 2N+Z_i. Each input is composed of the following vector.

Automat_equation1

The first N elements of the Input_i are the continuous-time dynamics. The dynamics of the system in the control mode i is described by a smooth index-1 DAE, i.e.,

Automat_equation2

The next N elements of Input_i are the values used to reset the continuous-time state when a transition to control mode i is activated.

The next Z_i elements of Input_i are the jump or zero-crossing functions. If the j-th zero-crossing function of mode i crosses zero with negative to positive direction, a transition to j-th destination mode happens.

input

NMode

Port 2

explicit

Output vector comoposed of the active mode and the previous mode.

The first output port is a vector of size two consisting of the current and the previous active control modes, i.e.,

Automat_equation3

output

1

Port 3

explicit

Output vector of the active subsystem.

The second output port is a vector of size 2N providing the state vector and its first time derivative, i.e.,

Automat_equation4

output

2

Port 4

activation

Whenever a mode transition happens, an event is trigered at this output event port.

This event is useful when an event is needed to activate or initialize a part of the subsystem not included in the internal dynamics of the automaton block.

output

outevent

Advanced Properties

NameValueDescription

always active

yes

direct-feedthrough

no

zero-crossing

yes

mode

yes

continuous-time state

Depends on block parameters

discrete-time state

no