
sampled-data assignments represent a difference-equation system whose solu-
tion is a set of successive output values generated by recursive substitution,
starting with given initial values.
A differential-equation system such as Eq. (1-1) makes it obvious which
variables are state variables and need initial values. This is not as easy in the
case of difference-equation systems. We must draw on real knowledge of the
model context to identify state variables and then execute sampled-data
assignments into meaningful procedural order; otherwise they may mix past
and present variable values into garbage.
Difference-equation state variables
q1, q2, … typically represent current
and past values of significant model quantities
z1, z2, …; for instance,
q1 = z1(t), q2 = z1(t – COMINT), q3 = z1(t – 2 COMINT)
q4 = z2(t), q5 = z2(t – COMINT)
A difference-equation system of order N relates current values (i.e., values at
the time
t) of N state variables to past values of these state variables (i.e., values
at the time
t – COMINT).
Just as in the case of a differential-equation system (1-1), we begin by
computing various intermediate results and output quantities as functions of
previously assigned state-variable values
qi. Current values of such defined
variables are produced by defined-variable assignments
pj = Gj(t; q1, q2, … , qN; p1, p2, … ) (j = 1, 2, ... ) (2-1a)
Note that defined-variable assignments relate current
pj values on the left-
hand side to past values of the state variables
qi and to already computed cur-
rent values of other defined variables
pj. This means that the defined-variable
assignments (2-1a) must be properly sorted into a procedural order that pro-
duces successive
pj values without algebraic loops, just as in Section 1-9.
2
Following the defined-variable assignments (2-1a), we compute the current
values
Qi of our state variables qi with N difference-equation assignments
Qi = Fi(t; q1, q2, … ,qN; p1, p2, … ) (i = 1, 2, … , N) (2-1b)
The functions on the right-hand side again use past values of the
qis and cur-
rent values of the
pj.
Sampled-data Assignments and Difference Equations 33
2
When there are no vector operations or subscripted variables, DESIRE again automatically
prevents sort errors with “undefined variable” messages. When there are vector operations, we
proceed as in Section 1-9.