danielrherber / optimal-control-direct-method-examples

Teaching examples for three direct methods for solving optimal control problems namely single shooting, single step, and pseudospectral.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README (optimal-control-direct-method-examples)

GitHub release license

GitHub contributors Gitter chat

Teaching examples for three direct methods for solving optimal control problems, namely single shooting, single step, and pseudospectral.

readme_image.svg


Install

INSTALL_Direct_Method_Examples
Run_All_Examples

External Includes

See INSTALL_Direct_Method_Examples.m for more information

  • MATLAB File Exchange Submission IDs (51104, 65434)

MATLAB Version

The main methods should work on version R2014b or newer. Method_DTQPProject.m requires version R2016a or newer. Some of the plot decorations require newer versions that support structure properties in figures. The Optimization Toolbox is required.


Bryson-Denham Problem

This is the optimal control problem used in the examples. The problem formulation is:

bd_formulation.svg

The optimal control solution when \ell is between 0 and 1/6 is:

bd_solution.svg

Please see the following files that calculate the optimal states and control. See pages 120–123 of A. E. Bryson and Y.-C. Ho, Applied Optimal Control, revised printing ed. Taylor & Francis, 1975 for more details on this problem.


General Information

Contributors

Project Links

About

Teaching examples for three direct methods for solving optimal control problems namely single shooting, single step, and pseudospectral.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:MATLAB 100.0%