人工智能教程 - 专业选修课程4.3.5 - 强化学习 9.动态编程概述,动态规划

动态编程概述

Planning by Dynamic Programming

定义

动态: 时间或者顺序方面的特性。意味着可以一步步的进行

Dynamic sequential or temporal component to the problem
such as step by step

编程:像数学家一样优化线性问题

Programming optimising a “program”, i.e. a policy
c.f. linear programming

  • 可以解决复杂问题 A method for solving complex problems
  • 可以分成若干子问题By breaking them down into subproblems
    • 解决子问题Solve the subproblems
    • 把子问题的答案拼接成解决方案 Combine solutions to subproblems

动态编程通常有两个特性:

1 )最优结构指的是最优化理论,最优解可以分成若干子问题的最优解。Optimal substructure
  • Principle of optimality applies
  • 合并子问题的答案Optimal solution can be decomposed into subproblems
2 ) 重叠子问题 Overlapping subproblems
  • 子问题出现很多次Subproblems recur many times
  • 子问题的解决方案可以被存储起来,反复利用Solutions can be cached and reused
MDP具备这两个属性 Markov decision processes satisfy both properties
  • 贝尔曼方程把问题用递归的方式变为求解子问题
    Bellman equation gives recursive decomposition
  • 价值函数相当于重叠子问题,存储起来并且复用Value function stores and reuses solutions

动态规划

  • Dynamic programming assumes full knowledge of the MDP
  • It is used for planning in an MDP

动态规划中最为重要的两个案例是预测和控制

对于预测 prediction:

给出MDP和策略 π \pi π或者MRP,求解该策略价值函数的过程
  • Input: MDP < S , A ,
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ESP32C3, esp-idf 4.3.5,编译报错。FAILED: wifi_softAP.elf cmd.exe /C "cd . && D:\Espressif\tools\riscv32-esp-elf\esp-2021r2-patch3-8.4.0\riscv32-esp-elf\bin\riscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFiles\wifi_softAP.elf.rsp -o wifi_softAP.elf && cd ." d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(softap_example_main.c.obj): in function `ch623_task': d:\espressif\frameworks\esp-idf-v4.3.5\examples\wifi\esp32_config_wifi\build/../main/softap_example_main.c:164: undefined reference to `CH623_Init' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:\espressif\frameworks\esp-idf-v4.3.5\examples\wifi\esp32_config_wifi\build/../main/softap_example_main.c:166: undefined reference to `pcd_lpcd_start' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:\espressif\frameworks\esp-idf-v4.3.5\examples\wifi\esp32_config_wifi\build/../main/softap_example_main.c:168: undefined reference to `pcd_lpcd_application' d:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: d:\espressif\frameworks\esp-idf-v4.3.5\examples\wifi\esp32_config_wifi\build/../main/softap_example_main.c:171: undefined reference to `pcd_lpcd_start' collect2.exe: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ninja failed with exit code 1
最新发布
05-31

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值