Professional Documents
Culture Documents
Week 2
Week 2
·
Modelling
-model :
to
-resequl mentally distinguish the
Following
:
* real
physical system
based deal
Ideal
*
model
A Ideal mathematical From applying laws
of physics
(nonlinear partiall differential equanious (
cynear constant -
coefficient differential equations)
·
uncertainty in models
-uncertainty
: cannot predict exact system response to inputs
* unknown unmodeled Inputs :
eg . disturbance imples
-models allow us to
exploit mathematical A
computational tools to
develop prototype
*
Analytical modelling :
useful it .
* cannot early) measure model parameters
* Transfer Functions
-
why :
of analysis
* Balance expressiveness and ease
leg controllers) .
Analytical Modelling
·
Recall
:
Input u
output y related by
-
daray-itadNote dt
M-1
a ene
Transfer FUnCLOU :
-
bism+bm-sm-+
#
Giss= =
..
+
bist bo
s"+an- s + .. + ais+ do
UCS)- - Yes
* take LT
of both sides (with initial conditions (
=
0
transfer Function
· Basic Principles
apply
-
A conservation of mass
*
conservation o energy
* conservation o charge
L R
-
VCt
Lricts -T
ict)
conservation
:
of energy
-
gives
relationship
rCt) =
V(t) +
reCt) + Ucht)
=>
,
=
At
Lc d Red
: rct) =
+ Vet
vi =
est
=
V
+(Y)
·
Example
ma nameAtte cit
2
:
Ev
,
:
me
-
gives relationship :
Hooke's law
- x(t)
f(t-kXCE) Max
tra
-
xxc
=
I At
2
-> Get
I
tut FCS) -
KXCS) -
strXcs) =
ms XCs)
=frs+k
System Identification
· system Identication
-
Arm
:
)
equation relating Input 4 and output
-
Given :
Input
*
signal(s) :
4 .,
H .. ... UN and
40 ...... YN
⑮ - >
I monel-
noisy measurements -
on measured response .
* LT) systems :
different Frequencies -
frequency response
-
It parameters of model :
*
solving an optimisation problem (In generall
· General Strategy
experimental
->
- l/
y data
I
-
L
W stem
F-
-S want this to be small
ene
could be
multiple ,
mputs
predicted output
depends on parameters
Search over
parameters & unty predicted response 48 closely
matches measured response y .
Need to be able to
compute response predicted by model Ye
Need a
way to measure how close aquals y and Ye are
Example 1 :
coefficients bo ,
b ..... bm and no , a , .... an-1
=
.. +
+ s"+an- s
+ ais+ do ..
assume m<n
-
->
strictly Proper
nth order
-Example 2 :
Poles P , , p .
A
, P2 , P2 *... and coefficients A ,
A ,*, Az Ac*...
,
= I" .
(C a
Pic K
Ar EK
(constrains poles to have multiplically one)
response
step
-
ECs) = 0 ,
S + 02
* parameters :
f :
(A , , 2)
* output
:
Y6(t)
ucs) =
I -
Yols= o
-0
.[ 5 -
+2)
Yolt) = 6, (1 - - 2t) 1(t)
* get Formula For yAct as a
Function of 1 and t
Computhy model
response numerically
·
-
For Fixed model parameters , and a Fixed sample times to ,
to ,
Eg .
do this using numerical differential equation solver
numerator benominator
- -
->
sample time
zero initial
-> Default
conditions
given :
*
Input signal u (can extend to case of multiple inputs /
A measured output at sampled times y (t) , .., y (te)
-
:
model yo is minimized in
least-squares sense
Hemore e minz
N
I
(YCtr)-Y(tr))
·
L
W
-S
t .
* ECs) =
E, - -
2
S +02
*
Step response :
Predicted by model
constants
* objective Funchon : data
- I
cost(8 , 182) =
[Yctil-t
I
,
(l-efeti)]
variable
Aim
*
:
·
solving the optimisation problem
-
Assume we have
and computes :
up to time t k
Initial guess For parameters
*
theta0
-
Ophmize : darvative free optimization method
=>
theraopt = frisearch (cost , the a 0)
* minimum
requirement
:
can evaluate yo (tr) by simulation
with respect to t .