1 / 17

580.691 Learning Theory Reza Shadmehr Optimal feedback control

580.691 Learning Theory Reza Shadmehr Optimal feedback control stochastic feedback control with and without additive noise. Starting at state. Sequence of actions. Observations. Cost per step. Cost to minimize. Start at the last time point k=p The cost at k=p is:.

truong
Download Presentation

580.691 Learning Theory Reza Shadmehr Optimal feedback control

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 580.691 Learning Theory Reza Shadmehr Optimal feedback control stochastic feedback control with and without additive noise

  2. Starting at state Sequence of actions Observations Cost per step Cost to minimize

  3. Start at the last time point k=p The cost at k=p is: To minimize this cost, set Under this policy, the value of states are:

  4. We will now show that if we choose the optimal u at step p-1, then cost to go is once again a quadratic function of state x. Because it is a scalar, it can be written as: Can be simplified to:

  5. We just showed that for the last time step, the cost to go is a quadratic function of x: The optimal u to at time point p-1 minimizes cost to go J(p-1): If at time point p-1 we indeed carry out this optimal policy u, then the cost to go at time p-1 also becomes a linear function of x: If we now repeat the process and find the optimal u for time point p-2, it will be: And if we apply the optimal u at time points p-2 and p-1, then the cost to go at time point p-2 will be a quadratic function of x: So in general, if for time points t+1, …, p we calculated the optimal policy for u, then the above gives us a recipe to compute the optima policy for time point t.

  6. Summary: optimal feedback control Cost to go The procedure is to compute the matrices W and G from the last time point to the first time point.

  7. Modeling of an elbow movement Continuous time model of the elbow Discrete time model of the elbow

  8. 6 20000 2 10 ´ 2.5 2.25 6 15000 1.5 10 ´ t t s s o o 2 c c L 6 s l 10000 1 10 ´ o e 1.75 P V 1.5 500000 5000 1.25 0 0 1 0 0.1 0.2 0.3 0.4 0 0.1 0.2 0.3 0.4 0 0.1 0.2 0.3 0.4 sec sec sec 0.5 0.5 0.4 0.4 n o n i o t i 0.3 0.3 i t s i o s P o 0.2 0.2 P 0.1 0.1 0 0 0 0.1 0.2 0.3 0.4 0 0.1 0.2 0.3 0.4 sec sec 75 15 10 d 50 n d d a n n 10 m a a m 0 25 m m o m m c o o c c 5 r 0 -10 o r r t o o o t t M -25 o o 0 M M -20 -50 -5 -30 -75 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.05 0.1 0.15 0.2 0.25 0.3 0.35 sec sec sec Goal: Reach a target at 30 deg in 300 ms time and hold it there for 100 ms. Unperturbed movement Arm held at start for 200ms Force pulse to the arm for 50ms

  9. 6 2 10 ´ 0.8 800 6 1.5 10 ´ t 0.6 600 s n n o i o c a i 6 1 10 ´ t G s i 0.4 400 o s s P o o P P 500000 0.2 200 0 0 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0 0.1 0.2 0.3 0.4 0.5 0.6 0 0.1 0.2 0.3 0.4 0.5 0.6 sec sec sec 30 d n a 20 m m o c 10 r o t 0 o M -10 0 0.1 0.2 0.3 0.4 0.5 0.6 sec Movement with a via point: we set the cost to be high at the time when we are supposed to be at the via points.

  10. Stochastic optimal feedback control Biological processes have noise. For example, neurons fire stochastically in response to a constant input, and muscles produce a stochastic force in response to constant stimulation. Here we will see how to solve the optimal control problem with additive Gaussian noise. Cost to minimize Because there is noise, we are no longer able to observe x directly. Rather, the best we can do is to estimate it. As we saw before, for a linear system with additive noise the best estimate of state is through the Kalman filter. So our goal is to determine the best command u for the current estimate of x so that we can minimize the global cost function. Approach: as before, at the last time point p the cost is a quadratic function of x. We will find the optimal motor command for time point p-1 so that it minimizes the expected cost to go. If we perform the optimal motor command at p-1, then we will see that the cost to go at p-1 is again a quadratic function of x.

  11. Preliminaries: Expected value of a squared random variable. In the following example, we assume that x is the random variable. Scalar x Vector x

  12. So we see that if our system has additive state or measurement noises, the optimal motor command remains the same as if the system had no noises at all. When we use the optimal policy at time point p-1, we see that, as before, the cost-to-go at p-1 is a quadratic function of x. The matrix W at p-1 remains the same as when the system had no noise. The problem is that we do not have x. The best that we can do is to estimate x via the Kalman filter. We do this in the next slide.

  13. On trial p-1, our best estimate of x is the prior. We compute the prior for the current trial from the posterior of the last trial. Kalman gain The posterior estimate. Our short-hand way to note the prior estimate of x on trial p-1. Although the noises in the system do not affect the gain G, the estimate of x is of course affected by the noises because the Kalman gain is influenced by them.

  14. Summary of stochastic optimal control for a linear system with additive Gaussian noise and quadratic cost Cost to go at the start Cost to go at the end

More Related