Escolar Documentos
Profissional Documentos
Cultura Documentos
21 April 2010
Point Distribution
The exam consists of three questions. The point value for each question and each part of each question is boldface characters. Unless otherwise stated, full credit will be given for a proper application of a relevant concept Contrariwise, no credit will be given for a concept applied incorrectly, even if the nal answer is correct.
Signature:
Date:
Question 1: 25 Points
Consider the following optimal control problem. Minimize the cost functional J= subject to the dynamic constraint x = x3 + u and the boundary conditions x(0) x(tf ) = x0 = xf (3) (2) 1 2
tf
(x2 + u2 )dt
0
(1)
where tf is xed. Rather than solving this problem using the rst-order optimality conditions for a standard optimal control problem, reformulate the problem as a calculus of variations problem in terms of x(t) and x(t). In other words, eliminate the control from the problem so that the modied problem has the form
tf
minimize
0
(4)
with the boundary conditions as given above. Formulate the rst-order optimality conditions for this modied problem. If possible, solve the rst-order optimality conditions analytically. If not, solve them numerically to determine the optimal trajectory and control (x (t), u (t)). In your results, use x(0) = x(tf ) = 1 and tf = (5, 10, 15, 20).
Question 2: 35 Points
Consider the following optimal control problem. Minimize the cost functional J = tf subject to the dynamic constraints x = v sin u, y = v cos u, v = g cos u, and the boundary conditions x(0) = x0 y(0) = y0 v(0) = v0 The optimal solution to this problem is x (t) y (t) v (t)
(5)
(6)
(7)
2gy (t), (t) = , x g (t) = cot t , y f g (t) (t) y x (t) = cos u (t) + sin u (t), v u (t) = t , where y (t) 0, g R t f = 10, yf , 1 cos a0 2gyf , 4R sin a0 /2 yf a0 sin(a0 /2) 2gyf = = =
(8)
(9)
Using the boundary conditions x(0) = y(0) = v(0) = 0 and x(tf ) = y(tf ) = 2, compute discrete approximations to the solution of the above optimal control problem using (1) an indirect shooting method and (2) a direct shooting method. When using direct shooting, parameterize the control using a polynomial of the form
N
(t)
k=0
ck k (t)
(11)
where k (t) are the standard polynomials (1, t, t2 , . . .). In each case, compute the errors in your solution using the following criteria. If z(t) and z (t) are the approximate and exact solutions, the error is computed as E = max z(t) z (t) 2
t[t0 ,tf ]
In the case of direct shooting, compute the errors for different values of N and stop when you think N is sufciently large. 4
Question 3: 40 Points
Consider the following optimal control problem. Maximize J = x(tf ) subject to the dynamic constraints x y u v and the boundary conditions x(0) = 0 y(0) = 0 u(0) = 0 v(0) = 0 y(tf ) = yf v(tf ) = 0 = = = = u v a cos a sin (13) (12)
(14)
where a = 1 and yf = 1, tf = 10, and is the control. compute discrete approximations to the solution of the above optimal control problem using (1) an indirect shooting method and (2) a direct shooting method.