time ξ
i
, for i = 1, · · · , n. Then, the cost function asso-
ciated with these response times is given by
C(x, ξ
1
, ··· , ξ
n
) = F(x, ξ
1
, ··· , ξ
n
) − F(x, 0, ·· · , 0)
(1)
Note that F() may be any functional that captures the
aspects of performance relevant to the user; no restric-
tion is placed on its form. Note further that this is only
defined when task response times do not exceed their
respective deadlines.
Remark 1: Since the plant state-space may be very
large, it is not practical to try to evaluate this cost
function at each point. Instead, one breaks down the
state-space into subspaces and associates a cost func-
tion associated with each subspace. This may be ob-
tained, for example, by selecting a certain number
of random samples over that subspace and averaging
the cost function values for those samples. The finer
the granularity of the division into subspaces and the
greater the number of samples taken, the more accu-
rately the cost functions reflect the actual behavior of
the system; however, this is at the cost of an increased
number of cost functions overall and more (offline)
computational work.
Remark 2: In reality, the response times of different
iterations of an individual task are certain to vary. To
obtain an exact characterization of the impact of the
delay of any individual iteration, we would have to
calculate the impact on the performance functional of
each of the response times of the thousands to mil-
lions of iterations executed over any reasonable pe-
riod of operation T
op
. This is clearly impractical, and
so in our calculations of the cost function we use a
single reference value, ξ
i
, for the response time as-
sociated with all iterations of an individual task, T
i
,
i = 1, · · · ,n. This cost function is then used as an ap-
proximation of the impact on the control plant per-
formance of task T
i
. Note that because the cost func-
tion is also a function of the plant state, which encom-
passes the impact of all the control delays up to that
point, this is an acceptable approximation.
Remark 3: If we are evaluating the total cost over
some given trajectory starting from some given point,
then we can drop the dependence on x and define the
cost function just in terms of the response times over
the period of operation. This is what we do in the ex-
amples in this paper.
Remark 4: The cost function is a multivariate func-
tion. We will see later that in many cases, cost func-
tions have cross terms such as ξ
i
ξ
j
for i 6= j. This
reflects the fact that the response time of one task can
affect the sensitivity of the plant to the response time
of another.
Remark 5: If the controlled plant operation has well-
defined distinct phases, each with its own demands
and task loading (e.g., in an aircraft - takeoff, cruise,
landing flare, landing), one can define cost functions
over these individual phases rather than over the entire
period of operation. If the plant operates essentially
forever, we can set any practical horizon (e.g., a day)
over which the performance functional is evaluated.
If a shorter time horizon is desired (e.g., just a few
seconds), that can be implemented as well. The point
is that our assessment of the impact of a nonzero con-
troller delay is entirely within the control of the user
and can respond fully to the particular needs of the
application.
Remark 6: We are assuming a traditional real-time
task model. In certain circumstances, one can have a
choice of which tasks to pick. Multiple tasks could be
available for the same control function, each with its
own characteristic computational resource (e.g., CPU
cycles, memory) requirements and a certain level of
output quality (e.g., how close to optimal it is, how
susceptible it is to failure caused by numerical insta-
bility). It is not difficult to extend our cost function
model to account for this.
2.2 Case Study: Car Control on a Curve
To understand some of the issues related to multi-
variate cost functions, we consider a case study in-
volving the control of a car. In particular, steering
and torque/braking inputs are provided to each of the
wheels of the car. The model we use is the four-
wheeled steering and four-wheeled drive (4WS4WD)
system modeled in (Peng, 2007).
In (Peng, 2007), the kinematics (study of the ve-
hicle body and wheel dynamics, taking into account
the tire friction) of a 4WS4WD car are modeled in
some detail. A bounded controller with integral com-
pensation is introduced. Our objective is to develop
cost functions associated with having the car track a
curved reference path. We use the same vehicle char-
acteristics as in (Peng, 2007): see Table 1 for the key
parameters (a full description can be found in (Peng,
2007)). The cost functional we chose as best con-
Table 1: Key Car Parameters (from (Peng, 2007)).
Mass 1480 kg
Inertial moment about vertical 1950 kg · m
2
Distance from CG to front 1.421 m
Distance from CG to rear 1.029 m
Effective width 1.502 m
Height of CG 0.42 m
veying the effect of computational delays (response
times) is the area between the reference car trajectory
and the actual trajectory followed by the car. Our aim
ICINCO2012-9thInternationalConferenceonInformaticsinControl,AutomationandRobotics
414