Homework Presentation
Homework Presentation
17 de abril de 2018
Outline
Modeling
Introduction
Physical modeling
Mathematical Analysis
Representation
Linearization
State space and Transfer Functions
Stability
Simulation
Free Response
Impulse Response
Step Response
Introduction
I Stability analysis.
L=T −V
d ∂L ∂L
− =0
dt ∂ q̇ ∂q
Physical Modeling
Being so,
1 1
I T = (M + m)ẋ 2 − m ẋ θ̇`cos(θ) + (m`2 + I)θ̇ 2
2 2
I V = mg`cos(θ)
Physical Modeling
With the last equations, and taking derivatives, we can write
the Euler-Lagrange equations twice,
d ∂L ∂L
− = F − bx ẋ
dt ∂ ẋ ∂x
d ∂L ∂L
− = −bθ θ̇
dt ∂ θ̇ ∂θ
These expressions leads to a system of (non-linear) equations,
ẋ = f1 (t, x , ẋ , θ, θ̇, u)
ẍ = f2 (t, x , ẋ , θ, θ̇, u)
θ̇ = f3 (t, x , ẋ , θ, θ̇, u)
θ̈ = f4 (t, x , ẋ , θ, θ̇, u)
ẋ = f(t, x, u)
Mathematical Analysis
Indeed, we have defined a (non-linear) vectorial field over R4 .
A quick simulation using numerical integration gives us the
following results,
∂f ∂f
f(xsp , u) = (x − xsp ) + u
∂x ∂u
∂f
in which we identify as the Jacobian matrix of f. This
∂x
gives us the following state-space representation,
ẋ = Ax + Bu
State Space equations
0 1 0 0
(m`2 + I)bx (m`)2 g −m`bθ
0 −
A=
α α α
0 0 0 1
m`bx (M + m)mg` −(M + m)bθ
0 −
α α α
with α = (M + m)(m`2 + I) − (m`)2 .
State Space equations
0 1 0 0
(m`2 + I)bx (m`)2 g m`bθ
0 − −
A=
α α α
0 0 0 1
m`bx (M + m)mg` (M + m)bθ
0 − −
α α α
with α = (M + m)(m`2 + I) − (m`)2 .
State Space equations
For B, we have:
0 0
2 2
m` +I
m` +I
B0 =
α
Bπ =
α
0 0
−m`
m`
α α
Transfer Function
Θ(s) m`s 2
=
U(s)
αs 4 + (M + m)bθ + (m`2 + I)bx s 3 + bθ bx − (M + m)mg` s 2 − mg`bx s
Θ(s) −m`s 2
=
U(s)
αs 4 + (M + m)bθ + (m`2 + I)bx s 3 + bθ bx + (M + m)mg` s 2 + mg`bx s
Stability analysis in linear systems
n
ξ i e λi t
X
x(t) =
i=1
Eigenvalue A0 Aπ
λ1 0 0
λ2 -4.423 -1.0819
λ3 -0.9469 -0.126 + 4.218i
λ4 4.0349 -0.126 - 4.218i
Tabela: System’s Eigenvalues