# Dymos by Example#

The goal of these examples is to walk users through the process of formulating an optimal control problem and solving it using Dymos.

In working through these examples, we’ll try to emphasize the following process:

Formulate the optimal control problem

Identify state and control variables, and the ordinary differential equations (ODE) which govern the dynamics.

Build the ODE as an OpenMDAO system.

Test the evaluation of the ODE.

Define the partial derivatives for the ODE.

Test the partial derivatives of the ODE against finite-difference or (preferably) complex-step approximations.

## Prerequisites#

These examples assume that the user has a working knowledge of the following:

Python

The numpy package for numerical computing with Python

The matplotlib package for plotting results

Some examples may require additional optional packages that are noted in those notebooks.