Modeling, Analysis and Control Radu Grosu Vienna University of - - PowerPoint PPT Presentation
Modeling, Analysis and Control Radu Grosu Vienna University of - - PowerPoint PPT Presentation
Hybrid Systems Modeling, Analysis and Control Radu Grosu Vienna University of Technology Lecture 6 Continuous AND Discrete Systems Control Theory Computer Science Continuous systems Discrete systems approximation, stability abstraction,
Continuous AND Discrete Systems
Hybrid Systems
Continuous systems approximation, stability control, robustness
Control Theory Computer Science
Discrete systems abstraction, composition concurrency, verification Software controlled systems Embedded real-time systems Multi-agent systems
Models and Tools
Dynamic systems with continuous & discrete state variables Models
Continuous Part
Differential equations, transfer functions, Automata, Petri nets, Statecharts,
Discrete Part
Software Tools Analytical Tools
Lyapunov functions, eigenvalue analysis, Matlab, Matrixx, VisSim, Boolean algebra, formal logics, verification, Statemate, Rational Rose, SMV,
Modeling a Hybrid System
Model of System
Model of Physics Model of Software
continuous dynamics discrete dynamics
Hybrid Automaton (HA)
jump transformation edge guard continuous dynamics initial condition locations or modes (discrete states)
m x inv(m) x init(m) n x inv(n) action(x, x ) e : guard(x) 0
invariant: HA may remain in m as long as x inv(m)
Example: Bouncing Ball
Ball has mass m and position x Ball bounces when hitting ground at x 0 Ball initially at position x0 and at rest
Bouncing Ball: Free Fall
Condition for free fall: x 0 Differential equations: First order
Bouncing Ball: Bouncing
Condition for bouncing: x 0 Action for bouncing: v cv Coefficient c: deformation, friction
Bouncing Ball: Hybrid Automaton
freeFall
x 0
location invariant flow
x x0, v 0
initial condition
bounce: v cv
label guard action discrete transition
Bouncing Ball: Associated Program
freeFall
location invariant flow initial condition
bounce:
v cv
label
guard action discrete transition
Execution of Bouncing Ball
Position (x)
x (t)
1
x (t)
2
x (t)
3
x (t)
4
x (t) v (t)
1
v (t) 2 v (t)
3
v (t)
4
v (t)
Velocity (v) Time (t) Time (t)
T T
1
T
2
T
3 T 4
T T
1
T
2
T
3 T 4
Boost DC-DC Converter
iL i0 vc v0 s 0 s0
Boost DC-DC Converter
s1
s 1 s 1 s 0
s0
s 0 iL i0 vc v0
Boost DC-DC Converter
s1 s 1 s 1 s 0 s0 s 0 iL i0 vc v0
float iL i0, vc v0, d d0; bool s 0; while true {
while (s 0) { iL iL (
RL L iL 1 L vS) d
vC vC 1
C 1 RC R0
vC d read(s) }
Execution of Boost DC-DC Converter
4 8 12 16
Voltage uCþ , V
50 100 150 200
Current iL, mA
1 2 3
Time t, ms
Capacitor Voltage and Inductor Current
4 8 12 16
Voltage uR0, V
50 100 150 200
Current iL, mA
1 2 3
Time t, ms
Load Voltage
Parameters: Us = 20V L = 1mH C = 50nF R
L = 1kW
R
C = 10W
R
0 = 10kW