lqr算法 c语言,【CS229 lecture18】linear quadratic regulation(LQR) 線性二次型調節控制

这篇博客探讨了线性二次型调规(LQR)算法,它是控制MDP的一种优雅且强大的方法。LQR适用于有限时域的MDP,尤其在处理无限或连续状态空间的问题时,能精确表示价值函数。博客内容包括:状态-动作奖励、有限时域MDP、线性动力系统以及LQR算法的动态规划解决方案。讲解中提到了线性模型的建立,特别是非线性模型的线性化,并介绍了LQR问题的矩阵表示及其求解的离散时间里卡蒂方程。
摘要由CSDN通过智能技术生成

lecture18

今天來討論我最喜歡的算法之一,用以控制MDP,我覺得是一個優雅、高效、強大的算法。先討論MDP的幾個常見變種(與現有的MDP定義會有不同)。

Agenda

state-action rewards

finite horizon MDPs

linear dynamical systems 線性動力系統

-models

-linear quadratic regulation(LQR) 線性二次型調節控制

just a recap:MDP is a five tuple(下圖給出一般性的定義,然后做一些改動,生成variations)

5b4d3e748749a89512510c4dc682d046.png

首先在reward function上做一些改動,使之不僅僅是states的函數,而且還是action的函數。記得在上一講時,我說過對於無限連續狀態的MDP,不能直接應用value iteration,因為對於continuous MDP, we use some approximations of the optimal value function. But later, we’ll talk about a special case of MDPs, where you can actually represent the value function exactly, even if you have an infinite-state space or even if you have a continuous-state space. I’ll actually do that, talk about these special constants of infinite-state MDPs, using this new variations of the reward function and the alternative to just counting, so start to make the formulation a little easier.

first variation: state-action reward 比如機器人動起來比靜止麻煩,所以reward和action也有關系了。

05b7f1c262f1a6060061bcdf64f28991.png

second variation: finite horizon MDP

圖中說到的optimal policy may be non-stationery(非平穩的),that is to say, my optimal action to take will be different for different time steps. 然后舉了一個例子(見黑板右下的方框內)

Since we have non-stationery optimal policy ,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值