Coder Social home page Coder Social logo

danielrherber / optimal-control-direct-method-examples Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 16.0 62 KB

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

MATLAB 100.00%

optimal-control-direct-method-examples's People

Contributors

danielrherber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

optimal-control-direct-method-examples's Issues

Add Matlab version and toolbox checks

Add checks for the required (or recommended) toolboxes and Matlab version. This currently includes the optimization toolbox.

  • Add to INSTALL_Direct_Method_Examples.m
  • Add to README.md

Platform dependency problem

Line 56 of INSTALL_Direct_Method_Examples.m file contains a Windows dependent directory delimiter '\', which make this code not executable in Mac or Linux.
You may recognize platform before using those delimiter such as:

if ispc
    dirdelimiter = '\';
else
    dirdelimiter = '/';
end

and

outputdir = fullfile(fileparts(full_fun_path),['include',dirdelimiter]);

error in 2015b('MaxFunctionEvaluations' is not an option for FMINCON.)

INSTALL_Direct_Method_Examples
--- Adding submission contents to path

--- Obtaining required web zips
Already available MFX 51104
Already available MFX 65434

--- Adding submission contents to path

--- Closing BrysonHo166

--- Adding submission contents to path

--- Opening Run_All_Examples

--- Closing INSTALL_Direct_Method_Examples

Run_All_Examples
error optimoptions (line 105)
'MaxFunctionEvaluations' is not an option for FMINCON.
A list of options can be found on the FMINCON documentation page.

error Method_SingleShooting (line 24)
options = optimoptions(@fmincon,'display','iter','MaxFunctionEvaluations',1e5); % option

error Run_All_Examples (line 13)
Method_SingleShooting

Matlab version

Working Matlab version should be pointed out.
As an example it seems not working on R2015b

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.