@Author: Lei Lie
@E-mail: lordofdapanji@foxmail.com
该仓库包含了四种求解最优控制问题的数值法代码,分别是:
- 梯度法;
- 打靶法;
- 多重打靶法;
- 伪谱法。
可以对照我写的五篇技术博客来看,这五篇博客详细地介绍最优控制问题的定义,以及四种数值法的原理,分别是:
- 数值法求解最优控制问题(〇)——定义;
- 数值法求解最优控制问题(一)——梯度法;
- 数值法求解最优控制问题(二)——打靶法;
- 数值法求解最优控制问题(三)——多重打靶法;
- 数值法求解最优控制问题(四)——伪谱法。
希望这些文章和代码可以帮助到你,也可以点颗星星支持一下这个项目。
This repository includes 4 types codes of solving optimal control problem (OCP), that is:
- gradient method,
- shooting method,
- multiple shooting method,
- pseudospectral method.
You can read these 5 bolgs. The definition of OCP and the principles of 4 numerical method are decribed in detailed, that is:
- Numerical method for solving OPC (0): definition,
- Numerical method for solving OPC (1): gradient method,
- Numerical method for solving OPC (2): shooting method,
- Numerical method for solving OPC (3): multiple shooting method,
- Numerical method for solving OPC (4): pseudospectral method.
Hope these bolgs and codes help you a lot.
And maybe you can star this project?