Acessibilidade / Reportar erro

Solving of time varying quadratic optimal control problems by using Bézier control points

Abstract

In this paper, linear quadratic optial control probles are solved by applying least square method based on Bézier control points. We divide the interval which includes t, into k subintervals and approximate the trajectory and control functions by Bézier curves. We have chosen the Bézier curves as piacewise polynomials of degree three, and determined Bézier curves on any subinterval by four control points. By using least square ethod, e introduce an optimization problem and compute the control points by solving this optimization problem. Numerical experiments are presented to illustrate the proposed method.

Bézier Control Points; Quadratic optimal Control Problem; Least Square


Department of Applied Mathematics, Faculty of Mathematical Sciences, Ferdowsi University of Mashhad, Mashhad, Iran E-mail: gachpazan@ferdowsi.um.ac.ir

ABSTRACT

In this paper, linear quadratic optial control probles are solved by applying least square method based on Bézier control points. We divide the interval which includes t, into k subintervals and approximate the trajectory and control functions by Bézier curves. We have chosen the Bézier curves as piacewise polynomials of degree three, and determined Bézier curves on any subinterval by four control points. By using least square ethod, e introduce an optimization problem and compute the control points by solving this optimization problem. Numerical experiments are presented to illustrate the proposed method.

Mathematical subject classification: 49N10.

Key words: Bézier Control Points, Quadratic optimal Control Problem, Least Square.

1 Introduction

Optimal control problems arise in a wide variety of disciplines. Apart from traditional areas such as aerospace engineering, robotics and chemical engineering, optimal control theory has also been used with great success in areas as diverse as economics to biomedicine. In particular, finding the analytical solution of optimal control problems are difficult. Thus, numerical methods are needed for the solution of these problems.

The linear quadratic optimal control problems are a class of optimal control and there is an extensive literature on them. There are many papers which their authors have given methods for solving linear quadratic optimal control problems. For example, spectral method [10], time-domain decomposition iterative method [16], and etc.

This paper aims at minimizing quadratic cost functionals over solutions of time varying linear systems of the form

where t0 and tf are given constants and x(t) = (x1(t), ..., xn(t))TRn, u(t) = (ui(t), ..., um(t))TRm are unknown vectors functions. Also, we assume H(t) = [hij (t)]nxn, P(t) = [Pij (t)]nxn, Q(t) = [qij (t)]nxm, A(t) = [dj (t)]nxn and B(t) = [bj(t)]nxm are matrices functions and K(t) = (k1(t), ..., kn(t))T, R(t) = (r1(t),..., rm (t ))T and F (t) = (f1(t),..., fn (t ))T are vectors functions, which their all elements are polynomial in [t0, tf ]. Also, x0 is finite constant vectors and tf is fixed constant. If x(tf) = xf be given, the first term of the objective function will be converted to a constant and can be omitted.

If A and B independent of t, the problem (1) will be called time-invariant [3], and otherwise it called time varying problem, [7], [11], and [21].

Lots of papers and books exist dealing with the Bézier curves or surfaces techniques that are applied to different contexts. Harada [14] and Nürnberger [6] have used the Bézier control points in approximate data and functions. Zheng [13] proposed the use of control points of the Bernstein-Bézier form for solving differential equations numerically and also Evrenosoglu [15] have used this approach for solving singularity perturbed two points boundary value problems. The Bézier curves are used in partial differential equations. For example, the Wave and Heat equations are solved in Bézier form, [1, 2, 12, 18]. Other applications of the Bézier functions and control points are found in [4, 9, 19, 22], that are used in computer aided geometric design and image compression.

We suggest a technique similar to what is in [13] and [15], for solving of linear quadratic optimal control problems.

2 Least square method

We divide the interval t0< t < tf into a set of grid points such that

where , and k is a positive integer. Let Sj = [t2j- -2, t2j ] for j = 1, 2, · · · , k, the control problem (1) will be defined piecewise as

where µ0 = x0 is known, µ1, µ2, ..., µk-1, µk are unknown, µk = xf and

