have anyone worked on a control system which needs to use optimal control techniques specially dynamic programing? i want to know how to implement dynamic programming algorithm in MATLAB mfile?
you can find the MATLAB code of an example of application of dynamic programming to the control of a discrete-time linear dynamical system..Maybe it is not as general as what you probably need, but it can be a good starting point
It is not clear if you are interested in a backwards-in-time algorithm (which is classically solved by iterating the Bellman equation for all states) or in a forward-in-time one where you are given one state at a time. Perhaps, since you are asking about a control system which is generally applicable to non-linear systems you might want to take a look at the approximate dynamic programming and the corresponding literature. There are plenty of implementation examples.
The optimization of power management strategy of hybrid vehicles is one example where Dynamic Programming has been extensively used. The Institute for Dynamic Systems and Control at TU Zürich has developed a generic dynmaic programming function in Matlab. The function can be downloaded from:http://www.idsc.ethz.ch/Downloads/DownloadFiles/dpm/index, even though I would prefer to write my own code.
Here is an example of DP algorithm implementation, just to start with. Define your own system model, f(x,u,w), and disturbances, P{x}(u,w). I hope it will help!
Can any one help me with dynamic programming of this linear quadratic regulator (LQR) system in order to find optimal control and optimal trajectory in matlab m.file
?????????????????????????i should discritisize it with Ts=0.1 and i should also do interpolations and extrapolation!!!!!!!!!!!!
Thanks for all sharing their thoughts. I found the answers suggested by @Inseok Park and @ Farouk Odeim very useful. However, both links are broken. I spent some time to find the correct link. It is here: http://www.idsc.ethz.ch/research-guzzella-onder/downloads.html
Though could be found by google search of the previous broken URLs.
Interesting lecture is available from here: http://sail.usc.edu/~lgoldste/Ling285/Slides/Lect25_handout.pdf