File Exchange

image thumbnail

Optimal Control Direct Method Examples

version (42.6 KB) by Daniel R. Herber
Teaching examples for three direct methods for solving optimal control problems.


Updated 18 Dec 2017

From GitHub

View license on GitHub

Simply download the project files and run INSTALL_Direct_Method_Examples.m. Then you can use Run_All_Examples.m to run each method.
Please see the README at:

Cite As

Daniel R. Herber (2021). Optimal Control Direct Method Examples (, GitHub. Retrieved .

Comments and Ratings (6)



Daniel R. Herber

Thanks for pointing out this error! I have just uploaded a fix to the GitHub repository.

Catherine Cai

I can not run INSTALL_Direct_Method_Examples.m.
As "INSTALL_DTQP_Project has not been defined."

Daniel R. Herber

Thank you for your comment and rating chou fly.

You are correct that those files are not directly included in this submission, but they will be automatically downloaded from MFX 51104 if you run the install file (INSTALL_Direct_Method_Examples.m).

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!