Our strategy is to divide the interval Sj into two subintervals and then using a Bézier spline curve to approximate the solutions xj (t) and uj (t) by vj (t) and wj (t), respectively where vj (t) and wj (t) are given below. Individual Bézier curves that are defined over the subintervals are joined together to form the Bézier spline curve. Let the Bézier segment over [t2j--2+l, t2j-1+l] be

where

are the Bernstein polynomials of degree 3 over the interval [t2j-2+l, t2j-1+l] and are vectors of the control points. Now, by substituting (3) into differential equation of problem (2), we define the piecewise residual functions

The boundary conditions should be applied to the first and last Bézier segments, i.e.,

Beside the boundary conditions, there are also continuity constraints imposed on each successive pair of Bézier segments. Since the differential equation is of first order, the continuity of the first derivative of x (or v) is required and this gives

Thus the control points ar2j-1+l must satisfy

If we consider the continuity of w, the following constraints will be added to constraints (4),

Now, for each j = 1, 2, · · · , k we define residual function as follows

where ||. || is L2 norm and M is a big enough number. Our goal is to minimize the residual function over Sj. Taking the derivative of Ej with respect to component of the unknown control points

reduces the problem (5) to solve a linear system include 4n + 6m equations and unknowns where n and m are dimensions of x and u, respectively. Solving this system, we have the solution in terms of µi,, i = 1, ..., k - 1. From the continuity of the first derivative of the solutions, we have

which gives a linear equation system of k - 1 equations with k - 1 unknowns µ1, ...,µk-1. Substituting the minimum solution back into (4) we derive the approximate solution of the quadratic optimal control problem.

Note 1: For j = k, we consider = µkk as unknown in (5), and we compute derivative of Ek with respect to component of .

Note 2: In problem (1), if x(tf) be known, then we set Ck = 0 and µk = x(tf) will be known.

Note 3: We can use this method for solving a problem of calculus of variation as follows

with the conditions x(t0) = x0 and x(tf) = xf.

3 Numerical examples

In this section, numerical experiments are conducted to validate the proposed method. We have solved two following problems. First, an optimal control problem and then a problem in calculus of variation and in each example, we show the graphs of trajectories and optimal control functions.

Example 1. We consider the problem of minimizing the performance index [8]:

on trajectories of the systems

which satisfy the boundary values

We solve this problem with k = 1 and the continuity of x2 is omitted. We obtain the solution of the considered problem:

The exact trajectories and control functions are obtained by Kurina, [8] as follows:

The graphs of trajectories and control functions which we obtain, are shown in Figures 1-3.


Example 2. In second example, we consider a variational problem. We want to find two functions x1 (t) and x2(t) which minimize the following objective function, [5]-page 223,

subject to:

This problem is solved by k = 1 and we have obtained x1(t) = x2(t) and Min I = 2.180665422 for objective function. The approximate solutions of the problem are obtained as:

The exact solution of problem and it's value of objective function are:

The graphs of x1 and error function are shown in Figures 4-5.


Example 3. As a last example, consider a time varying quadratic optimal control problem which is a model of aerospace trajectory control, [20]. The system data is given as follows:

We solve this problem by proposed method and obtain the approximate solutions of the problem. For k = 4, the minimum of the objective function is 6.573994915. Note that, the five terms of Taylor series of b21 at t = 2 is used instead it. The graphs of x1, x2 and u are shown in figures 6-8. The asymptotic behaviors of trajectories of the system are discussed in [17] and we see this behaviors in figures.


4 Conclusions

We have used least squares methods for numerical solutions of linear quadratic optimal control problems and problems of calculus of variation in quadratic form using Bézier control points instead of computing integrals or performing discretization. The computation is simple and intuitive. The control point structure provides a bound on the residual function. Numerical examples show that the approximate functions are satisfactory for large h. Clearly, ifwe could solve systems of nonlinear equations, this technique will be quite general and can be easily extended to solve other problems, for example, nonlinear quadratic optimal control problems, general problems of calculus of variation.

Received: 07/III/10.

Accepted: 22/V/10.

