TwoStageOptimalControl

For general information on the package, the model class it is able to solve, and how to install it, please revisit the ReadMe page.

Function Documentation

The following subsections are structured identical to the position of function definitions in the source code and should also act as an orientation for programmers trying to adapt to algorithm for their specific needs.

The most important functions for simple usage are contained in the following three subsections:

  • Results Handling: In this section all functions are summarised which concern saving, loading and plotting of results.

The remaining subsections contains the documentation for functions used within the solution algorithm:

  • Auxiliary functions: This section contains functions which are not algorithm specific like integration and smoothing functions.
  • LineSearch: This section contains the functions describing the linesearch along the gradient leading to the new guess for the control profiles.
  • Model Functions: In this section the functions provided by the user are used to define all internal model functions like the Hamiltonian and all equations like the costate dynamics and gradients, which are derived from it.
  • State solvers: In this section all functions for the solution of the state and costate differential equation are defined.

Examples

As an example often says more then 1000 explanations, please find two examples for the usage of the toolbox below.