Optimal Control Via Collocation and Non-Linear Programming
Optimal Control Via Collocation and Non-Linear Programming
To cite this article: T. H. TSANG , D. M. HIMMELBLAU & T. F. EDGAR (1975): Optimal control via collocation and non-linear
programming, International Journal of Control, 21:5, 763-768
This article may be used for research, teaching, and private study purposes. Any substantial or systematic
reproduction, redistribution, reselling, loan, sub-licensing, systematic supply, or distribution in any form to
anyone is expressly forbidden.
The publisher does not give any warranty express or implied or make any representation that the contents
will be complete or accurate or up to date. The accuracy of any instructions, formulae, and drug doses should
be independently verified with primary sources. The publisher shall not be liable for any loss, actions, claims,
proceedings, demand, or costs or damages whatsoever or howsoever caused arising directly or indirectly in
connection with or arising out of the use of this material.
INT.J. CONTROL, 1975, VOL. 21, NO.5, 763-768
1. Introduction
Downloaded by [University of Ottawa] at 11:08 13 March 2013
Recently Neuman and Sen (1974) demonstrated how the method of weighted
residuals (l\HVR) (Finlayson 1972) could be used to transform a dynamic
optimization problem into a static non-linear programming (NLP) problem.
The latter represented an approximation to the optimal control problem, but
the value of the cost function resulting from the suboptimal control was very
close to the optimal value. They demonstrated how both the Galerkin
procedure and the collocation method could be employed, but we devote our
attention to the latter method because it. does not require the evaluation of
integrals of the control modes. The main difference between the procedure
proposed here and that of Neuman and Sen is that we make use of constrained
NLP whereas they employed unconstrained NLP (effected by solving for certain
of the variables in the constraints and substituting for them in the objective
function). The use of a constrained NLP structure enables the direct applica-
tion of this method to complicated state equations and objective functions as
well as the incorporation of state and control inequality and equality con-
straints. We also explore the effect of different assumed control modes.
In the collocation method both the state variable, x(t), and the control
variable, u(t), are approximated by functions of t. Here, as a simple example,
second-order polynomials are assumed.
x(t) = 1 + alt + a 2t2= 0,0 + alt + a 2t2 = aT <I>(t) (4)
Note that the approximate solution x(t) satisfies the initial condition. Intro-
duction of the approximating functions into (I) and subsequent integration
gives
J(a; b) = [oW + b0 2)t + !(al + bobl)t 2+ -li(2a 2 + a l2bob2+ b12)t3
+ !(a la2+ blb2)t4 + io-(a22+ b1)t 5 J:::: A (6)
Downloaded by [University of Ottawa] at 11:08 13 March 2013
3. Numerical results
Four sets of collocation points were chosen for the example problem:
Case I 'I = J., t2=-~
Coefficients
Deviation
Calculated of
objective objective
Case a, &, function function
J (%)
100 (J -J*)
J
J* =0· 19291.
Table I. Numerical results via NLP.
CASE
IA AND IB
- - - 2A
3A,38 AND 4A
ANALYTICAL SOLUTION
;::0r----1---+---I----+---+---t-----1f----+---,4-4-=__-l
::::>
However, Fig. 1, which illustrates the control trajectories for the several
cases (including the optimal solution and the results of Neuman and Sen),
indicates that the controls calculated by the collocation technique differed
radically from the optimal control. Figure 2, moreover, shows that the state
variable trajectories resulting from the various approximations were not very
766 T. H. Tsang et al.
CASE
IA AND IB
- - - - 2A
3A,3B AND 4A
--- NEUMAN AND SEN
ANAL YTICAL SOLUTION
0.6
- 0. .5
X
0.4
0.3
0.2t
Downloaded by [University of Ottawa] at 11:08 13 March 2013
0.1
I
o
o _-"--=,=,~'---:-:-----'-----,:':----'-----=':---'-~
0.2 0.4 0.6 0.8 1.0
accurnte, indicating that the value of J is not too sensitive to whatever x(t) and
'u(t) may be. In comparing Case 3 (three collocation points) with Cases I and 2
(two collocation points each), it is seen that fewer collocation points yielded a
slightly smaller J. A decrease in J can be demonstrated analytically for this
one simple example, but the detailed derivations am too tedious and extensive
to be detailed here.
J -J* is also very sensitive to the relative weights applied to x(t) versus
1/.(t). Consider the objective funetion
1
J =I J [x 2(t )+ 1'l/2(t )] dt (9)
u
where r is an arbitrary scalar weighting factor. 1n the table the results are
based on r = I. When r was increased, the minimum of J deviated substantially
from J* for the second-order polynomials. For example,
% deviation
r from J*
5 30·3
10 42·9
1<'01' the above results, three collocation points were used, which left only two
degrees of freedom for optimization. 1"01' the two-segment piecewise constant
(i.c. step) function used by Neuman and Sen, we obtained much smaller devia-
tions of J from J*, as r increased but still noted unsatisfactory approximations
of the state variable x(t). Hence J -J*jJ was not very sensitive to increases
in r for the step approximation function.
The use of higher-order polynomials for both the state and control variables
leads to distinctly improved, much less sensitive approximations for x(t) and
Collocation and non-linear programming 767
'u(t).If :I:(t) and u(t) are both approximated by fourth-order polynomials with
seven collocation points, we found
% deviation
r from J*
.5·0 x 10-5
.5 ,5·0 x 10- 5
The results for x(t) and ll,(t) are not illustrated because it is not possible to
distinguish in Figs. I or 2 between the analytical and the approximate trajec-
tories of x(t) and u(t). The computing time for each run on a CDC 6600
computer was 0'2 sec, in contrast to the second-order polynomials for which
the computing time was 0·03 sec.
Downloaded by [University of Ottawa] at 11:08 13 March 2013
CASE
IA
--- 2A
3A
4A
NEUMAN AND SEN. ANO
ANALYTICAL SOLUTION
.::ol---+--+---t---+---+--+----1'---;~7'''+-__::=_i
:::J
0.5
t
Figure 3. Comparison of control trajectories (cases with constraints).
u(t) ~0 }
(10)
u(t);;, 0
minimizing (6) subject to (8) plus (~O) for the second order approximating
polynomials. The deviations from J* were
Case % deviation
lA 0·41
2A 0·33
3A 0·718
4A 1·04
S. Conclusions
The collocation method is quite useful in solving optimal control problems
in which both the approximating state and control vectors must have small
deviations from the exact solutions. NLP permits the introduction into the
Downloaded by [University of Ottawa] at 11:08 13 March 2013
REFERENCES
FINLAYSON, B. A .• 1972, The Method o/Weighted Residuals and Variational Principles
(New York: Academic Press).
GUIGAN, G., 1971, 'Presentation et utilization du code Greg', Note HI 582/2,
Electricitc de France.
NEUMAN, C. P., and SEN, A., 1974, I.E.E.E. Trans. autom. Control, 19, 67.
STAHA, R. L., 1973, Ph.D. Dissertation, University of Texas at Austin.