#CAM-190/10.

  • [1] A.T. Layton and M. van dePanne, A numerically ecient and stable algorithm for animating water waves. The visual Computer, 18 (2002), 41-53.
  • [2] B. Lang, The synthesis of waveforms using Bézier curves with control point modulation. The Second CEMS Research Student Conference.
  • [3] B.P. Molinari, The time-invariant linear-quadratic optimal control problems. Automatica, 13 (1977), 347-357.
  • [4] C.H. Chu, C.C.L. Wang and C.R. Tsai, Computer aided geometric design of strip using developable Bézier patches Computers in Industry, 59(6) (2008), 601-611.
  • [5] D. Burghes and A. Graham, Introduction to control theory including optimal control. John Wiley & Sons (1980).
  • [6] G. Nürnberger and F. Zeilfelder, Developments in bivariate spline interpolation. Journal of Computational and Applied Mathematics, 121(1-2) (2000), 125-152.
  • [7] G.A. Kurina and R. Marz, On linear-quadratic optimal control problems for time-varying descriptor systems SIAM J. Control Optim., 42(6) (2004), 2062-2077.
  • [8] G.A. Kurina, On some linear-quadratic optimal control problems for descriptor systems, http://www.math.su.se/reports/200671
  • [9] G.E. Farin, Curve and surfaces for computer aided geometric design. Academic Press, New York (1988).
  • [10] H. Juddu, Spectral method for constrained linear-quadratic optimal control. Mathematics and Computers in Simulation, 58 (2002), 159-169.
  • [11] H.R. Marzban and M. Razzaghi, Hybrid functions approach for linearly constrained quadratic optimal control problems. Applied Mathematical Modelling, 27 (2003), 471-185.
  • [12] J.V. Beltran and J. Monterde, Bézier solutions of the wave equation. Lecture notes in Computational Sciences, 2(2) (2004), 631-640.
  • [13] J. Zeng, T.W. Sederberg and R.W. Johnson, Least squares methods for solving differential equations using Bézier control points. Appl. Num. Math., 48 (2004), 237-252.
  • [14] K. Harada and E. Nakamae, Application of the Bézier curve to data interpolation. Computer-Aided Design, 14(1) (1982), 55-59.
  • [15] M. Evrenosoglu and S. Somali, Least squares methods for solving singularity perturbed two-points boundary value problems using Bézier control points. Applied Mathematics Letters, 21(10) (2008), 1029-1032.
  • [16] M. Heinkenschloss, A time-domain decomposition iterative method for the solution ofdistributed linear quadratic optimal control problems. Journal of Computational and Applied Mathematics, 173 (2005), 169-198.
  • [17] P. Lu, Closed-form control laws for linear time-varying systems. IEEE Transactions on Automatic Control, 45(3) (2000), 537-542.
  • [18] R. Cholewa, A.J. Nowak, R.A. Bialecki and L.C. Wrobel, Cubic Bezier splines for BEM heat transfer analysis of the 2-D continuous casting problems. Computational Mechanics, 28 (2002), 282-290.
  • [19] R. Winkel, Generalized Bernstein Polynomials and Bézier Curves: An Application ofUmbral Calculus to Computer Aided Geometric Design. Advances in Applied Mathematics, 27(1) (2001), 51-81.
  • [20] T. Shu-jun and Z. Wan-xie, Numerical solutions oflinear quadratic control for time-varying systems via symplectic conservative perturbation. Applied Mathematics and Mechanics, 28(3) (2007), 277-287.
  • [21] V. Mehrmann, The autonomous linear quadratic control problems - theory and numerical solution. Lecture Notes in Control and Inform. Sci., 163, Springer-Verlag, Berlin (1991).
  • [22] Y.Q. Shi and H. Sun, Image and video compression for multimedia engineering. CRC press LLc (2000).
  • Solving of time varying quadratic optimal control problems by using Bézier control points

    Mortaza Gachpazan
  • Publication Dates

    • Publication in this collection
      27 July 2011
    • Date of issue
      2011

    History

    • Received
      07 Mar 2010
    • Accepted
      22 May 2010
    Sociedade Brasileira de Matemática Aplicada e Computacional Sociedade Brasileira de Matemática Aplicada e Computacional - SBMAC, Rua Maestro João Seppe, nº. 900 , 16º. andar - Sala 163, 13561-120 São Carlos - SP Brasil, Tel./Fax: 55 16 3412-9752 - São Carlos - SP - Brazil
    E-mail: sbmac@sbmac.org.br