This tutorial shows how to solve optimal control problems with functions shipped with MATLAB (namely, Symbolic Math Toolbox and bvp4c). Steepest descent method is also implemented to compare with bvp4c.
The examples are taken from some classic books on optimal control, which cover both free and fixed terminal time cases. The pitfalls and limitations of the methods (e.g., bvp4c) are stressed in the paper to help user to handle practical problems with more insights.
Xuezhong Wang (2022). An optimal control tutorial for beginners (https://www.mathworks.com/matlabcentral/fileexchange/25889-an-optimal-control-tutorial-for-beginners), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!