Deriving costate equation and control law in optimal control

  • Topic: Engineering 
  • Thread starter mad mathematician
  • Start date
  • Tags Tags
    Control equation
2 replies · 4K views · last reply
mad mathematician
Messages
151
Reaction score
26
Homework Statement
below
Relevant Equations
see below.
Textbook problem 3.2: a scalar system x-dot = -x + u to be transferred to the origin in 1 unit of time, with cost min over x,u of J = 1/2 times the integral from 0 to 1 of (3x^2 + u^2) dt, and no constraints on u.

and its proposed solution:
Printed solution showing problem 3.2: H = (3x^2 + u^2) + λ(-x + u), with costate equations λ̇ = λ − 3x and u = −λ, followed by partial text about substituting back into ẋ.

Now the first equation seems to be ##\dot{\lambda}=-H_{x}##, but they seem to forget to divide by two ##(3x^2+u^2)##, and the second equation, I am not sure how did they derive the second equation of ##u=-\lambda##? anyone here knows how?
thanks!
 
mad mathematician said:
and the second equation, I am not sure how did they derive the second equation of ##u=-\lambda##? anyone here knows how?

thanks!
There are two optimality conditions and one of them is a necessary condition for the optimal control input $$ \frac{\partial H}{\partial u}=0 $$.
 
  • Like
Likes   Reactions: mad mathematician
Gavran said:
There are two optimality conditions and one of them is a necessary condition for the optimal control input $$ \frac{\partial H}{\partial u}=0 $$.
Yeah, I know that. Forgot to reply that I found my answer... I hope to get a good grade in this course.
I tell you the exam was an open book; and I got so absent minded as to how to answer a few questions.
It's a pitty because the exam was really easy. (I had three exams this week in a row... phou :oldeek: ).